WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Auras cooldown counts problem (https://www.wowinterface.com/forums/showthread.php?t=56686)

Gilsuk 09-19-18 03:00 AM

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?

zork 09-19-18 06:51 AM

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

Gilsuk 09-19-18 09:22 AM

Quote:

Originally Posted by zork (Post 330160)
*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


All times are GMT -6. The time now is 03:06 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI