From acb63625f904da7faee23d5b8fcc4ac96fd41f00 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 13 Apr 2023 22:15:12 -0400 Subject: The answer to the YOU puzzle is the AP slot name --- Archipelago/load.gd | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Archipelago/load.gd b/Archipelago/load.gd index cb592ff..6d6fcf0 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd @@ -6,7 +6,17 @@ func _load(): var apclient = global.get_node("Archipelago") - # TODO: Override the YOU panel with the AP slot name + # Override the YOU panel with the AP slot name. + if self.get_node_or_null("Panels/Color Arrow Room/Panel_you") != null: + self.get_node("Panels/Color Arrow Room/Panel_you").answer = apclient.ap_user + for node in get_tree().get_nodes_in_group("text_you"): + if "text" in node: + node.text = apclient.ap_user + elif "value" in node: + node.value = apclient.ap_user + for node in get_tree().get_nodes_in_group("answer_you"): + if "answer" in node: + node.answer = apclient.ap_user # This is the best time to create the location nodes, since the map is now # loaded but the panels haven't been solved from the save file yet. -- cgit 1.4.1