aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameMenu.gd
blob: 3a4c88f9fd21423b7b104274490d2424be167dfe (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
38
39
40
41
extends Control

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

func _on_main_menu_new_game_button_pressed():
   $OptionsMenu.toggle_locale_button_visibility(false)
   $LobbyMenu.show()
   $MainMenu.hide()

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


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


func _on_lobby_menu_back_button_pressed():
   $MainMenu.show()
   $LobbyMenu.hide()
   $OptionsMenu.toggle_locale_button_visibility(true)


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


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