From e55d1ca3b2570a9fcfb78b329e69279d71c6a91e Mon Sep 17 00:00:00 2001 From: shagu Date: Sat, 10 Dec 2016 20:09:30 +0100 Subject: [PATCH] cooldown: fix alpha value for autohiding bars --- modules/cooldown.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/cooldown.lua b/modules/cooldown.lua index 21e054e5..a4837daa 100644 --- a/modules/cooldown.lua +++ b/modules/cooldown.lua @@ -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