mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 05:00:02 +00:00
cooldown: add option to set the minimal cooldown to display
This commit is contained in:
@@ -4,7 +4,7 @@ pfUI:RegisterModule("cooldown", function ()
|
||||
-- disable animation
|
||||
this:SetPosition(1,1,1)
|
||||
|
||||
if ( start > 0 and duration > 2 and enable > 0) then
|
||||
if ( start > 0 and duration > tonumber(pfUI_config.global.cooldown_min) and enable > 0) then
|
||||
this.start = start
|
||||
this.duration = duration
|
||||
this.stopping = 0
|
||||
@@ -40,7 +40,7 @@ pfUI:RegisterModule("cooldown", function ()
|
||||
local remaining = this.duration - (GetTime() - this.start)
|
||||
|
||||
-- disable GCD notify
|
||||
if (remaining >= 0 and this.duration > 2) then
|
||||
if (remaining >= 0 and this.duration > tonumber(pfUI_config.global.cooldown_min)) then
|
||||
this.cd:Show()
|
||||
local unit = ""
|
||||
if remaining > 99 then
|
||||
|
||||
Reference in New Issue
Block a user