mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 05:50:50 +00:00
cooldown: fix alpha value for autohiding bars
This commit is contained in:
@@ -14,6 +14,9 @@ pfUI:RegisterModule("cooldown", function ()
|
|||||||
if this.next > GetTime() then return end
|
if this.next > GetTime() then return end
|
||||||
this.next = GetTime() + .1
|
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)
|
local remaining = this.duration - (GetTime() - this.start)
|
||||||
if remaining >= 0 then
|
if remaining >= 0 then
|
||||||
local r, g, b, a = 1, 1, 1, 1
|
local r, g, b, a = 1, 1, 1, 1
|
||||||
|
|||||||
Reference in New Issue
Block a user