aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameMenu.gd
diff options
context:
space:
mode:
author nuruvilu <75346368+nuruvilu@users.noreply.github.com>2023-02-27 13:10:17 +0100
committer GitHub <noreply@github.com>2023-02-27 13:10:17 +0100
commitbf2ce936c870f4c8d3aafba1b074eb643bcb536c (patch)
treec8541f84a3698dcb9102a9c0160e285fa9261c8c /game/src/GameMenu.gd
parente637c3afe2854488d1c2e755e0272f431105c404 (diff)
Add skeleton for Game Lobby Menu (#26)
Diffstat (limited to 'game/src/GameMenu.gd')
-rw-r--r--game/src/GameMenu.gd12
1 files changed, 12 insertions, 0 deletions
diff --git a/game/src/GameMenu.gd b/game/src/GameMenu.gd
index c6174bb..b899fc8 100644
--- a/game/src/GameMenu.gd
+++ b/game/src/GameMenu.gd
@@ -3,6 +3,12 @@ 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()
@@ -13,3 +19,9 @@ 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)