Quantcast
WoWInterface - View Single Post - Cooldown frame not seeing cooldown animation?
View Single Post
05-02-20, 05:52 PM   #3
MinguasBeef
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 33
Originally Posted by Xrystal View Post
I have this set up for my mage portals addon and I am pretty sure I had the swipe stuff working on it.

Lua Code:
  1. -- Get the cooldown informaton and if it is just the general cooldown, don't bother
  2.     local cdStart, cdDuration, cdEnabled, cdRate = GetSpellCooldown(id)
  3.     local cdDrawEdge = false
  4.        
  5.     if cdDuration and cdDuration < 2 then return end
  6.  
  7.     button.Cooldown:SetEdgeTexture("Interface\\Cooldown\\edge");
  8.     button.Cooldown:SetSwipeColor(1, 1, 0.8);   >>>>>>>>>>>>>>> Missing this perhaps ?
  9.     button.Cooldown:SetHideCountdownNumbers(false);
  10.     button.Cooldown.currentCooldownType = COOLDOWN_TYPE_NORMAL;
  11.     button.Cooldown:SetCooldown(cdStart, cdDuration)
  12.     button.Cooldown:Show()
I've updated my code, but I still get the same behavior.
  Reply With Quote