diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-27 11:10:07 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-27 11:10:07 -0400 |
commit | b524e153ad71e368afbe50da78c4b73c3ac65c5f (patch) | |
tree | 9eb7c03927c227e2459fa1ca970f306180126b34 /apworld/client/manager.gd | |
parent | cc6af26a8c0c01538f7220ba2e62ada136fff386 (diff) | |
download | lingo2-archipelago-b524e153ad71e368afbe50da78c4b73c3ac65c5f.tar.gz lingo2-archipelago-b524e153ad71e368afbe50da78c4b73c3ac65c5f.tar.bz2 lingo2-archipelago-b524e153ad71e368afbe50da78c4b73c3ac65c5f.zip |
Added accessible locations tab to game
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 | ||