aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameMenu.gd
blob: b899fc805e50465693ffa550639417cce027300e (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
extends Control

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()


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)