Thread Tools Display Modes
09-28-16, 11:02 AM   #1
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Is hiding cooldown swipe still bugged?

I've scoured the internet about this and I've tried everything to no avail. One thing I've read is that trying to hide the cooldown swipe is more or less bugged? I was curious if this was the case. The code below was what I've found along my googling.

Lua Code:
  1. local Frame = CreateFrame("Frame") -- Icon frame
  2.  
  3. Frame.CD = CreateFrame("Cooldown", name.."CD", Frame, "CooldownFrameTemplate");
  4. Frame.CD:SetAllPoints(Frame);
  5.  
  6. local function ToggleCooldownSwipe(object,arg1)
  7.     local cooldown = _G[object:GetName()]
  8.     if (not arg1) then
  9.         cooldown:SetSwipeColor(0,0,0,0)
  10.         cooldown:SetHideCountdownNumbers(true)
  11.         cooldown:Hide() -- just showing that I've tried this
  12.         cooldown:SetAlpha(0) -- just showing that I've tried this
  13.     else
  14.         cooldown:SetSwipeColor(1,1,1,1)
  15.         cooldown:SetHideCountdownNumbers(false)
  16.         cooldown:Hide() -- just showing that I've tried this
  17.         cooldown:SetAlpha(0) -- just showing that I've tried this
  18.     end
  19.  
  20.     cooldown:SetDrawSwipe(arg1)
  21.     cooldown:SetDrawEdge(arg1)
  22.     cooldown:SetDrawBling(arg1)
  23.  
  24. end
  25.  
  26. ToggleCooldownSwipe(Frame.CD,false)

Thanks for any help!

Last edited by Sweetsour : 09-28-16 at 11:04 AM.
  Reply With Quote
09-29-16, 06:15 PM   #2
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Turns out my code worked all along, but I had an if statement elsewhere in my addon that messed things up :P
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Is hiding cooldown swipe still bugged?


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