Quantcast
WoWInterface - View Single Post - Cooldown frame not seeing cooldown animation?
View Single Post
05-02-20, 05:32 PM   #1
MinguasBeef
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 34
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?

Last edited by MinguasBeef : 05-02-20 at 05:52 PM.
  Reply With Quote