Can we have buffs/debuffs timer spin option?
zli1122 opened this issue ยท 3 comments
Hello Aviana,
Could you help me take a look at how to cancel that text shown on buff duration please? I've checked the code in 1.12 and 1.13 (classic) and still have no idea how to cancel that text.
1.12
button.cooldown = CreateFrame("Model", button:GetName().."CD", button, "CooldownFrameTemplate")
button.cooldown:ClearAllPoints()
button.cooldown:SetHeight(36)
button.cooldown:SetWidth(36)
button.cooldown.reverse = true
button.cooldown:Hide()
button.textFrame = CreateFrame("Frame", nil, button)
button.textFrame:SetAllPoints(button)
button.timeFontstring = button.textFrame:CreateFontString(nil, "OVERLAY")
button.timeFontstring:SetJustifyH("CENTER")
button.timeFontstring:SetPoint("CENTER", button.textFrame, "CENTER",0,0)
1.13
button.cooldown = CreateFrame("Cooldown", button:GetName().."CD", button, "CooldownFrameTemplate")
button.cooldown:ClearAllPoints()
button.cooldown:SetAllPoints(button)
button.cooldown:SetReverse(true)
button.cooldown:SetDrawEdge(false)
button.cooldown:SetDrawSwipe(true)
button.cooldown:SetSwipeColor(0, 0, 0, 0.8)
button.cooldown:Hide()
I just found that in previous 1.12 luna program.
There is no such command. But it won't show any timer if I delete this line.
button.cooldown:SetCooldown(endTime - duration, duration)
Thank you very much!
The number comes from the default interface code i think. I would have to make an option to hide it.