main_menu.gd
Extends: CanvasLayer
Description
The MDNA main menu
Constants Descriptions
AUDIO_MIN
const AUDIO_MIN: float = -60
Lowest Audio level
MINIMUM_SAMPLE_TIME
const MINIMUM_SAMPLE_TIME: float = 2
Minimum number of seconds a speech or background sample should be played
Property Descriptions
resumeable
var resumeable: bool = true
Wether the main menu can be hidden
saveable
var saveable: bool = true
Wether the a game can be saved
disabled
var disabled: bool = false
Wether the menu can be displayed at all
Method Descriptions
configure
func configure(configuration: GameConfiguration)
Configure the menu
** Parameters **
configuration: The game configuration resource
toggle
func toggle()
Toggle the display of the menu and play the menu music
Signals
signal new_game(): Emitted when the user wants to start a new game
signal quit_game(): Emitted when the user wants to quit the game