about summary refs log tree commit diff stats
path: root/Archipelago/settings_screen.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Archipelago/settings_screen.gd')
-rw-r--r--Archipelago/settings_screen.gd9
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
24func 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")