From b524e153ad71e368afbe50da78c4b73c3ac65c5f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 27 Sep 2025 11:10:07 -0400 Subject: Added accessible locations tab to game --- apworld/client/manager.gd | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'apworld/client/manager.gd') 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(): client.text_message_received.connect(_process_text_message) client.item_sent_notification.connect(_process_item_sent_notification) client.hint_received.connect(_process_hint_received) + client.accessible_locations_updated.connect(_on_accessible_locations_updated) + client.checked_locations_updated.connect(_on_checked_locations_updated) client.could_not_connect.connect(_client_could_not_connect) client.connect_status.connect(_client_connect_status) @@ -302,6 +304,18 @@ func _process_location_scout(location_id, item_name, player_name, flags, for_sel collectable.setScoutedText(item_name) +func _on_accessible_locations_updated(): + var textclient_node = global.get_node("Textclient") + if textclient_node != null: + textclient_node.update_locations() + + +func _on_checked_locations_updated(): + var textclient_node = global.get_node("Textclient") + if textclient_node != null: + textclient_node.update_locations() + + func _client_could_not_connect(message): could_not_connect.emit(message) -- cgit 1.4.1