mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-22 15:46:56 +00:00
timer animation fix
timer animation fix
This commit is contained in:
+23
-2
@@ -744,7 +744,17 @@ function pfUI.uf:UpdateConfig()
|
||||
f.buffs[i].stacks:SetShadowOffset(0.8, -0.8)
|
||||
f.buffs[i].stacks:SetTextColor(1,1,.5)
|
||||
|
||||
f.buffs[i].cd = f.buffs[i].cd or CreateFrame(COOLDOWN_FRAME_TYPE, f.buffs[i]:GetName() .. "Cooldown", f.buffs[i], "CooldownFrameTemplate")
|
||||
-- Create CD frame if it doesn't exist
|
||||
if not f.buffs[i].cd then
|
||||
f.buffs[i].cd = CreateFrame(COOLDOWN_FRAME_TYPE, f.buffs[i]:GetName() .. "Cooldown", f.buffs[i], "CooldownFrameTemplate")
|
||||
end
|
||||
|
||||
-- Always update CD properties (in case size changed)
|
||||
local cdScale = f.config.buffsize / 32
|
||||
f.buffs[i].cd:ClearAllPoints()
|
||||
f.buffs[i].cd:SetScale(cdScale)
|
||||
f.buffs[i].cd:SetAllPoints(f.buffs[i])
|
||||
f.buffs[i].cd:SetFrameLevel(14)
|
||||
f.buffs[i].cd.pfCooldownType = "ALL"
|
||||
f.buffs[i].cd.pfCooldownStyleText = cooldown_text
|
||||
f.buffs[i].cd.pfCooldownStyleAnimation = cooldown_anim
|
||||
@@ -825,7 +835,18 @@ function pfUI.uf:UpdateConfig()
|
||||
f.debuffs[i].stacks:SetShadowColor(0, 0, 0)
|
||||
f.debuffs[i].stacks:SetShadowOffset(0.8, -0.8)
|
||||
f.debuffs[i].stacks:SetTextColor(1,1,.5)
|
||||
f.debuffs[i].cd = f.debuffs[i].cd or CreateFrame(COOLDOWN_FRAME_TYPE, f.debuffs[i]:GetName() .. "Cooldown", f.debuffs[i], "CooldownFrameTemplate")
|
||||
|
||||
-- Create CD frame if it doesn't exist
|
||||
if not f.debuffs[i].cd then
|
||||
f.debuffs[i].cd = CreateFrame(COOLDOWN_FRAME_TYPE, f.debuffs[i]:GetName() .. "Cooldown", f.debuffs[i], "CooldownFrameTemplate")
|
||||
end
|
||||
|
||||
-- Always update CD properties (in case size changed)
|
||||
local cdScale = f.config.debuffsize / 32
|
||||
f.debuffs[i].cd:ClearAllPoints()
|
||||
f.debuffs[i].cd:SetScale(cdScale)
|
||||
f.debuffs[i].cd:SetAllPoints(f.debuffs[i])
|
||||
f.debuffs[i].cd:SetFrameLevel(14)
|
||||
f.debuffs[i].cd.pfCooldownType = "ALL"
|
||||
f.debuffs[i].cd.pfCooldownStyleText = cooldown_text
|
||||
f.debuffs[i].cd.pfCooldownStyleAnimation = cooldown_anim
|
||||
|
||||
Reference in New Issue
Block a user