Skip to reading
Replace the Built-in Screens

Wire the main-menu Buttons

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 22. System New Game starts the configured project startup sequence rather than merely hiding the title screen.

Source table from Wire the main-menu Buttons, page 33
ButtonClick behavior / helper
New gameSystem New Game
ContinueSystem Continue Game; disabled if no save exists.
Load gameRun open_main_load, which remembers that Back should return to Main Menu.
OptionsRun open_main_options.
CreditsShow GUI → credits_custom; its Back Button uses System Main Menu.
QuitSystem Quit; test it in the standalone game.

The sample Continue Button has ID main_custom_button_1. menu_tools updates its enabled state when the main menu opens. Change that ID in the helper if you rename the Button.

Continue uses the newest available saved position, which can include an autosave. Load lets the player choose a specific position.

Page 33 of 88Permalink
Go to page