aboutsummaryrefslogtreecommitdiff
path: root/game/src/LobbyMenu/LobbyMenu.gd
diff options
context:
space:
mode:
author ClarkeCode <clarke.john.robert@gmail.com>2023-04-18 04:25:09 +0200
committer ClarkeCode <clarke.john.robert@gmail.com>2023-04-18 20:10:54 +0200
commit0ead900c96f1f40028d53b0e4b9c2d93312a6621 (patch)
tree9a49865bb6e6bc56c26a291de9c48d483225ac17 /game/src/LobbyMenu/LobbyMenu.gd
parent18151dc9829701a20d0bc12e83958ddfe9beb039 (diff)
Double-click a start date to automatically start a game session
Diffstat (limited to 'game/src/LobbyMenu/LobbyMenu.gd')
-rw-r--r--game/src/LobbyMenu/LobbyMenu.gd5
1 files changed, 5 insertions, 0 deletions
diff --git a/game/src/LobbyMenu/LobbyMenu.gd b/game/src/LobbyMenu/LobbyMenu.gd
index 802dac3..4fc06c9 100644
--- a/game/src/LobbyMenu/LobbyMenu.gd
+++ b/game/src/LobbyMenu/LobbyMenu.gd
@@ -34,3 +34,8 @@ func _on_game_select_list_item_selected(index):
func _on_save_game_selected(_index):
start_button.disabled = false
+
+# If the date is double-clicked, start the game!
+func _on_game_select_list_item_activated(index):
+ _on_game_select_list_item_selected(index)
+ _on_start_button_button_down()