mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- made alpha settings properly affect non-bar elements (range finder, targetinfo, combo points, etc.)
- something's busted with the rune module if you spawn into the world and that module is at 0% alpha...trying to track that down now, but i gotta go to bed. could be a result of this change, maybe not.
This commit is contained in:
@ -88,7 +88,6 @@ end
|
||||
function IHUD_Threat.prototype:Enable(core)
|
||||
IHUD_Threat.super.prototype.Enable(self, core)
|
||||
|
||||
self:RegisterEvent("PLAYER_TARGET_CHANGED", "Update")
|
||||
self:ScheduleRepeatingEvent(self.elementName, self.Update, 0.2, self)
|
||||
|
||||
self:Update(self.unit)
|
||||
@ -108,6 +107,11 @@ function IHUD_Threat.prototype:CreateFrame()
|
||||
self:CreateAggroBar()
|
||||
end
|
||||
|
||||
-- needs to be inverted for threat bar
|
||||
function IHUD_Threat.prototype:UseTargetAlpha(scale)
|
||||
return (scale and (scale > 0))
|
||||
end
|
||||
|
||||
-- create the aggro range indicator bar
|
||||
function IHUD_Threat.prototype:CreateAggroBar()
|
||||
if not (self.aggroBar) then
|
||||
@ -217,6 +221,8 @@ function IHUD_Threat.prototype:Update(unit)
|
||||
|
||||
self.aggroBar:SetPoint("BOTTOM", self.frame, "BOTTOM", 0, y)
|
||||
end
|
||||
|
||||
self:UpdateAlpha()
|
||||
end
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user