25. Open, close and restyle the notebook
Open the host GUI from a normal Button or gameplay action. If a small HUD contains the Open notebook Button, hide that HUD while the notebook is open so the controls do not overlap.
| Button | Action list, in order |
|---|---|
| Open notebook | Show GUI → case_notebook; Hide GUI → notebook_hud. |
| Close notebook | Hide GUI → case_notebook; Show GUI → notebook_hud. |
The equivalent GDScript calls, inside a run function, are:
await ShowGUI({"guiId": "case_notebook"})
await HideGUI({"guiId": "notebook_hud"})Use Change GUI Element Property when story logic needs to alter an ordinary panel’s appearance. This example changes the background of the plain Summary Panel on Notes Page:
await ChangeGUIElementProperty({
"guiId": "notes_page",
"elementId": "summary_panel",
"property": "background",
"value": "#234b5b"
})The same action is available in an action list or visual graph. Target the GUI that owns the element, then the element itself. Test the change in a running game; the GUI designer’s local Preview does not execute these story actions.
Use the ordinary Summary Panel for this example. Avoid rebuilding notebook_tabs while it owns linked page content.
