mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-29 02:36:02 +00:00
hide CooldownStyleAnimation fix
hide CooldownStyleAnimation fix
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user