- made class power counters continue to display as long as they're not full/empty (depending on the class)

This commit is contained in:
Parnic
2010-10-30 18:35:19 +00:00
parent cb1eca5f0d
commit 841e903d8d
2 changed files with 14 additions and 0 deletions

View File

@ -370,6 +370,8 @@ function IceClassPowerCounter.prototype:DisplayCounter()
if (self.moduleSettings.hideBlizz) then
self:HideBlizz()
end
self:UpdateRunePower()
end
function IceClassPowerCounter.prototype:Disable(core)
@ -427,6 +429,7 @@ function IceClassPowerCounter.prototype:UpdateRunePower()
end
self.lastNumReady = numReady
self:UpdateAlpha()
if (self.moduleSettings.hideBlizz) then
self:HideBlizz()
@ -645,3 +648,12 @@ end
function IceClassPowerCounter.prototype:HideBlizz()
assert(true, "Must override HideBlizz in child classes.")
end
function IceClassPowerCounter.prototype:UseTargetAlpha()
if self.bTreatEmptyAsFull then
return self.lastNumReady > 0
else
return self.lastNumReady < self.numRunes
end
end

View File

@ -16,6 +16,7 @@ function HolyPower.prototype:init()
self.numericColor = "HolyPowerNumeric"
self.unitPower = SPELL_POWER_HOLY_POWER
self.minLevel = PALADINPOWERBAR_SHOW_LEVEL
self.bTreatEmptyAsFull = true
end
function HolyPower.prototype:GetOptions()
@ -51,3 +52,4 @@ local _, unitClass = UnitClass("player")
if (unitClass == "PALADIN" and IceHUD.WowVer >= 40000) then
IceHUD.HolyPower = HolyPower:new()
end