aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameMenu.gd
blob: 8430c23243200dcc45b2f0a0836181901db65be4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
extends Control

# REQUIREMENTS
# * SS-10
func _ready():
   Events.Options.load_settings_from_file()

func _on_main_menu_new_game_button_pressed():
   $LobbyMenu.show()
   $MainMenu.hide()

# REQUIREMENTS
# * SS-6
# * UIFUN-5
func _on_main_menu_options_button_pressed():
   $OptionsMenu.show()
   $MainMenu.hide()


func _on_options_menu_back_button_pressed():
   $MainMenu.show()
   $OptionsMenu.hide()


func _on_lobby_menu_back_button_pressed():
   $MainMenu.show()
   $LobbyMenu.hide()


func _on_credits_back_button_pressed():
   $Credits.hide()
   $MainMenu.show()


func _on_main_menu_credits_button_pressed():
   $Credits.show()
   $MainMenu.hide()