MinguasBeef |
05-02-20 05:32 PM |
Cooldown frame not seeing cooldown animation?
This is my code i'm using to create a frame with a texture/cooldown frame attached.
Code:
local f = CreateFrame("FRAME")
f:SetWidth(32)
f:SetHeight(32)
f:SetPoint("CENTER")
local cdFrame = CreateFrame("Cooldown", nil, f)
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()
cdFrame:SetCooldown(GetTime(), 10)
This is what I see.
Any idea why I cannot see the darkened cooldown area?
|