mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-26 14:00:48 +00:00
cooldown: no break required
This commit is contained in:
@@ -56,9 +56,6 @@ pfUI:RegisterModule("cooldown", function ()
|
|||||||
|
|
||||||
-- hook
|
-- hook
|
||||||
Hook("CooldownFrame_SetTimer", function(this, start, duration, enable)
|
Hook("CooldownFrame_SetTimer", function(this, start, duration, enable)
|
||||||
-- break here if no this-reference is set
|
|
||||||
if not this then return end
|
|
||||||
|
|
||||||
-- realign guessed cooldown frames
|
-- realign guessed cooldown frames
|
||||||
if this:GetParent() and this:GetParent():GetWidth() / 36 > 0 then
|
if this:GetParent() and this:GetParent():GetWidth() / 36 > 0 then
|
||||||
this:SetScale(this:GetParent():GetWidth() / 36)
|
this:SetScale(this:GetParent():GetWidth() / 36)
|
||||||
|
|||||||
Reference in New Issue
Block a user