Skip to reading
Replace the Built-in Screens

Build the pause screen

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 23. The assigned Pause Menu replaces the built-in Game Menu.

Source table from Build the pause screen, page 34
ButtonRoute
ResumeSystem Resume
Save gameRun open_pause_save.
Load gameRun open_pause_load.
OptionsRun open_pause_options.
Main menuSystem Main Menu
QuitSystem Quit

Keep the HUD’s Menu Button and the player’s pause key on the pause-menu route. Opening pause_custom directly with Show GUI does not provide the same menu lifecycle as show_pause_menu().

Resume should close system interfaces and restore the previous HUD state. A plain Hide GUI Button is the wrong shortcut when it leaves the runtime thinking a system menu is still active.

Page 34 of 88Permalink
Go to page