Quantcast
Auras cooldown counts problem - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-19-18, 03:00 AM   #1
Gilsuk
A Murloc Raider
Join Date: Sep 2018
Posts: 4
Auras cooldown counts problem

I'm trying to hide spiral cooldown texture on aura icons, but want to remain count text

I use this code

Lua Code:
  1. Auras.PostCreateIcon = function(_, button)
  2.  
  3.     if not button.count then return end
  4.  
  5.     button.count:SetPoint("BOTTOM")
  6.     button.count:SetTextColor(1,1,0)
  7.     button.count:SetFont(GameFontNormal:GetFont(), 8)
  8.  
  9.     --button.cd:SetAlpha(0)
  10. end

Above code is definitely executed and does not occur errors. But, Nothings changed in the game
I have no idea Why count objects are not affected by the code above

Lua Code:
  1. button.cd:SetAlpha(0)
This set alpha 0 to count. so Cooldown texts can't be seen also

Lua Code:
  1. button.count:SetParent(button)
Does not help.

How can I edit cooldown count text?
  Reply With Quote
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Auras cooldown counts problem

Thread Tools
Display Modes

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