- 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

@ -210,7 +210,6 @@ end
function TargetOfTarget.prototype:Enable(core)
TargetOfTarget.super.prototype.Enable(self, core)
self:RegisterEvent("PLAYER_TARGET_CHANGED", "Update")
self:ScheduleRepeatingEvent(self.elementName, self.Update, 0.2, self)
RegisterUnitWatch(self.frame)
@ -476,6 +475,8 @@ function TargetOfTarget.prototype:Update()
self.frame.bar.texture:SetVertexColor(self:GetColor(unitClass, 0.7))
self.frame.bar:SetMinMaxValues(0, maxHealth)
self.frame.bar:SetValue(health)
self:UpdateAlpha()
end