about summary refs log tree commit diff stats
path: root/Archipelago/settings_screen.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2024-07-14 08:34:21 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2024-07-14 08:34:21 -0400
commit9e763bede998c86d23240c09b63f1dae2ad832da (patch)
treed227f0dc3cd09c352a54915ee4bb14debd40a4dc /Archipelago/settings_screen.gd
parentc1d2dd7b52b9ebb219db92e96e8b11263761bac8 (diff)
downloadlingo-archipelago-9e763bede998c86d23240c09b63f1dae2ad832da.tar.gz
lingo-archipelago-9e763bede998c86d23240c09b63f1dae2ad832da.tar.bz2
lingo-archipelago-9e763bede998c86d23240c09b63f1dae2ad832da.zip
Clear out messages between connections
Diffstat (limited to 'Archipelago/settings_screen.gd')
-rw-r--r--Archipelago/settings_screen.gd8
1 files changed, 8 insertions, 0 deletions
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():
97 self.get_node("Panel/player_box").add_font_override("font", field_font) 97 self.get_node("Panel/player_box").add_font_override("font", field_font)
98 self.get_node("Panel/password_box").add_font_override("font", field_font) 98 self.get_node("Panel/password_box").add_font_override("font", field_font)
99 99
100 # Clear out messages (kind of a hack).
101 messages._message_queue.clear()
102
103 for message_label in messages._ordered_labels:
104 message_label.queue_free()
105
106 messages._ordered_labels.clear()
107
100 108
101# Adapted from https://gitlab.com/Delta-V-Modding/Mods/-/blob/main/game/ModLoader.gd 109# Adapted from https://gitlab.com/Delta-V-Modding/Mods/-/blob/main/game/ModLoader.gd
102func installScriptExtension(childScript: Resource): 110func installScriptExtension(childScript: Resource):