diff options
Diffstat (limited to 'apworld/client/main.gd')
| -rw-r--r-- | apworld/client/main.gd | 16 |
1 files changed, 8 insertions, 8 deletions
| diff --git a/apworld/client/main.gd b/apworld/client/main.gd index cff92bc..9d66358 100644 --- a/apworld/client/main.gd +++ b/apworld/client/main.gd | |||
| @@ -30,8 +30,8 @@ func _ready(): | |||
| 30 | ap_instance.SCRIPT_keyboard = runtime.load_script("keyboard.gd") | 30 | ap_instance.SCRIPT_keyboard = runtime.load_script("keyboard.gd") |
| 31 | ap_instance.SCRIPT_locationListener = runtime.load_script("locationListener.gd") | 31 | ap_instance.SCRIPT_locationListener = runtime.load_script("locationListener.gd") |
| 32 | ap_instance.SCRIPT_minimap = runtime.load_script("minimap.gd") | 32 | ap_instance.SCRIPT_minimap = runtime.load_script("minimap.gd") |
| 33 | ap_instance.SCRIPT_uuid = runtime.load_script("vendor/uuid.gd") | ||
| 34 | ap_instance.SCRIPT_victoryListener = runtime.load_script("victoryListener.gd") | 33 | ap_instance.SCRIPT_victoryListener = runtime.load_script("victoryListener.gd") |
| 34 | ap_instance.SCRIPT_websocketserver = runtime.load_script("vendor/WebSocketServer.gd") | ||
| 35 | 35 | ||
| 36 | global.add_child(ap_instance) | 36 | global.add_child(ap_instance) |
| 37 | 37 | ||
| @@ -79,9 +79,9 @@ func _ready(): | |||
| 79 | 79 | ||
| 80 | var ap = global.get_node("Archipelago") | 80 | var ap = global.get_node("Archipelago") |
| 81 | var gamedata = global.get_node("Gamedata") | 81 | var gamedata = global.get_node("Gamedata") |
| 82 | ap.connect("ap_connected", connectionSuccessful) | 82 | ap.ap_connected.connect(connectionSuccessful) |
| 83 | ap.connect("could_not_connect", connectionUnsuccessful) | 83 | ap.could_not_connect.connect(connectionUnsuccessful) |
| 84 | ap.connect("connect_status", connectionStatus) | 84 | ap.connect_status.connect(connectionStatus) |
| 85 | 85 | ||
| 86 | # Populate textboxes with AP settings. | 86 | # Populate textboxes with AP settings. |
| 87 | get_node("../Panel/server_box").text = ap.ap_server | 87 | get_node("../Panel/server_box").text = ap.ap_server |
| @@ -99,7 +99,7 @@ func _ready(): | |||
| 99 | history_box.get_popup().add_item("%s (%s)" % [details[1], details[0]], i) | 99 | history_box.get_popup().add_item("%s (%s)" % [details[1], details[0]], i) |
| 100 | i += 1 | 100 | i += 1 |
| 101 | 101 | ||
| 102 | history_box.get_popup().connect("id_pressed", historySelected) | 102 | history_box.get_popup().id_pressed.connect(historySelected) |
| 103 | 103 | ||
| 104 | # Show client version. | 104 | # Show client version. |
| 105 | get_node("../Panel/title").text = ( | 105 | get_node("../Panel/title").text = ( |
| @@ -112,14 +112,14 @@ func _ready(): | |||
| 112 | get_node("../Panel/password_box").add_theme_font_size_override("font_size", 36) | 112 | get_node("../Panel/password_box").add_theme_font_size_override("font_size", 36) |
| 113 | 113 | ||
| 114 | # Set up version mismatch dialog. | 114 | # Set up version mismatch dialog. |
| 115 | get_node("../Panel/VersionMismatch").connect("confirmed", startGame) | 115 | get_node("../Panel/VersionMismatch").confirmed.connect(startGame) |
| 116 | get_node("../Panel/VersionMismatch").get_cancel_button().pressed.connect( | 116 | get_node("../Panel/VersionMismatch").get_cancel_button().pressed.connect( |
| 117 | versionMismatchDeclined | 117 | versionMismatchDeclined |
| 118 | ) | 118 | ) |
| 119 | 119 | ||
| 120 | # Set up buttons. | 120 | # Set up buttons. |
| 121 | get_node("../Panel/connect_button").connect("pressed", _connect_pressed) | 121 | get_node("../Panel/connect_button").pressed.connect(_connect_pressed) |
| 122 | get_node("../Panel/quit_button").connect("pressed", _back_pressed) | 122 | get_node("../Panel/quit_button").pressed.connect(_back_pressed) |
| 123 | 123 | ||
| 124 | 124 | ||
| 125 | func _connect_pressed(): | 125 | func _connect_pressed(): |
