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