FG Spreadshirt Swag
  1. #1
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    605

    Sidebar button memory

    I have successfully added a new sidebar button, but it doesn't stay enabled when I reload FG. What am I missing?

    Thanks
    Last edited by bmos; August 12th, 2020 at 14:23.
    bmos' pathfinder 1e extensions
    Discord Tag: wil.thieme#3396

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    27,294
    Are you enabling it via the button entries at the top of the Library window? Or are you enabling it via code?
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    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!

  3. #3
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    605
    Quote Originally Posted by Trenloe View Post
    Are you enabling it via the button entries at the top of the Library window? Or are you enabling it via code?
    Sorry, I should have specified. I'm checking the visibility box for it in the Library window. When I quit and re-load, it is unchecked again (I assume the original set of them is being loaded before my new option is added to the array).

    Here's the code that I'm using to add it:
    https://github.com/bmos/FG-PFRPG-Dis...se_tracker.lua
    bmos' pathfinder 1e extensions
    Discord Tag: wil.thieme#3396

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    27,294
    FGC or FGU?

    Do other standard buttons save their state after you exit FG and re-start the campaign?

    EDIT: Note that /reload won't save these settings, you need to exit the campaign.
    Last edited by Trenloe; August 12th, 2020 at 17:08.
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    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!

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Newcastle, UK (for a bit)
    Posts
    27,294
    I can't see anything obviously wrong with your code.

    The ["sidebar"] buttons are stored in the campaign CampaignRegistry.lua file. Check to see if that is being written OK when you exit.
    FG Con 16 Fantasy Grounds Online RPG Convention - Postponed New date To Be Confirmed.
    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!

  6. #6
    bmos's Avatar
    Join Date
    Jun 2019
    Location
    Maine, USA
    Posts
    605
    Oh!
    I hadn't actually closed, just /reload
    Thanks Trenloe
    bmos' pathfinder 1e extensions
    Discord Tag: wil.thieme#3396

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
  •  
DMsGuild

Log in

Log in