Thread: List members of a control
-
February 27th, 2023, 14:35 #1
- Join Date
- Aug 2020
- Posts
- 94
List members of a control
Hi,
again a simple question: how do I list members of a GUI control? And how do I access its parent?
For DB nodes that would be:
Code:--print children of database node: for _,nodeChild in pairs(getDatabaseNode().getChildren()) do Debug.chat(nodeChild.getNodeName()) end -- get parrent node node.getChild("..");
e.g. <windowclass name="power_item_header" ruleset="5E"> has usepower, actionsmini, etc. as members
-
February 27th, 2023, 14:58 #2
<Windowinstance>.getControls: https://fantasygroundsunity.atlassia...ce#getControls
See the various script scope variables you can use here: https://fantasygroundsunity.atlassia...pt-Block-Scope
If there's anything specific to a control/object then it will be detailed in the API guide: https://fantasygroundsunity.atlassia...+API+ReferencePrivate Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!
-
February 27th, 2023, 20:44 #3
- Join Date
- Aug 2020
- Posts
- 94
Thank you!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks