- added a configurable RunicPower color to the player, target, and tot mana bars

- made runic power behave like energy and rage for the "low threshold" flashing behavior
This commit is contained in:
Parnic
2009-02-26 03:57:33 +00:00
parent 2dba044681
commit 429fa4858e
4 changed files with 11 additions and 2 deletions

View File

@ -13,6 +13,7 @@ function PlayerMana.prototype:init()
self:SetDefaultColor("PlayerMana", 62, 54, 152)
self:SetDefaultColor("PlayerRage", 171, 59, 59)
self:SetDefaultColor("PlayerEnergy", 218, 231, 31)
self:SetDefaultColor("PlayerRunicPower", 62, 54, 152)
end
@ -223,6 +224,8 @@ function PlayerMana.prototype:Update(unit)
color = "PlayerRage"
elseif (self.manaType == 3) then
color = "PlayerEnergy"
elseif (self.manaType == 6) then
color = "PlayerRunicPower"
end
end
@ -261,7 +264,7 @@ end
-- OVERRIDE
function PlayerMana.prototype:UpdateBar(scale, color, alpha)
self.noFlash = (self.manaType ~= 0 and self.manaType ~= 6)
self.noFlash = (self.manaType ~= 0)
PlayerMana.super.prototype.UpdateBar(self, scale, color, alpha)
end