Main menu host settings
This commit is contained in:
parent
004e47aba6
commit
2705959bfd
4 changed files with 146 additions and 21 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue