main_menu.gd
Extends: CanvasLayer
Description
The MDNA main menu
Constants Descriptions
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
main_menu_is_displayed
func main_menu_is_displayed()
Returns true if the main menu is shown and no pop-ups are shown
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