about summary refs log tree commit diff stats
path: root/Archipelago/client.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-29 15:30:00 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-29 15:30:00 -0400
commit357e2f63581f606a032ce8886bc7137a50963aa1 (patch)
treef9f927e826ebc67c8cb2305a64c0c9f284a37698 /Archipelago/client.gd
parentb393c9d6772c13177fd575cda8c76d96afc178d2 (diff)
downloadlingo-archipelago-357e2f63581f606a032ce8886bc7137a50963aa1.tar.gz
lingo-archipelago-357e2f63581f606a032ce8886bc7137a50963aa1.tar.bz2
lingo-archipelago-357e2f63581f606a032ce8886bc7137a50963aa1.zip
Provide status updates on the connection process
Diffstat (limited to 'Archipelago/client.gd')
-rw-r--r--Archipelago/client.gd7
1 files changed, 7 insertions, 0 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index e182b9c..f33c80c 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -91,6 +91,7 @@ var _progressive_progress = {}
91var _has_colors = ["white"] 91var _has_colors = ["white"]
92 92
93signal could_not_connect 93signal could_not_connect
94signal connect_status
94signal client_connected 95signal client_connected
95signal evaluate_solvability 96signal evaluate_solvability
96 97
@@ -459,6 +460,8 @@ func connectToServer():
459 return 460 return
460 _should_process = true 461 _should_process = true
461 462
463 emit_signal("connect_status", "Connecting...")
464
462 465
463func sendMessage(msg): 466func sendMessage(msg):
464 var payload = JSON.print(msg) 467 var payload = JSON.print(msg)
@@ -467,6 +470,8 @@ func sendMessage(msg):
467 470
468 471
469func requestDatapackages(games): 472func requestDatapackages(games):
473 emit_signal("connect_status", "Downloading %s data package..." % games[0])
474
470 sendMessage([{"cmd": "GetDataPackage", "games": games}]) 475 sendMessage([{"cmd": "GetDataPackage", "games": games}])
471 476
472 477
@@ -486,6 +491,8 @@ func processDatapackages():
486 491
487 492
488func connectToRoom(): 493func connectToRoom():
494 emit_signal("connect_status", "Authenticating...")
495
489 sendMessage( 496 sendMessage(
490 [ 497 [
491 { 498 {