Moved lag indicator for channeled spells to the bottom of the bar

This commit is contained in:
iceroth
2007-05-19 16:27:59 +00:00
parent ca4a4a80fa
commit 81f0dcc366
2 changed files with 19 additions and 1 deletions

View File

@ -3,7 +3,7 @@
## Name: IceHUD
## Title: IceHUD |cff7fff7f -Ace2-|r
## Notes: Another HUD addon
## Version: 0.9 ($Revision$)
## Version: 0.9.1 ($Revision$)
## SavedVariables: IceCoreDB
## OptionalDeps: Ace2, GratuityLib, WaterfallLib, MobHealth
## X-Embeds: Ace2, GratuityLib, WaterfallLib

View File

@ -191,6 +191,24 @@ function CastBar.prototype:SpellCastStart(unit)
end
-- OVERRIDE
function CastBar.prototype:SpellCastChannelStart(unit)
CastBar.super.prototype.SpellCastChannelStart(self, unit)
if (unit ~= self.unit) then return end
local lag = GetTime() - self.spellCastSent
local pos = lag / self.actionDuration
local y = self.settings.barHeight - (pos * self.settings.barHeight)
if (self.moduleSettings.side == IceCore.Side.Left) then
self.lagBar.bar:SetTexCoord(1, 0, pos, 0)
else
self.lagBar.bar:SetTexCoord(0, 1, pos, 0)
end
self.lagBar:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, 0)
end
-------------------------------------------------------------------------------