DICE PACKS BUNDLE
  1. #1

    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.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    Are you enabling it via the button entries at the top of the Library window? Or are you enabling it via code?
    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
    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

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,362
    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.
    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
    Colorado, USA
    Posts
    33,362
    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.
    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
    Oh!
    I hadn't actually closed, just /reload
    Thanks Trenloe

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
  •  
FG Spreadshirt Swag

Log in

Log in