Skip to reading
Replace the Built-in Screens

Create the menu and options wrappers

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

Each row below is a separate ordinary GDScript record. Global Script is off. Use the template once per row, replacing the three arguments to CallScript with the values in the table.

Code example
extends "res://scripts/runtime/script_base.gd"
Code example
func run(_context: Dictionary = {}) -> Variant:
    await CallScript("options_tools", "open", ["pauseMenu"])
    return true
Source table from Create the menu and options wrappers, page 76
Record IDController / function / arguments
open_pause_optionsoptions_tools / open / ["pauseMenu"]
open_main_optionsoptions_tools / open / ["mainMenu"]
options_applyoptions_tools / apply / []
options_defaultsoptions_tools / defaults / []
options_backoptions_tools / back / []
open_main_loadmenu_tools / open / ["loadMenu", "mainMenu"]
open_pause_loadmenu_tools / open / ["loadMenu", "pauseMenu"]
open_pause_savemenu_tools / open / ["saveMenu", "pauseMenu"]
menu_backmenu_tools / back / []

The complete template shown is open_pause_options. Keep quotes around string IDs and square brackets around the arguments array.

Page 76 of 88Permalink
Go to page