DICE PACKS BUNDLE
  1. #1

    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("..");
    But how to do the same for control?
    e.g. <windowclass name="power_item_header" ruleset="5E"> has usepower, actionsmini, etc. as members

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,291
    <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+Reference
    Private 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!

  3. #3

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
STAR TREK 2d20

Log in

Log in