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:
@ -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
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user