mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
fix cooldown display
This commit is contained in:
@@ -38,7 +38,7 @@ pfUI:RegisterModule("cooldown", function ()
|
|||||||
local remaining = this.duration - (GetTime() - this.start)
|
local remaining = this.duration - (GetTime() - this.start)
|
||||||
|
|
||||||
-- disable GCD notify
|
-- disable GCD notify
|
||||||
if ( remaining >= 1.5 ) then
|
if (remaining >= 0 and this.duration > 1.5) then
|
||||||
this.cd:Show()
|
this.cd:Show()
|
||||||
local unit = ""
|
local unit = ""
|
||||||
if remaining > 99 then
|
if remaining > 99 then
|
||||||
@@ -51,10 +51,7 @@ pfUI:RegisterModule("cooldown", function ()
|
|||||||
unit = "h"
|
unit = "h"
|
||||||
end
|
end
|
||||||
|
|
||||||
this.cd.text:SetText(floor(remaining)..unit)
|
this.cd.text:SetText(ceil(remaining)..unit)
|
||||||
--elseif ( remaining >= .5 ) then
|
|
||||||
-- this.cd:Show()
|
|
||||||
-- this.cd.text:SetText("")
|
|
||||||
else
|
else
|
||||||
this:Hide();
|
this:Hide();
|
||||||
this.cd:Hide()
|
this.cd:Hide()
|
||||||
|
|||||||
Reference in New Issue
Block a user