Update to 4.4.1

This commit is contained in:
Ethan Weber 2025-07-12 12:32:02 -06:00
parent 4ae45deca1
commit ceb10e9a06
160 changed files with 491 additions and 71 deletions

View file

@ -15,6 +15,19 @@ func _ready():
show_ui()
func _input(event: InputEvent) -> void:
if event.is_action_pressed("quit_game"):
if $MainMenu.visible:
# If main menu is visible, quit the game
get_tree().quit()
elif $InGameUI.visible:
# If in-game UI is visible, return to main menu
# Disconnect from server/client first
if Connection.is_peer_connected:
multiplayer.multiplayer_peer.close()
show_ui()
func start_server_emit() -> void:
start_server.emit()
$MainMenu.visible = false
@ -25,6 +38,10 @@ func connect_client_emit() -> void:
hide_ui()
func exit_game_emit() -> void:
get_tree().quit()
func hide_ui() -> void:
$MainMenu.visible = false
$InGameUI.visible = true