target-debufftimer: move debuff stacks

move debuff stacks and show debuff type colors
This commit is contained in:
flyinbed
2023-12-06 18:46:58 +01:00
committed by GitHub
parent cf8169736f
commit 3394f51e0e
+20
View File
@@ -59,6 +59,26 @@ module.enable = function(self)
button.cd:SetAlpha(.8)
end
local dCount = _G["TargetFrameDebuff" .. i .. "Count"]
if button and dCount then
if not dCount.fixup then
dCount.fixup = true
dCount:SetPoint("BOTTOMRIGHT", "TargetFrameDebuff" .. i, "BOTTOMRIGHT", 6, -3)
end
if stacks and stacks > 1 then
dCount:SetText("|c0000ff3b" .. stacks)
dCount:Show()
else
dCount:Hide()
end
end
local dBorder = _G["TargetFrameDebuff" .. i .. "Border"]
if button and dBorder then
local color = dtype and DebuffTypeColor[dtype] or DebuffTypeColor["none"]
dBorder:SetVertexColor(color.r, color.g, color.b)
end
if button and effect and duration and timeleft then
local start = GetTime() + timeleft - duration
CooldownFrame_SetTimer(button.cd, start, duration, 1)