Quantcast
Cooldown frame not seeing cooldown animation? - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Cooldown frame not seeing cooldown animation?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off