diff options
Diffstat (limited to 'Archipelago/settings_buttons.gd')
-rw-r--r-- | Archipelago/settings_buttons.gd | 5 |
1 files changed, 5 insertions, 0 deletions
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(): | |||
6 | 6 | ||
7 | 7 | ||
8 | func _connect_pressed(): | 8 | func _connect_pressed(): |
9 | self.disabled = true | ||
10 | |||
9 | var apclient = global.get_node("Archipelago") | 11 | var apclient = global.get_node("Archipelago") |
10 | apclient.ap_server = self.get_parent().get_node("server_box").text | 12 | apclient.ap_server = self.get_parent().get_node("server_box").text |
11 | apclient.ap_user = self.get_parent().get_node("player_box").text | 13 | apclient.ap_user = self.get_parent().get_node("player_box").text |
@@ -16,4 +18,7 @@ func _connect_pressed(): | |||
16 | 18 | ||
17 | 19 | ||
18 | func _back_pressed(): | 20 | func _back_pressed(): |
21 | var apclient = global.get_node("Archipelago") | ||
22 | apclient.disconnect_from_ap() | ||
23 | |||
19 | fader._fade_start("main_menu") | 24 | fader._fade_start("main_menu") |