GetChildren() not working for FontStrings?
According to https://wow.gamepedia.com/API_Frame_GetChildren GetChildren() gets the children of a frame.
According to https://wow.gamepedia.com/API_Frame_CreateFontString CreateFontString() creates a FontString as a child of a frame. However, GetChildren() does apparently only get children frames. FontStrings are ignored. Is this correct? And if so, is there any other way of getting to the FontStrings of a frame when these FontStrings were created with CreateFontString() lacking a name argument? Thanks! |
Font Strings and Textures are added as Regions so GetRegions() should return it.
|
Cool, thanks a lot!! :-)
Is there a better way of checking if a child region is a FontString than "if child.GetText"? |
Quote:
Lua Code:
|
or
Code:
type = widget:GetObjectType() |
Thank you both!
So I assume there is no difference between Code:
child:IsObjectType("FontString") Code:
child:GetObjectType() == "FontString" |
No, Just depends on what you want to do with it. I was just a second late pressing "Submit" :D
|
Quote:
|
All times are GMT -6. The time now is 01:37 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI