Originally Posted by Fizzlemizz
Any reason you're not using the CooldownFrameTemplate?
Lua Code:
local f = CreateFrame("FRAME") f:SetWidth(32) f:SetHeight(32) f:SetPoint("CENTER") local cdFrame = CreateFrame("Cooldown", "MyCdFrame", f, "CooldownFrameTemplate") cdFrame:SetAllPoints(f) cdFrame:SetSwipeColor(1, 1, 1) local texture = f:CreateTexture(nil, "BACKGROUND") texture:SetAllPoints(f) texture:SetTexCoord(0.07,0.9,0.07,0.90) texture:SetTexture(132242) f:Show() MyCdFrame:SetCooldown(GetTime(), 10)
Code:
/run MyCdFrame:SetCooldown(GetTime(), 10)
to play it over.
|
Ah, this was the issue! Thanks!
I was porting some old stuff that was compatible with the 2.4.3 client and it did not use that template. I didn't even know about it. Ty!