- mana modules animate regardless of 'predictedPower' setting now

- fixed occasional flickering in the cast bar and threat bar when they are first displayed
- minor code cleanup
This commit is contained in:
Parnic
2010-11-06 03:03:46 +00:00
parent 74b9ace21d
commit fa8b895214
6 changed files with 24 additions and 19 deletions

View File

@ -176,6 +176,7 @@ function IceThreat.prototype:Enable(core)
self.scheduledEvent = self:ScheduleRepeatingTimer("Update", 0.2)
self:SetScale(0, true, true)
self:Update(self.unit)
end
@ -391,6 +392,12 @@ function IceThreat.prototype:GetSecondHighestThreat()
return secondHighestThreat
end
function IceThreat.prototype:Show(bShouldShow)
IceThreat.super.prototype.Show(self, bShouldShow)
if not bShouldShow then
self:SetScale(0, true, true)
end
end
-- Load us up
IceHUD.IceThreat = IceThreat:new()