mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Added support for the Pain mana type
This commit is contained in:
@ -20,6 +20,7 @@ function PlayerMana.prototype:init()
|
|||||||
self:SetDefaultColor("PlayerInsanity", 150, 50, 255)
|
self:SetDefaultColor("PlayerInsanity", 150, 50, 255)
|
||||||
self:SetDefaultColor("PlayerFury", 255, 50, 255)
|
self:SetDefaultColor("PlayerFury", 255, 50, 255)
|
||||||
self:SetDefaultColor("PlayerMaelstrom", 62, 54, 152)
|
self:SetDefaultColor("PlayerMaelstrom", 62, 54, 152)
|
||||||
|
self:SetDefaultColor("PlayerPain", 255, 50, 255)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -246,7 +247,7 @@ end
|
|||||||
function PlayerMana.prototype:TreatEmptyAsFull()
|
function PlayerMana.prototype:TreatEmptyAsFull()
|
||||||
return self.manaType == SPELL_POWER_RAGE or self.manaType == SPELL_POWER_RUNIC_POWER
|
return self.manaType == SPELL_POWER_RAGE or self.manaType == SPELL_POWER_RUNIC_POWER
|
||||||
or (IceHUD.WowVer >= 70000 and (self.manaType == SPELL_POWER_LUNAR_POWER or self.manaType == SPELL_POWER_INSANITY
|
or (IceHUD.WowVer >= 70000 and (self.manaType == SPELL_POWER_LUNAR_POWER or self.manaType == SPELL_POWER_INSANITY
|
||||||
or self.manaType == SPELL_POWER_FURY or self.manaType == SPELL_POWER_MAELSTROM))
|
or self.manaType == SPELL_POWER_FURY or self.manaType == SPELL_POWER_PAIN or self.manaType == SPELL_POWER_MAELSTROM))
|
||||||
end
|
end
|
||||||
|
|
||||||
function PlayerMana.prototype:UpdateEvent(event, unit, powertype)
|
function PlayerMana.prototype:UpdateEvent(event, unit, powertype)
|
||||||
@ -301,6 +302,8 @@ function PlayerMana.prototype:Update(unit, powertype)
|
|||||||
color = "PlayerFury"
|
color = "PlayerFury"
|
||||||
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_MAELSTROM) then
|
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_MAELSTROM) then
|
||||||
color = "PlayerMaelstrom"
|
color = "PlayerMaelstrom"
|
||||||
|
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_PAIN) then
|
||||||
|
color = "PlayerPain"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -22,6 +22,7 @@ function IceTargetMana.prototype:init(moduleName, unit)
|
|||||||
self:SetDefaultColor("TargetInsanity", 150, 50, 255)
|
self:SetDefaultColor("TargetInsanity", 150, 50, 255)
|
||||||
self:SetDefaultColor("TargetFury", 255, 50, 255)
|
self:SetDefaultColor("TargetFury", 255, 50, 255)
|
||||||
self:SetDefaultColor("TargetMaelstrom", 52, 64, 221)
|
self:SetDefaultColor("TargetMaelstrom", 52, 64, 221)
|
||||||
|
self:SetDefaultColor("TargetPain", 255, 50, 255)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -116,6 +117,8 @@ function IceTargetMana.prototype:Update(unit)
|
|||||||
self.color = "TargetFury"
|
self.color = "TargetFury"
|
||||||
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_MAELSTROM) then
|
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_MAELSTROM) then
|
||||||
self.color = "TargetMaelstrom"
|
self.color = "TargetMaelstrom"
|
||||||
|
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_PAIN) then
|
||||||
|
self.color = "TargetPain"
|
||||||
end
|
end
|
||||||
|
|
||||||
if (self.tapped) then
|
if (self.tapped) then
|
||||||
@ -136,7 +139,7 @@ end
|
|||||||
function IceTargetMana.prototype:TreatEmptyAsFull(manaType)
|
function IceTargetMana.prototype:TreatEmptyAsFull(manaType)
|
||||||
return manaType == SPELL_POWER_RAGE or manaType == SPELL_POWER_RUNIC_POWER
|
return manaType == SPELL_POWER_RAGE or manaType == SPELL_POWER_RUNIC_POWER
|
||||||
or (IceHUD.WowVer >= 70000 and (manaType == SPELL_POWER_LUNAR_POWER or manaType == SPELL_POWER_INSANITY
|
or (IceHUD.WowVer >= 70000 and (manaType == SPELL_POWER_LUNAR_POWER or manaType == SPELL_POWER_INSANITY
|
||||||
or manaType == SPELL_POWER_FURY or self.manaType == SPELL_POWER_MAELSTROM))
|
or manaType == SPELL_POWER_FURY or manaType == SPELL_POWER_PAIN or manaType == SPELL_POWER_MAELSTROM))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
|
Reference in New Issue
Block a user