Permalink
Browse files

nPower: Minor config changes requested by cokedriver (untested!).

  • Loading branch information...
1 parent 0d236cf commit 508b8f099e71ebcafcb07edcde6fc208e301d7f5 @renstrom committed Oct 17, 2012
Showing with 5 additions and 3 deletions.
  1. +2 −0 Interface/AddOns/nPower/config.lua
  2. +3 −3 Interface/AddOns/nPower/core.lua
@@ -1,4 +1,6 @@
+local _, nPower = ...
+
nPower = {
position = {'CENTER', UIParent, 0, -100},
sizeWidth = 200,
@@ -1,5 +1,5 @@
-local _, addon = ...
+local _, nPower = ...
local ComboColor = nPower.energy.comboColor
local playerClass = select(2, UnitClass('player'))
@@ -322,7 +322,7 @@ local function UpdateBarVisibility()
end
if (newAlpha) then
- addon:Fade(f.Power, 0.3, f.Power:GetAlpha(), newAlpha)
+ nPower:Fade(f.Power, 0.3, f.Power:GetAlpha(), newAlpha)
end
end
@@ -345,7 +345,7 @@ local function UpdateBarValue()
f.Power:SetValue(min)
if (nPower.valueAbbrev) then
- f.Power.Value:SetText(min > 0 and addon:FormatValue(min) or '')
+ f.Power.Value:SetText(min > 0 and nPower:FormatValue(min) or '')
else
f.Power.Value:SetText(min > 0 and min or '')
end

0 comments on commit 508b8f0

Please sign in to comment.