mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Moved lag indicator for channeled spells to the bottom of the bar
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
## Name: IceHUD
|
## Name: IceHUD
|
||||||
## Title: IceHUD |cff7fff7f -Ace2-|r
|
## Title: IceHUD |cff7fff7f -Ace2-|r
|
||||||
## Notes: Another HUD addon
|
## Notes: Another HUD addon
|
||||||
## Version: 0.9 ($Revision$)
|
## Version: 0.9.1 ($Revision$)
|
||||||
## SavedVariables: IceCoreDB
|
## SavedVariables: IceCoreDB
|
||||||
## OptionalDeps: Ace2, GratuityLib, WaterfallLib, MobHealth
|
## OptionalDeps: Ace2, GratuityLib, WaterfallLib, MobHealth
|
||||||
## X-Embeds: Ace2, GratuityLib, WaterfallLib
|
## X-Embeds: Ace2, GratuityLib, WaterfallLib
|
||||||
|
@ -191,6 +191,24 @@ function CastBar.prototype:SpellCastStart(unit)
|
|||||||
end
|
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
|
||||||
|
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user