mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- forgot to fix channeling's lag bar to behave properly with all the new combinations of inverting/reversing
This commit is contained in:
@ -483,9 +483,14 @@ function CastBar.prototype:SpellCastChannelStart(unit)
|
||||
return
|
||||
end
|
||||
|
||||
local lagTop = not xor(self.moduleSettings.reverse, self.moduleSettings.inverse)
|
||||
if self.moduleSettings.reverseChannel then
|
||||
lagTop = not lagTop
|
||||
end
|
||||
|
||||
self.lagBar:SetFrameStrata("MEDIUM")
|
||||
self.lagBar:ClearAllPoints()
|
||||
if self.moduleSettings.reverse then
|
||||
if lagTop then
|
||||
self.lagBar:SetPoint("TOPLEFT", self.frame, "TOPLEFT")
|
||||
else
|
||||
self.lagBar:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT")
|
||||
@ -501,7 +506,7 @@ function CastBar.prototype:SpellCastChannelStart(unit)
|
||||
|
||||
local min_y = 1-pos
|
||||
local max_y = 1
|
||||
if self.moduleSettings.reverse then
|
||||
if lagTop then
|
||||
min_y = 0
|
||||
max_y = pos
|
||||
end
|
||||
|
Reference in New Issue
Block a user