hide CooldownStyleAnimation fix

hide CooldownStyleAnimation  fix
This commit is contained in:
Meow
2026-01-25 08:44:16 +01:00
parent 7898895cf4
commit 1e459db21a
+2 -4
View File
@@ -112,11 +112,9 @@ pfUI:RegisterModule("cooldown", "vanilla:tbc", function ()
start, duration = 0, 0
end
-- handle animation visibility
-- hide animation
if this.pfCooldownStyleAnimation == 0 then
this:SetAlpha(0)
elseif this.pfCooldownStyleAnimation == 1 then
this:SetAlpha(1)
elseif not this.pfCooldownStyleAnimation and C.appearance.cd.hideanim == "1" then
this:SetAlpha(0)
end
@@ -146,4 +144,4 @@ pfUI:RegisterModule("cooldown", "vanilla:tbc", function ()
local methods = getmetatable(CreateFrame('Cooldown', nil, nil, 'CooldownFrameTemplate')).__index
hooksecurefunc(methods, 'SetCooldown', SetCooldown)
end
end)
end)