diff options
Diffstat (limited to 'apworld/client/main.gd')
-rw-r--r-- | apworld/client/main.gd | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/apworld/client/main.gd b/apworld/client/main.gd index 8425d8c..2d2e606 100644 --- a/apworld/client/main.gd +++ b/apworld/client/main.gd | |||
@@ -102,8 +102,9 @@ func _ready(): | |||
102 | history_box.get_popup().id_pressed.connect(historySelected) | 102 | history_box.get_popup().id_pressed.connect(historySelected) |
103 | 103 | ||
104 | # Show client version. | 104 | # Show client version. |
105 | var version = gamedata.objects.get_version() | ||
105 | get_node("../Panel/title").text = ( | 106 | get_node("../Panel/title").text = ( |
106 | "ARCHIPELAGO (%d.%d)" % [gamedata.objects.get_version(), ap.MOD_VERSION] | 107 | "ARCHIPELAGO (%d.%d.%d)" % [version.get_major(), version.get_minor(), version.get_patch()] |
107 | ) | 108 | ) |
108 | 109 | ||
109 | # Increase font size in text boxes. | 110 | # Increase font size in text boxes. |
@@ -173,18 +174,20 @@ func connectionSuccessful(): | |||
173 | var gamedata = global.get_node("Gamedata") | 174 | var gamedata = global.get_node("Gamedata") |
174 | 175 | ||
175 | # Check for major version mismatch. | 176 | # Check for major version mismatch. |
176 | if ap.apworld_version[0] != gamedata.objects.get_version(): | 177 | if ap.apworld_version[0] != gamedata.objects.get_version().get_major(): |
177 | get_node("../Panel/AcceptDialog").exclusive = false | 178 | get_node("../Panel/AcceptDialog").exclusive = false |
178 | 179 | ||
179 | var popup = get_node("../Panel/VersionMismatch") | 180 | var popup = get_node("../Panel/VersionMismatch") |
180 | popup.title = "Version Mismatch!" | 181 | popup.title = "Version Mismatch!" |
181 | popup.dialog_text = ( | 182 | popup.dialog_text = ( |
182 | "This slot was generated using v%d.%d of the Lingo 2 apworld,\nwhich has a different major version than this client (v%d.%d).\nIt is highly recommended to play using the correct version of the client.\nYou may experience bugs or logic issues if you continue." | 183 | "This slot was generated using v%d.%d.%d of the Lingo 2 apworld,\nwhich has a different major version than this client (v%d.%d.%d).\nIt is highly recommended to play using the correct version of the client.\nYou may experience bugs or logic issues if you continue." |
183 | % [ | 184 | % [ |
184 | ap.apworld_version[0], | 185 | ap.apworld_version[0], |
185 | ap.apworld_version[1], | 186 | ap.apworld_version[1], |
186 | gamedata.objects.get_version(), | 187 | ap.apworld_version[2], |
187 | ap.MOD_VERSION | 188 | gamedata.objects.get_version().get_major(), |
189 | gamedata.objects.get_version().get_minor(), | ||
190 | gamedata.objects.get_version().get_patch() | ||
188 | ] | 191 | ] |
189 | ) | 192 | ) |
190 | popup.exclusive = true | 193 | popup.exclusive = true |