This commit is contained in:
Daniel Flanagan 2021-12-03 16:05:22 -06:00
parent c062499bf0
commit bf3de3775b
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4
2 changed files with 2 additions and 3 deletions

View file

@ -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()

View file

@ -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):