about summary refs log tree commit diff stats
path: root/Archipelago/settings_buttons.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-20 22:48:41 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-20 22:48:41 -0400
commit86a87b882be20825af21bd09225aaa35ca793777 (patch)
treee88b673021c26170b27c069995c29828f58d7648 /Archipelago/settings_buttons.gd
parenta297dd6d094466214d746c84a66fe70a0bed97d5 (diff)
downloadlingo-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.gd5
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
8func _connect_pressed(): 8func _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
18func _back_pressed(): 20func _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")