Skip to content

Commit e2f28c0

Browse files
committed
NRG v1.2.3: Fixed LUA bug in initialization, removed retail support.
1 parent 0e2dc9e commit e2f28c0

File tree

8 files changed

+13
-21
lines changed

8 files changed

+13
-21
lines changed

Releases/nrg-1.2.3.zip

17 KB
Binary file not shown.

nrg/Battery.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ function A:InitializeConfigSettings()
274274
end
275275

276276
local x,y = NRGPowerButton:GetPoint();
277-
self:SetOption(CONFIG_KEY_PowerButtonPosX, Buffalo_GetOption(CONFIG_KEY_PowerButtonPosX, x))
278-
self:SetOption(CONFIG_KEY_PowerButtonPosY, Buffalo_GetOption(CONFIG_KEY_PowerButtonPosY, y))
277+
self:SetOption(CONFIG_KEY_PowerButtonPosX, self:GetOption(CONFIG_KEY_PowerButtonPosX, x))
278+
self:SetOption(CONFIG_KEY_PowerButtonPosY, self:GetOption(CONFIG_KEY_PowerButtonPosY, y))
279279

280280
local value = self:GetOption(CONFIG_KEY_PowerButtonVisible, CONFIG_DEFAULT_PowerButtonVisible);
281281
if type(value) == "boolean" then

nrg/ReadMe.txt

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ No config, no switches, no nothing. Well almost: you can move the power button b
88

99
Version history:
1010
----------------
11+
NRG version 1.2.3
12+
* Fixed LUA error while initializing addon.
13+
* Removed retail support after Shadowlands went live.
14+
15+
1116
NRG version 1.2.2
1217
* Fixed LUA error, caused by a reference to the NRG configuration, which does not exist.
1318
* Added (untestet) support for WotLK

nrg/nrg-Classic.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Title: NRG - mp5 Power Button
22
## Notes: Addon to check mp5 rule
3-
## Version: 1.2.2
3+
## Version: 1.2.3
44
## Author: Mimma @ <EU-Pyrewood Village>
55
## Interface: 11403
66
## SavedVariables: NRG_Options

nrg/nrg-Retail.toc

-13
This file was deleted.

nrg/nrg-TBC.toc renamed to nrg/nrg-Wrath.toc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
## Title: NRG - mp5 Power Button
22
## Notes: Addon to check mp5 rule
3-
## Version: 1.2.2
3+
## Version: 1.2.3
44
## Author: Mimma @ <EU-Pyrewood Village>
5-
## Interface: 20504
5+
## Interface: 30400
66
## SavedVariables: NRG_Options
7-
## X-Expansion-Level: 2
7+
## X-Expansion-Level: 3
88
## X-Curse-Project-ID: 637056
99
## X-WoWI-ID: 26352
1010
## X-Wago-ID: rkGrarKy

nrg/nrg.toc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Title: NRG - mp5 Power Button
22
## Notes: Addon to check mp5 rule (yeah, I know .. irrelevant for retail, but anyway)
3-
## Version: 1.2.2
3+
## Version: 1.2.3
44
## Author: Mimma @ <EU-Pyrewood Village>
55
## Interface: 30400
66
## SavedVariables: NRG_Options

nrg/nrg.wowproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<Content Include="Bmp\power4.png" />
2424
<Content Include="Bmp\power5.bmp" />
2525
<Content Include="Bmp\power5.png" />
26-
<Content Include="nrg-TBC.toc">
26+
<Content Include="nrg-Wrath.toc">
2727
<SubType>TableOfContents</SubType>
2828
</Content>
2929
<Content Include="nrg-Classic.toc">

0 commit comments

Comments
 (0)