Wintermute
May 11th, 2018, 06:10
In the Curse of Strahd theme, Damned re-did the sidebar with custom icons and changed the wording on a couple of them. Ie. PC to Heros by setting the library_recordtype_label_charsheet string.
Let's take it a step further and add an option to choose the wording of the button (PC, Heros, BadGuys, Players, etc). I've gotten the options added to the menu, the event handlers in place, and verified that the label has been updated in the database when changed. When you open FG, it gets the current value and updates the button accordingly.
The problem I am having is when you change the option, the sidebar charsheet text will not change without doing a /reload. Is there a function I need to call to force the sidebar to update? Is it possible or am I stuck with a /reload?
Thanks
Let's take it a step further and add an option to choose the wording of the button (PC, Heros, BadGuys, Players, etc). I've gotten the options added to the menu, the event handlers in place, and verified that the label has been updated in the database when changed. When you open FG, it gets the current value and updates the button accordingly.
The problem I am having is when you change the option, the sidebar charsheet text will not change without doing a /reload. Is there a function I need to call to force the sidebar to update? Is it possible or am I stuck with a /reload?
Thanks