Skip to reading
Panels, Tabs & List Boxes

26. Preview, saving and restoring state

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
Source table from 26. Preview, saving and restoring state, page 44
TaskUse this
Move and resize controlsDesigner editing, Preview off.
Try local list selection, scrolling or a dropdownDesigner Preview on.
Test a selected-ID variable or Review ButtonRunning game preview.
Check actual carried inventoryRunning game with the intended player and item awards.
Keep GUI geometry and authored rowsApply where required, then Save Project.
Keep a player’s changing journalStore its source data in game state and test save/load.

Designer Preview can let you select rows locally, but it does not write into the real game’s variables or run the Review Button’s gameplay event. A response that stays unchanged there is not evidence that the script failed.

Runtime list actions do not rewrite the project’s authored Manual Items table. Saving the project in the editor is different from saving a player’s game.

For a journal that must survive save/load, prefer a source Array or story variables as the record of discoveries. Rebuild any deliberately local view from that saved data when appropriate. Do not rely on a widget’s temporary source copy, selected highlight or current tab being a complete save-game record.

Test a real save/load sequence: discover a clue, choose an item, close the notebook, save, change state, load, then reopen it. Check both the underlying data and what the player sees. A restored selected-ID variable alone need not restore the widget highlight.

Start each basic test with empty selection variables. Add deliberate selection-restoration logic only after the list’s ordinary behavior is working.

Page 44 of 50Permalink
Go to page