WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   WoD Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=151)
-   -   The new Cooldown Text (https://www.wowinterface.com/forums/showthread.php?t=49924)

sticklord 09-18-14 06:14 AM

The new Cooldown Text
 
Hello there

I've looked at the new cooldown text display for auras and actionbuttons. I've noticed that you can hide them for a specific cooldown (SetHideCountdownNumbers()), but is there a way to modify it? Like setting the font, position and text formatting? I looked at the Blizzard Interface Code, but didn't find where they actually handled the cooldown text so i guess it's controlled deeper down somewhere.

Duugu 09-18-14 09:44 AM

Doeshttp://wowprogramming.com/docs/widgets/Frame/GetRegions return the fontstring object?

[e]
Tried it.
Code:

/script local t = ActionButton1Cooldown:GetRegions() for i, v in pairs(t) do if t.GetText and t:GetText()then print(i, t:GetText()) t:SetFontObject("SystemFont_Tiny") end end
does work.

Seems as the cooldown frame/number is created on the fly. So don't forget to check if it exists before doing something.

sticklord 09-18-14 09:59 AM

Quote:

Originally Posted by Duugu (Post 296884)

Hm, good idea. I'll check it out.

Edit: Damn, that's quick! I'm still waiting for it to patch. But yeah, Thanks for the help! I'll probably get it to do what i want now.

Edit2: I think it's only the parent frame that's created on the fly though, like auras and stuff.


All times are GMT -6. The time now is 04:43 PM.

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