- 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:
Parnic
2008-10-17 06:46:11 +00:00
parent db690aa956
commit 473e77e2da
8 changed files with 116 additions and 44 deletions

View File

@ -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