1. #1
    deer_buster's Avatar
    Join Date
    Jan 2006
    Location
    Kansas City Metro
    Posts
    217

    Question [LUA] - Enable/disable field on charsheet via LUA

    Is there an example available for enabling/disabling a field on a charsheet (such as when changing a setting)?

    I have (currently) two optional fields that would be enabled or disabled via settings. I have checks in char.lua that are aware of the changes in the settings, but I do not know if it is even possible to enable/disable a field on the charsheet currently.

    I had looked into setting them into a frame or panel but I don't see options set those visible or not.
    aka Laendra

    Discord: Laendra#9660
    Ultimate license (FGC/FGU)
    Current Timezone : Central (CDT) (GMT -5)
    Playtime: Prefer 8pm Central, or later
    Playing: Looking For Group (5e purchased/homebrew)
    DCI: 3317036507
    Organized Play: 2369539

  2. #2

    Join Date
    Jun 2013
    Location
    Isanti, MN
    Posts
    2,804
    Any object that inherits (directly or indirectly) from widget gets "setVisible":
    http://www.fantasygrounds.com/refdoc/widget.xcp

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Denver, Colorado, USA (for a bit)
    Posts
    23,621

    FG Con 15 Fantasy Grounds Online RPG Convention - Nov. 8-10, 2019
    Register at www.fg-con.com for all the latest info.

    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!

  4. #4
    deer_buster's Avatar
    Join Date
    Jan 2006
    Location
    Kansas City Metro
    Posts
    217
    Perfect! Thanks so much. never occurred to me that was the case.
    aka Laendra

    Discord: Laendra#9660
    Ultimate license (FGC/FGU)
    Current Timezone : Central (CDT) (GMT -5)
    Playtime: Prefer 8pm Central, or later
    Playing: Looking For Group (5e purchased/homebrew)
    DCI: 3317036507
    Organized Play: 2369539

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in