mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 22:51:53 -05:00
Added colors for Maelstrom mana
Fixed TargetMana to use Insanity, Fury, and Maelstrom colors correctly
This commit is contained in:
@ -19,6 +19,7 @@ function PlayerMana.prototype:init()
|
|||||||
if IceHUD.WowVer >= 70000 then
|
if IceHUD.WowVer >= 70000 then
|
||||||
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)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -298,6 +299,8 @@ function PlayerMana.prototype:Update(unit, powertype)
|
|||||||
color = "PlayerInsanity"
|
color = "PlayerInsanity"
|
||||||
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_FURY) then
|
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_FURY) then
|
||||||
color = "PlayerFury"
|
color = "PlayerFury"
|
||||||
|
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_MAELSTROM) then
|
||||||
|
color = "PlayerMaelstrom"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ function IceTargetMana.prototype:init(moduleName, unit)
|
|||||||
if IceHUD.WowVer >= 70000 then
|
if IceHUD.WowVer >= 70000 then
|
||||||
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)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -109,10 +110,12 @@ function IceTargetMana.prototype:Update(unit)
|
|||||||
self.color = "TargetEnergy"
|
self.color = "TargetEnergy"
|
||||||
elseif (manaType == SPELL_POWER_RUNIC_POWER) then
|
elseif (manaType == SPELL_POWER_RUNIC_POWER) then
|
||||||
self.color = "TargetRunicPower"
|
self.color = "TargetRunicPower"
|
||||||
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_INSANITY) then
|
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_INSANITY) then
|
||||||
self.color = "TargetInsanity"
|
self.color = "TargetInsanity"
|
||||||
elseif (IceHUD.WowVer >= 70000 and self.manaType == SPELL_POWER_FURY) then
|
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_FURY) then
|
||||||
self.color = "TargetFury"
|
self.color = "TargetFury"
|
||||||
|
elseif (IceHUD.WowVer >= 70000 and manaType == SPELL_POWER_MAELSTROM) then
|
||||||
|
self.color = "TargetMaelstrom"
|
||||||
end
|
end
|
||||||
|
|
||||||
if (self.tapped) then
|
if (self.tapped) then
|
||||||
|
Reference in New Issue
Block a user