Thread Tools Display Modes
08-19-16, 04:35 PM   #1
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
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!
  Reply With Quote
08-19-16, 06:02 PM   #2
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,196
Code:
local statusText = myFrame:CreateFontString(nil, "ARTWORK")
myFrame.statusText = statusText
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote
08-19-16, 06:04 PM   #3
Sweetsour
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Dec 2014
Posts: 130
Oooh, I see! Thanks!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Accessing frame child elements


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