- updated all UnitPower* code to use the SPELL_POWER_* constants instead of hardcoding numbers...mostly just a readability change

This commit is contained in:
Parnic
2010-09-10 01:50:43 +00:00
parent 22fd66d756
commit 8d4686f10c
7 changed files with 27 additions and 55 deletions

View File

@ -112,35 +112,7 @@ function IceCustomMana.prototype:Disable(core)
self:CancelScheduledEvent(self.elementName)
end
--[[
function IceCustomMana.prototype:Update(unit)
self.color = "CustomManaMana"
self:Show(true)
local manaType = UnitPowerType(self.unit)
if (self.moduleSettings.scaleManaColor) then
self.color = "CustomManaColor"
end
if (manaType == 1) then
self.color = "CustomManaRage"
elseif (manaType == 2) then
self.color = "CustomManaFocus"
elseif (manaType == 3) then
self.color = "CustomManaEnergy"
elseif (manaType == 6) then
self.color = "CustomManaRunicPower"
end
if (self.tapped) then
self.color = "Tapped"
end
IceCustomMana.super.prototype.Update(self, unit)
end
]]--
function IceCustomMana.prototype:SetUnit(unit)
IceCustomMana.super.prototype.SetUnit(self, unit)
if self.frame ~= nil and self.frame.button ~= nil then