mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- 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:
@ -68,7 +68,7 @@ function IceUnitBar.prototype:GetOptions()
|
|||||||
{
|
{
|
||||||
type = 'range',
|
type = 'range',
|
||||||
name = '|cff22bb22Low Threshold|r',
|
name = '|cff22bb22Low Threshold|r',
|
||||||
desc = 'Threshold of pulsing the bar (0 means never) (for player applies only to mana, not rage/energy)',
|
desc = 'Threshold of pulsing the bar (0 means never) (for player applies only to mana, not rage/energy/runic power)',
|
||||||
get = function()
|
get = function()
|
||||||
return self.moduleSettings.lowThreshold
|
return self.moduleSettings.lowThreshold
|
||||||
end,
|
end,
|
||||||
|
@ -13,6 +13,7 @@ function PlayerMana.prototype:init()
|
|||||||
self:SetDefaultColor("PlayerMana", 62, 54, 152)
|
self:SetDefaultColor("PlayerMana", 62, 54, 152)
|
||||||
self:SetDefaultColor("PlayerRage", 171, 59, 59)
|
self:SetDefaultColor("PlayerRage", 171, 59, 59)
|
||||||
self:SetDefaultColor("PlayerEnergy", 218, 231, 31)
|
self:SetDefaultColor("PlayerEnergy", 218, 231, 31)
|
||||||
|
self:SetDefaultColor("PlayerRunicPower", 62, 54, 152)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -223,6 +224,8 @@ function PlayerMana.prototype:Update(unit)
|
|||||||
color = "PlayerRage"
|
color = "PlayerRage"
|
||||||
elseif (self.manaType == 3) then
|
elseif (self.manaType == 3) then
|
||||||
color = "PlayerEnergy"
|
color = "PlayerEnergy"
|
||||||
|
elseif (self.manaType == 6) then
|
||||||
|
color = "PlayerRunicPower"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -261,7 +264,7 @@ end
|
|||||||
|
|
||||||
-- OVERRIDE
|
-- OVERRIDE
|
||||||
function PlayerMana.prototype:UpdateBar(scale, color, alpha)
|
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)
|
PlayerMana.super.prototype.UpdateBar(self, scale, color, alpha)
|
||||||
end
|
end
|
||||||
|
@ -18,6 +18,7 @@ function IceTargetMana.prototype:init(moduleName, unit)
|
|||||||
self:SetDefaultColor("TargetRage", 235, 44, 26)
|
self:SetDefaultColor("TargetRage", 235, 44, 26)
|
||||||
self:SetDefaultColor("TargetEnergy", 228, 242, 31)
|
self:SetDefaultColor("TargetEnergy", 228, 242, 31)
|
||||||
self:SetDefaultColor("TargetFocus", 242, 149, 98)
|
self:SetDefaultColor("TargetFocus", 242, 149, 98)
|
||||||
|
self:SetDefaultColor("TargetRunicPower", 52, 64, 221)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -95,6 +96,8 @@ function IceTargetMana.prototype:Update(unit)
|
|||||||
self.color = "TargetFocus"
|
self.color = "TargetFocus"
|
||||||
elseif (manaType == 3) then
|
elseif (manaType == 3) then
|
||||||
self.color = "TargetEnergy"
|
self.color = "TargetEnergy"
|
||||||
|
elseif (manaType == 6) then
|
||||||
|
self.color = "TargetRunicPower"
|
||||||
end
|
end
|
||||||
|
|
||||||
if (self.tapped) then
|
if (self.tapped) then
|
||||||
|
@ -10,6 +10,7 @@ function TargetTargetMana.prototype:init()
|
|||||||
self:SetDefaultColor("TargetTargetRage", 235, 44, 26)
|
self:SetDefaultColor("TargetTargetRage", 235, 44, 26)
|
||||||
self:SetDefaultColor("TargetTargetEnergy", 228, 242, 31)
|
self:SetDefaultColor("TargetTargetEnergy", 228, 242, 31)
|
||||||
self:SetDefaultColor("TargetTargetFocus", 242, 149, 98)
|
self:SetDefaultColor("TargetTargetFocus", 242, 149, 98)
|
||||||
|
self:SetDefaultColor("TargetTargetRunicPower", 52, 64, 221)
|
||||||
end
|
end
|
||||||
|
|
||||||
function TargetTargetMana.prototype:GetDefaultSettings()
|
function TargetTargetMana.prototype:GetDefaultSettings()
|
||||||
@ -56,6 +57,8 @@ function TargetTargetMana.prototype:Update(unit)
|
|||||||
self.color = "TargetTargetFocus"
|
self.color = "TargetTargetFocus"
|
||||||
elseif (manaType == 3) then
|
elseif (manaType == 3) then
|
||||||
self.color = "TargetTargetEnergy"
|
self.color = "TargetTargetEnergy"
|
||||||
|
elseif (manaType == 6) then
|
||||||
|
self.color = "TargetTargetRunicPower"
|
||||||
end
|
end
|
||||||
|
|
||||||
if (self.tapped) then
|
if (self.tapped) then
|
||||||
|
Reference in New Issue
Block a user