Thread Tools Display Modes
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
09-19-18, 06:51 AM   #2
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Auras have the disableCooldown attribute.
https://github.com/oUF-wow/oUF/blob/.../auras.lua#L19

*edit* Ohhh by count text you do not mean the aura stack counter but the actual duration timer text.

You can use button.cd:SetDrawSwipe(false) instead then.

https://github.com/oUF-wow/oUF/issues/447
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 09-19-18 at 06:55 AM.
  Reply With Quote
09-19-18, 09:22 AM   #3
Gilsuk
A Murloc Raider
Join Date: Sep 2018
Posts: 4
Originally Posted by zork View Post
*edit* Ohhh by count text you do not mean the aura stack counter but the actual duration timer text.
Sorry I'm noob at English sigh... I thought count is same with duration
button.cd:SetDrawSwipe(false) is big helpful.

I found button.cd:SetDrawEdge(false).
This will remove yellow sparks at the edge of cooldown spirals
  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