mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- made class power counters continue to display as long as they're not full/empty (depending on the class)
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user