aboutsummaryrefslogtreecommitdiff
path: root/game/src/LobbyMenu/LobbyMenu.gd
diff options
context:
space:
mode:
Diffstat (limited to 'game/src/LobbyMenu/LobbyMenu.gd')
-rw-r--r--game/src/LobbyMenu/LobbyMenu.gd35
1 files changed, 35 insertions, 0 deletions
diff --git a/game/src/LobbyMenu/LobbyMenu.gd b/game/src/LobbyMenu/LobbyMenu.gd
new file mode 100644
index 0000000..bf20ce0
--- /dev/null
+++ b/game/src/LobbyMenu/LobbyMenu.gd
@@ -0,0 +1,35 @@
+extends Control
+
+# REQUIREMENTS:
+# * 1.4 Game Lobby Menu
+# * SS-12
+
+signal back_button_pressed
+signal save_game_selected
+
+@export
+var start_button : BaseButton
+
+# REQUIREMENTS:
+# * UIFUN-40
+func _on_back_button_button_down():
+ print("Returning to Main Menu.")
+ back_button_pressed.emit()
+
+
+# REQUIREMENTS:
+# * UIFUN-65
+func _on_start_button_button_down():
+ print("Starting new game.")
+ get_tree().change_scene_to_file("res://src/SampleGame.tscn")
+
+
+# REQUIREMENTS:
+# * UIFUN-61
+func _on_game_select_list_item_selected(index):
+ print("Selected save game: ", index)
+ save_game_selected.emit(index)
+
+
+func _on_save_game_selected(_index):
+ start_button.disabled = false