View Single Post
09-20-14, 07:06 PM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Don't quote me on this, but you might try something like this..
Lua Code:
  1. for i = 1, 6 do
  2.     local cooldown = _G['RuneButtonIndividual' .. i .. 'Cooldown']
  3.     cooldown:SetSwipeTexture('', 0, 0, 0, RHaoc)
  4.     local start, duration, runeReady = GetRuneCooldown(i)
  5.     if not runeReady and start then
  6.         CooldownFrame_SetTimer(cooldown, start, duration, 1)
  7.     end
  8. end
I don't think it will update the texture unless you call SetCooldown on it afterward, but there might be a better way to do this.

Last edited by semlar : 09-20-14 at 07:49 PM.
  Reply With Quote