Skip to reading
Replace the Built-in Screens

Open the real pause-menu 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

Record ID: open_pause. Global Script: off. Put it on the HUD’s Menu Button.

Code example
extends "res://scripts/runtime/script_base.gd"
Code example
func run(_context: Dictionary = {}) -> Variant:
    Runtime.call("show_pause_menu")
    return true

The runtime chooses the assigned Pause Menu, so the Button continues to work if you replace pause_custom later. A direct Show GUI action would name a particular layout instead.

Source table from Open the real pause-menu route, page 69
Other ordinary operationsUse the GUI behavior
Resume gameplaySystem Resume
Start the configured new gameSystem New Game
Restore the newest saved positionSystem Continue Game
Open the title menuSystem Main Menu
Exit the exported gameSystem Quit

Keep this wrapper small. Inventory and journal openers already have their own Toggle Inventory / Toggle Journal behaviors.

Page 69 of 88Permalink
Go to page