WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Referencing objects (https://www.wowinterface.com/forums/showthread.php?t=54273)

TimothyLuke 08-23-16 05:59 PM

Referencing objects
 
Hi Everyone,

I asked this over in ACE land as im using ACEGUI but have not had a result so apologies for cross posting in advance. The original Post and the code is located https://forums.wowace.com/showthread.php?t=31389

What I am wondering is if I can reference objects via parent child relationship.

I have a logical structure for layout that looks like

frame, Layout container , tab container, textbox

can I reference this via something like

frame.layoutcontainer.tabcontainer.textbox:function()

The tab control expects that I "release objects" and recreate them each time I change tabs. What I want to be able to do is be able to use a function on a widget that is outside the tab container reference an object that I know will exist.

Seerah 08-23-16 07:25 PM

Of course. Frames are special tables. Just store the children in the table.


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

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