Skip to reading
Replace the Built-in Screens

Understand Buttons, action lists and scripts

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 illustrations

Figure 5. A Resume Button uses System Resume, which closes the system menu and restores gameplay.

Source table from Understand Buttons, action lists and scripts, page 10
Use this event choiceWhen
Set VerbThe Button selects Walk, Look, Use or another authored verb.
Toggle Inventory / Toggle JournalIt should open whichever personal screen belongs to the active player.
System Resume / New Game / Continue GameIt should perform that real menu operation.
An action listSeveral shared actions should run in order.
Run Script / Run Visual ScriptThe operation needs a reusable helper, condition or custom data handling.

The shared Run Script/Run Visual Script event can run a GDScript record as well as a visual graph. Chapter 10 supplies complete helpers and shows exactly which Buttons call them.

GUI Preview checks layout and hover/press feedback. Play checks actions, ownership, dialogue, saving and actual menu routes.

Page 10 of 88Permalink
Go to page