From 9e763bede998c86d23240c09b63f1dae2ad832da Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 14 Jul 2024 08:34:21 -0400 Subject: Clear out messages between connections --- Archipelago/settings_screen.gd | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Archipelago/settings_screen.gd b/Archipelago/settings_screen.gd index 43c9468..6c64b15 100644 --- a/Archipelago/settings_screen.gd +++ b/Archipelago/settings_screen.gd @@ -97,6 +97,14 @@ func _ready(): self.get_node("Panel/player_box").add_font_override("font", field_font) self.get_node("Panel/password_box").add_font_override("font", field_font) + # Clear out messages (kind of a hack). + messages._message_queue.clear() + + for message_label in messages._ordered_labels: + message_label.queue_free() + + messages._ordered_labels.clear() + # Adapted from https://gitlab.com/Delta-V-Modding/Mods/-/blob/main/game/ModLoader.gd func installScriptExtension(childScript: Resource): -- cgit 1.4.1