From 86a87b882be20825af21bd09225aaa35ca793777 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 20 Apr 2023 22:48:41 -0400 Subject: Disable connect button while connecting Pressing back now also halts the connection. --- Archipelago/settings_buttons.gd | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Archipelago/settings_buttons.gd') diff --git a/Archipelago/settings_buttons.gd b/Archipelago/settings_buttons.gd index 735f944..0050504 100644 --- a/Archipelago/settings_buttons.gd +++ b/Archipelago/settings_buttons.gd @@ -6,6 +6,8 @@ func _ready(): func _connect_pressed(): + self.disabled = true + var apclient = global.get_node("Archipelago") apclient.ap_server = self.get_parent().get_node("server_box").text apclient.ap_user = self.get_parent().get_node("player_box").text @@ -16,4 +18,7 @@ func _connect_pressed(): func _back_pressed(): + var apclient = global.get_node("Archipelago") + apclient.disconnect_from_ap() + fader._fade_start("main_menu") -- cgit 1.4.1