View Single Post
05-02-20, 05:38 PM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,892
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()
__________________
  Reply With Quote