diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-20 22:48:41 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-20 22:48:41 -0400 |
commit | 86a87b882be20825af21bd09225aaa35ca793777 (patch) | |
tree | e88b673021c26170b27c069995c29828f58d7648 /Archipelago/settings_buttons.gd | |
parent | a297dd6d094466214d746c84a66fe70a0bed97d5 (diff) | |
download | lingo-archipelago-86a87b882be20825af21bd09225aaa35ca793777.tar.gz lingo-archipelago-86a87b882be20825af21bd09225aaa35ca793777.tar.bz2 lingo-archipelago-86a87b882be20825af21bd09225aaa35ca793777.zip |
Disable connect button while connecting
Pressing back now also halts the connection.
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") |