aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/Menu/LobbyMenu/LobbyMenu.gd
diff options
context:
space:
mode:
author hop311 <hop3114@gmail.com>2024-06-13 00:34:06 +0200
committer hop311 <hop3114@gmail.com>2024-06-13 21:26:35 +0200
commitdb246d901d1ccd39b0ed3fc024f28ad7b6b4848b (patch)
tree0c06560ddae94550077c997f8b7e14f69057f236 /game/src/Game/Menu/LobbyMenu/LobbyMenu.gd
parent72ae774f249fb408d5a3e3de09695c251906a7cc (diff)
Updated SIM to use separate Instance and Definition Managersinstance-definition-managers
Diffstat (limited to 'game/src/Game/Menu/LobbyMenu/LobbyMenu.gd')
-rw-r--r--game/src/Game/Menu/LobbyMenu/LobbyMenu.gd6
1 files changed, 6 insertions, 0 deletions
diff --git a/game/src/Game/Menu/LobbyMenu/LobbyMenu.gd b/game/src/Game/Menu/LobbyMenu/LobbyMenu.gd
index f747727..ca6b3fb 100644
--- a/game/src/Game/Menu/LobbyMenu/LobbyMenu.gd
+++ b/game/src/Game/Menu/LobbyMenu/LobbyMenu.gd
@@ -116,6 +116,12 @@ func _on_session_tag_edit_text_submitted(new_text : String) -> void:
_on_start_button_pressed()
func _on_session_tag_dialog_confirmed() -> void:
+ # TODO - get bookmarks from SIM and generated corresponding buttons,
+ # then use the selected button's bookmark instead of always using 0
+
+ # Game has to be setup (bookmark loaded) before opening the GameSession scene
+ if GameSingleton.setup_game(0) != OK:
+ push_error("Failed to setup game")
get_tree().change_scene_to_file("res://src/Game/GameSession/GameSession.tscn")
var _requested_node_to_delete : Control