diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-13 14:58:24 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-13 14:58:24 -0400 |
commit | 679bba3b46ea30a329c617b3cc47645d540a261f (patch) | |
tree | 9a5912f3443ef9dd6e48d2d2088135f29592cd67 /Archipelago/settings_screen.gd | |
parent | b6b24b10c6fb056bfa297c6f3a6f29a9991f9fa1 (diff) | |
download | lingo-archipelago-679bba3b46ea30a329c617b3cc47645d540a261f.tar.gz lingo-archipelago-679bba3b46ea30a329c617b3cc47645d540a261f.tar.bz2 lingo-archipelago-679bba3b46ea30a329c617b3cc47645d540a261f.zip |
Client switches to LL1 after a successful connection
Diffstat (limited to 'Archipelago/settings_screen.gd')
-rw-r--r-- | Archipelago/settings_screen.gd | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Archipelago/settings_screen.gd b/Archipelago/settings_screen.gd index 3740751..0854a8b 100644 --- a/Archipelago/settings_screen.gd +++ b/Archipelago/settings_screen.gd | |||
@@ -13,7 +13,16 @@ func _ready(): | |||
13 | apclient_instance.name = "Archipelago" | 13 | apclient_instance.name = "Archipelago" |
14 | global.add_child(apclient_instance) | 14 | global.add_child(apclient_instance) |
15 | 15 | ||
16 | global.get_node("Archipelago").connect("client_connected", self, "connectionSuccessful") | ||
17 | |||
16 | # Populate textboxes with AP settings. | 18 | # Populate textboxes with AP settings. |
17 | self.get_node("Panel/server_box").text = global.get_node("Archipelago").ap_server | 19 | self.get_node("Panel/server_box").text = global.get_node("Archipelago").ap_server |
18 | self.get_node("Panel/player_box").text = global.get_node("Archipelago").ap_user | 20 | self.get_node("Panel/player_box").text = global.get_node("Archipelago").ap_user |
19 | self.get_node("Panel/password_box").text = global.get_node("Archipelago").ap_pass | 21 | self.get_node("Panel/password_box").text = global.get_node("Archipelago").ap_pass |
22 | |||
23 | |||
24 | func connectionSuccessful(): | ||
25 | # Switch to LL1 | ||
26 | Input.set_mouse_mode(Input.MOUSE_MODE_CAPTURED) | ||
27 | global.map = "level1" | ||
28 | var _discard = get_tree().change_scene("res://scenes/load_screen.tscn") | ||