Pro
This commit is contained in:
parent
c062499bf0
commit
bf3de3775b
2 changed files with 2 additions and 3 deletions
|
@ -13,7 +13,7 @@ func _ready():
|
|||
Global.client.signaller.request_lobby_list()
|
||||
|
||||
func _draw():
|
||||
$join.disabled = len($lobbies.get_selected_items()) < 1
|
||||
$join.disabled = len($lobbies.get_selected_items()) <= 1
|
||||
|
||||
func _signaller_disconnected():
|
||||
Global.main_menu()
|
||||
|
@ -50,6 +50,5 @@ func _lobby_delete(id):
|
|||
$lobbies.remove_item(i)
|
||||
return
|
||||
|
||||
|
||||
func _on_lobbies_item_activated(index):
|
||||
_on_join_pressed()
|
||||
|
|
|
@ -57,7 +57,7 @@ func _connected(protocol = ""):
|
|||
|
||||
func _process(_delta: float):
|
||||
var status: int = ws.get_connection_status()
|
||||
if status == WebSocketClient.CONNECTION_CONNECTING or status == WebSocketClient.CONNECTION_CONNECTED:
|
||||
if status == WebSocketClient.CONNECTION_CONNECTED:
|
||||
ws.poll()
|
||||
|
||||
func join_lobby(id: String):
|
||||
|
|
Loading…
Reference in a new issue