Skip to reading
Replace the Built-in Screens

Give every submenu an honest Back route

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
Source table from Give every submenu an honest Back route, page 35
Opened fromDestinationBack should return to
Main MenuLoad / OptionsMain Menu
Pause MenuSave / Load / OptionsPause Menu
Credits opened from Main MenuCreditsMain Menu
GameplayInventory / JournalGameplay, through that surface’s close/toggle command.

The custom menu system is not a web browser with an automatic history stack. Chapter 10’s menu_tools remembers the intended parent for Save and Load. options_tools does the same for Options.

1. Call open_main_load from the title menu, not the pause-load wrapper.

2. Use menu_back on the Save/Load Back Buttons.

3. Use options_back on the Options Back Button.

4. Open each submenu from both entry points and test Back before adding decorative animation.

5. Test the pause key too. Decide whether that shortcut closes the current system screen directly or should follow your explicit Back route.

If a shortcut bypasses the wrapper, the helper cannot infer an arbitrary navigation history. Route important entry Buttons through the supplied wrappers and test other entry routes deliberately.

Page 35 of 88Permalink
Go to page