diff options
Diffstat (limited to 'apworld/client/manager.gd')
-rw-r--r-- | apworld/client/manager.gd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apworld/client/manager.gd b/apworld/client/manager.gd index 955d470..7f4a8a6 100644 --- a/apworld/client/manager.gd +++ b/apworld/client/manager.gd | |||
@@ -99,6 +99,8 @@ func _ready(): | |||
99 | client.text_message_received.connect(_process_text_message) | 99 | client.text_message_received.connect(_process_text_message) |
100 | client.item_sent_notification.connect(_process_item_sent_notification) | 100 | client.item_sent_notification.connect(_process_item_sent_notification) |
101 | client.hint_received.connect(_process_hint_received) | 101 | client.hint_received.connect(_process_hint_received) |
102 | client.accessible_locations_updated.connect(_on_accessible_locations_updated) | ||
103 | client.checked_locations_updated.connect(_on_checked_locations_updated) | ||
102 | 104 | ||
103 | client.could_not_connect.connect(_client_could_not_connect) | 105 | client.could_not_connect.connect(_client_could_not_connect) |
104 | client.connect_status.connect(_client_connect_status) | 106 | client.connect_status.connect(_client_connect_status) |
@@ -302,6 +304,18 @@ func _process_location_scout(location_id, item_name, player_name, flags, for_sel | |||
302 | collectable.setScoutedText(item_name) | 304 | collectable.setScoutedText(item_name) |
303 | 305 | ||
304 | 306 | ||
307 | func _on_accessible_locations_updated(): | ||
308 | var textclient_node = global.get_node("Textclient") | ||
309 | if textclient_node != null: | ||
310 | textclient_node.update_locations() | ||
311 | |||
312 | |||
313 | func _on_checked_locations_updated(): | ||
314 | var textclient_node = global.get_node("Textclient") | ||
315 | if textclient_node != null: | ||
316 | textclient_node.update_locations() | ||
317 | |||
318 | |||
305 | func _client_could_not_connect(message): | 319 | func _client_could_not_connect(message): |
306 | could_not_connect.emit(message) | 320 | could_not_connect.emit(message) |
307 | 321 | ||