Quantcast
WoWInterface - View Single Post - Cooldown frame not seeing cooldown animation?
View Single Post
05-02-20, 06:15 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,292
Any reason you're not using the CooldownFrameTemplate?

Lua Code:
  1. local f = CreateFrame("FRAME")
  2. f:SetWidth(32)
  3. f:SetHeight(32)
  4. f:SetPoint("CENTER")
  5.  
  6. local cdFrame = CreateFrame("Cooldown", "MyCdFrame", f,  "CooldownFrameTemplate")
  7. cdFrame:SetAllPoints(f)
  8. cdFrame:SetSwipeColor(1, 1, 1)
  9.  
  10. local texture = f:CreateTexture(nil, "BACKGROUND")
  11. texture:SetAllPoints(f)
  12. texture:SetTexCoord(0.07,0.9,0.07,0.90)
  13. texture:SetTexture(132242)
  14.  
  15. f:Show()
  16.  
  17. MyCdFrame:SetCooldown(GetTime(), 10)

Code:
/run MyCdFrame:SetCooldown(GetTime(), 10)
to play it over.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote