cooldown: fix alpha value for autohiding bars

This commit is contained in:
shagu
2016-12-10 20:09:30 +01:00
parent 53499a1149
commit e55d1ca3b2
+3
View File
@@ -14,6 +14,9 @@ pfUI:RegisterModule("cooldown", function ()
if this.next > GetTime() then return end
this.next = GetTime() + .1
-- fix own alpha value (should be inherited, but isn't)
this:SetAlpha(this:GetParent():GetAlpha())
local remaining = this.duration - (GetTime() - this.start)
if remaining >= 0 then
local r, g, b, a = 1, 1, 1, 1