mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
- Unbreaking some modules that broke in r731
This commit is contained in:
@ -406,7 +406,7 @@ function CastBar.prototype:SpellCastStart(event, unit, spell, rank)
|
|||||||
|
|
||||||
self.lagBar:SetFrameStrata("BACKGROUND")
|
self.lagBar:SetFrameStrata("BACKGROUND")
|
||||||
self.lagBar:ClearAllPoints()
|
self.lagBar:ClearAllPoints()
|
||||||
if not IceHUD:xor(self.moduleSettings.reverse, self.moduleSettings.inverse) then
|
if not IceHUD:xor(self.moduleSettings.reverse, (self.moduleSettings.inverse == "INVERSE")) then
|
||||||
self.lagBar:SetPoint("TOPLEFT", self.frame, "TOPLEFT")
|
self.lagBar:SetPoint("TOPLEFT", self.frame, "TOPLEFT")
|
||||||
else
|
else
|
||||||
self.lagBar:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT")
|
self.lagBar:SetPoint("BOTTOMLEFT", self.frame, "BOTTOMLEFT")
|
||||||
@ -423,7 +423,7 @@ function CastBar.prototype:SpellCastStart(event, unit, spell, rank)
|
|||||||
|
|
||||||
local min_y = 0
|
local min_y = 0
|
||||||
local max_y = pos
|
local max_y = pos
|
||||||
if IceHUD:xor(self.moduleSettings.reverse, self.moduleSettings.inverse) then
|
if IceHUD:xor(self.moduleSettings.reverse, (self.moduleSettings.inverse == "INVERSE")) then
|
||||||
min_y = 1-pos
|
min_y = 1-pos
|
||||||
max_y = 1
|
max_y = 1
|
||||||
end
|
end
|
||||||
@ -455,7 +455,7 @@ function CastBar.prototype:SpellCastChannelStart(event, unit)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local lagTop = not IceHUD:xor(self.moduleSettings.reverse, self.moduleSettings.inverse)
|
local lagTop = not IceHUD:xor(self.moduleSettings.reverse, (self.moduleSettings.inverse == "INVERSE"))
|
||||||
if self.moduleSettings.reverseChannel then
|
if self.moduleSettings.reverseChannel then
|
||||||
lagTop = not lagTop
|
lagTop = not lagTop
|
||||||
end
|
end
|
||||||
|
@ -107,7 +107,7 @@ function EclipseBar.prototype:CreateSolarBar()
|
|||||||
self.solarBar = CreateFrame("Frame", nil, self.frame)
|
self.solarBar = CreateFrame("Frame", nil, self.frame)
|
||||||
end
|
end
|
||||||
|
|
||||||
local solarTop = not IceHUD:xor(self.moduleSettings.reverse, self.moduleSettings.inverse)
|
local solarTop = not IceHUD:xor(self.moduleSettings.reverse, (self.moduleSettings.inverse == "INVERSE"))
|
||||||
|
|
||||||
self.solarBar:SetFrameStrata("BACKGROUND")
|
self.solarBar:SetFrameStrata("BACKGROUND")
|
||||||
self.solarBar:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
self.solarBar:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
||||||
|
@ -306,7 +306,7 @@ function SliceAndDice.prototype:UpdateDurationBar(event, unit)
|
|||||||
if (self.moduleSettings.reverse) then
|
if (self.moduleSettings.reverse) then
|
||||||
scale = 1 - scale
|
scale = 1 - scale
|
||||||
end
|
end
|
||||||
if (self.moduleSettings.inverse) then
|
if (self.moduleSettings.inverse == "INVERSE") then
|
||||||
min_y = 0
|
min_y = 0
|
||||||
max_y = scale
|
max_y = scale
|
||||||
else
|
else
|
||||||
|
@ -200,7 +200,7 @@ function IceThreat.prototype:CreateAggroBar()
|
|||||||
self.aggroBar = CreateFrame("Frame", nil, self.frame)
|
self.aggroBar = CreateFrame("Frame", nil, self.frame)
|
||||||
end
|
end
|
||||||
|
|
||||||
local aggroTop = not IceHUD:xor(self.moduleSettings.reverse, self.moduleSettings.inverse)
|
local aggroTop = not IceHUD:xor(self.moduleSettings.reverse, (self.moduleSettings.inverse == "INVERSE"))
|
||||||
|
|
||||||
self.aggroBar:SetFrameStrata("BACKGROUND")
|
self.aggroBar:SetFrameStrata("BACKGROUND")
|
||||||
self.aggroBar:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
self.aggroBar:SetWidth(self.settings.barWidth + (self.moduleSettings.widthModifier or 0))
|
||||||
@ -373,7 +373,7 @@ function IceThreat.prototype:Update(unit)
|
|||||||
self.aggroBarMulti = rangeMulti
|
self.aggroBarMulti = rangeMulti
|
||||||
|
|
||||||
local pos = IceHUD:Clamp(1 - (1 / rangeMulti), 0, 1)
|
local pos = IceHUD:Clamp(1 - (1 / rangeMulti), 0, 1)
|
||||||
local fromTop = not IceHUD:xor(self.moduleSettings.reverse, self.moduleSettings.inverse)
|
local fromTop = not IceHUD:xor(self.moduleSettings.reverse, (self.moduleSettings.inverse == "INVERSE"))
|
||||||
|
|
||||||
local min_y = 0
|
local min_y = 0
|
||||||
local max_y = pos
|
local max_y = pos
|
||||||
@ -414,7 +414,7 @@ function IceThreat.prototype:UpdateSecondHighestThreatBar(secondHighestThreat, t
|
|||||||
if (self.moduleSettings.reverse) then
|
if (self.moduleSettings.reverse) then
|
||||||
pos = 1 - pos
|
pos = 1 - pos
|
||||||
end
|
end
|
||||||
if (self.moduleSettings.inverse) then
|
if (self.moduleSettings.inverse == "INVERSE") then
|
||||||
min_y = 0
|
min_y = 0
|
||||||
max_y = pos
|
max_y = pos
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user