Skip to content

Commit

Permalink
NRG v1.2.3: Fixed LUA bug in initialization, removed retail support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentilix committed Nov 5, 2022
1 parent 0e2dc9e commit e2f28c0
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 21 deletions.
Binary file added Releases/nrg-1.2.3.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions nrg/Battery.lua
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ function A:InitializeConfigSettings()
end

local x,y = NRGPowerButton:GetPoint();
self:SetOption(CONFIG_KEY_PowerButtonPosX, Buffalo_GetOption(CONFIG_KEY_PowerButtonPosX, x))
self:SetOption(CONFIG_KEY_PowerButtonPosY, Buffalo_GetOption(CONFIG_KEY_PowerButtonPosY, y))
self:SetOption(CONFIG_KEY_PowerButtonPosX, self:GetOption(CONFIG_KEY_PowerButtonPosX, x))
self:SetOption(CONFIG_KEY_PowerButtonPosY, self:GetOption(CONFIG_KEY_PowerButtonPosY, y))

local value = self:GetOption(CONFIG_KEY_PowerButtonVisible, CONFIG_DEFAULT_PowerButtonVisible);
if type(value) == "boolean" then
Expand Down
5 changes: 5 additions & 0 deletions nrg/ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ No config, no switches, no nothing. Well almost: you can move the power button b

Version history:
----------------
NRG version 1.2.3
* Fixed LUA error while initializing addon.
* Removed retail support after Shadowlands went live.


NRG version 1.2.2
* Fixed LUA error, caused by a reference to the NRG configuration, which does not exist.
* Added (untestet) support for WotLK
Expand Down
2 changes: 1 addition & 1 deletion nrg/nrg-Classic.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Title: NRG - mp5 Power Button
## Notes: Addon to check mp5 rule
## Version: 1.2.2
## Version: 1.2.3
## Author: Mimma @ <EU-Pyrewood Village>
## Interface: 11403
## SavedVariables: NRG_Options
Expand Down
13 changes: 0 additions & 13 deletions nrg/nrg-Retail.toc

This file was deleted.

6 changes: 3 additions & 3 deletions nrg/nrg-TBC.toc → nrg/nrg-Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
## Title: NRG - mp5 Power Button
## Notes: Addon to check mp5 rule
## Version: 1.2.2
## Version: 1.2.3
## Author: Mimma @ <EU-Pyrewood Village>
## Interface: 20504
## Interface: 30400
## SavedVariables: NRG_Options
## X-Expansion-Level: 2
## X-Expansion-Level: 3
## X-Curse-Project-ID: 637056
## X-WoWI-ID: 26352
## X-Wago-ID: rkGrarKy
Expand Down
2 changes: 1 addition & 1 deletion nrg/nrg.toc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## Title: NRG - mp5 Power Button
## Notes: Addon to check mp5 rule (yeah, I know .. irrelevant for retail, but anyway)
## Version: 1.2.2
## Version: 1.2.3
## Author: Mimma @ <EU-Pyrewood Village>
## Interface: 30400
## SavedVariables: NRG_Options
Expand Down
2 changes: 1 addition & 1 deletion nrg/nrg.wowproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<Content Include="Bmp\power4.png" />
<Content Include="Bmp\power5.bmp" />
<Content Include="Bmp\power5.png" />
<Content Include="nrg-TBC.toc">
<Content Include="nrg-Wrath.toc">
<SubType>TableOfContents</SubType>
</Content>
<Content Include="nrg-Classic.toc">
Expand Down

0 comments on commit e2f28c0

Please sign in to comment.