Skip to reading
Panels, Tabs & List Boxes

25. Open, close and restyle the notebook

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

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.

Source table from 25. Open, close and restyle the notebook, page 43
ButtonAction list, in order
Open notebookShow GUI → case_notebook; Hide GUI → notebook_hud.
Close notebookHide GUI → case_notebook; Show GUI → notebook_hud.

The equivalent GDScript calls, inside a run function, are:

Code example
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:

Code example
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.

Page 43 of 50Permalink
Go to page