Skip to content

Main Menu ​

The main menu is the first screen the player sees after the splash. It has the buttons of a start screen and three sub-menus: Load, Settings and Credits.

Set inUI Settings > Ui scene main menu
Root classMainMenu (a CurrentUI)
Templateui_scenes/menus/main/main_menu_template.tscn

The buttons ​

The script finds each button by unique name, so keep the names and place them as you like.

Unique nameWhat it does
PlayButtonA new game. With Use character creation UI on in the Gameplay Config, the player goes to the character creation screen. With it off, the game starts at once with the starting party
ContinueButtonLoads the autosave, or else the most recent manual save
LoadButtonOpens the Load sub-menu
SettingsButtonOpens the Settings sub-menu
CreditsButtonPlays the credits
ExitButtonQuits

When the player has no saves, Continue and Load are hidden. The other unique names the script needs are MenuOptions (the container of the buttons), Title (the game's title), SettingsMenuUI, Credits and LoadGameMenu. Escape closes whichever sub-menu is open.

Load ​

The load sub-menu (SaveLoadMenu) lists the save files, the autosave first, and loads the one the player picks. The same scene is used in the pause menu in game, where it also has a Save button (hidden in the main menu). Each entry is a button scene (SaveFileButton) you can restyle.

Settings ​

The settings menu (SettingsMenuUI) is built at run time from the Game Settings: one tab for each category, one row for each setting the developer made player accessible. A checkbox, a list, a slider, a colour picker or a key rebinding button is made for each, from the scenes you give it (set on the root node):

Option on the nodeThe row it makes
checkbox_sceneA yes/no setting
option_button_sceneA choice from a list
drag_bar_sceneA number on a slider
color_picker_sceneA colour
hotkey_rebind_button_sceneA key the player may change
section_label_scene, button_sub_menu_sceneThe section headings and the tab buttons

So a new setting never needs a change to this scene: add it to the Game Settings and make it player accessible, and it appears. Restyle the row scenes to change the look of all of them at once.

Credits ​

Credits plays an animation (creditsroll) and returns to the menu when it ends. Edit the text and the animation in the scene.

Your own main menu ​

Build a scene whose root has a script that extends MainMenu (to keep the template's behaviour) or extends CurrentUI (to write it all yourself). A CurrentUI gives you the signals the game listens to:

SignalThe game then
new_game_requested(custom_character_def)Starts a new game (give it null for the starting party)
character_creation_requested()Opens the character creation screen
load_game_requested(save_file_name)Loads a save
return_to_main_menu_requested()Goes back to the main menu

and the tooltip and message requests every interface part has (see Tooltips). Set the scene in UI Settings.

See also ​