WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Accessing frame child elements (https://www.wowinterface.com/forums/showthread.php?t=54244)

Sweetsour 08-19-16 04:35 PM

Accessing frame child elements
 
Hello!

I'm trying to access a font string element of a frame by using a dot operator (similar to .texture). How would I do this for a font string? Additionally, would someone know where I could see all examples of this, that'd be amazing! :)

Thanks!

Torhal 08-19-16 06:02 PM

Code:

local statusText = myFrame:CreateFontString(nil, "ARTWORK")
myFrame.statusText = statusText


Sweetsour 08-19-16 06:04 PM

Oooh, I see! Thanks!


All times are GMT -6. The time now is 10:00 AM.

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