mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 11:50:49 +00:00
fix bad cooldown displays
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
pfUI:RegisterModule("cooldown", function ()
|
pfUI:RegisterModule("cooldown", function ()
|
||||||
function CooldownFrame_SetTimer(this, start, duration, enable)
|
function CooldownFrame_SetTimer(this, start, duration, enable)
|
||||||
if ( start > 0 and duration > 0 and enable > 0) then
|
if ( start > 0 and duration > 0 and enable > 0) then
|
||||||
|
|
||||||
this.start = start;
|
this.start = start;
|
||||||
this.duration = duration;
|
this.duration = duration;
|
||||||
this.stopping = 0;
|
this.stopping = 0;
|
||||||
@@ -28,8 +27,8 @@ pfUI:RegisterModule("cooldown", function ()
|
|||||||
this:Show();
|
this:Show();
|
||||||
else
|
else
|
||||||
this:Hide()
|
this:Hide()
|
||||||
|
if this.cd then this.cd:Hide() end
|
||||||
end
|
end
|
||||||
|
|
||||||
this:SetAlpha(0)
|
this:SetAlpha(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user