Main menu host settings

This commit is contained in:
Rendo 2025-12-08 14:39:20 +05:00
commit 2705959bfd
4 changed files with 146 additions and 21 deletions

View file

@ -7,6 +7,9 @@ func _ready() -> void:
Lobby.lobby_created.connect(show_host_buttons)
Lobby.lobby_closed.connect(cleanup_lobby)
Lobby.update_teams_state.connect(on_player_switched_team)
$Lobby.hide()
$MainMenu.show()
func _on_leave_button_pressed() -> void:
Lobby.leave()
@ -25,9 +28,11 @@ func _on_start_button_pressed() -> void:
func hide_host_buttons() -> void:
%StartButton.hide()
%HostMenu.hide()
func show_host_buttons() -> void:
%StartButton.show()
%HostMenu.show()
func _on_host_button_pressed() -> void:
Lobby.host()