Open the local signup page in the game's embedded browser before sign-in. Return the existing login error for unknown accounts or invalid passwords. BREAKING CHANGE: First-time players must register in the game's signup window or create a save in the launcher before signing in. Existing accounts can sign in with their saved credentials.
12 lines
417 B
Plaintext
12 lines
417 B
Plaintext
function isLocalRegistrationPage() {
|
|
let registrationUrl = "http://{{LOCAL_ENDPOINT}}/register"
|
|
return this.url == registrationUrl || startsWith(this.url, registrationUrl + "?")
|
|
}
|
|
|
|
function initScreen() {
|
|
if (this.isLocalRegistrationPage()) {
|
|
let externalButton = this.scene.findObject("btn_browser_force_external")
|
|
if (checkObj(externalButton))
|
|
externalButton.show(false)
|
|
}
|