Skip to content

Commit

Permalink
Update game.min.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Toonigy authored Jan 3, 2025
1 parent 3496150 commit dac6e86
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions 1-50-0/js/game.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ function ApiClient(e, t) {
case "xpmuser.github.io":
i("staging", l);
break;
case "www.prodigygame.com":
case "prodigygame.com":
case "https://prodigy200-2c7e4-default-rtdb.firebaseio.com":
case "localhost":
case "xpmuser.github.io":
i("production", l)
Expand Down Expand Up @@ -55350,7 +55349,24 @@ var Screen = function() {
function e(e) {
Screen.call(this, e, "Login", "login", "login", ["login", "sfx-ui", "icons", "icons-menu", "icons-hud", "npc-sprite-toy"]), this.showMenu = !1, this.skipUrlParams = !1
}
return e.prototype = Object.create(Screen.prototype), e.prototype.create = function() {
return e.onGoogleAuthLoadedCallback = null, e.isGoogleAuthLoaded = !0, e.onGoogleAuthLoaded = function (t, i) {
e.isGoogleAuthLoaded = t, i = Util.isDefined(i) ? i : {
error: "no error specified",
details: "no details specified"
}, t ? (Util.log("Login.onGoogleAuthLoaded - google auth lib loaded successfully"), Util.isDefined(e.onGoogleAuthLoadedCallback) && (e.onGoogleAuthLoadedCallback(), e.onGoogleAuthLoadedCallback = null)) : Util.log("Login.onGoogleAuthLoaded - error loading google auth lib. The error is: " + i.error + " \n details: " + i.details, Util.ERROR)
}, window.onGooglePlatformLoad = function () {
Util.log("google platform loaded"), window.gapi.load("auth2", function () {
var t = window.gapi.auth2.init({
client_id: "85699320917-pma4ke6sms19u9o0b13op6s53mthf84s.apps.googleusercontent.com",
cookiepolicy: "single_host_origin"
});
t.then(function () {
e.onGoogleAuthLoaded(!0)
}, function (t) {
e.onGoogleAuthLoaded(!0, t)
})
})
}, e.prototype = Object.create(Screen.prototype), e.GOOGLE_AUTH_FAIL_DEFAULT = "Signing in with Google was unsuccessful", e.GOOGLE_AUTH_POPUP_BLOCKED = "Your browser is blocking popups. To sign in with Google, please allow popups and try again.", e.GOOGLE_AUTH_USE_BROWSER_INSTEAD = "Google sign-in only works in the browser version of Prodigy. Would you like to open Prodigy in the browser?", e.prototype.create = function () {
this.game.prodigy.network.logout(!0), this.game.prodigy.debug.setup(this.game);
try {
$("#first-loading-screen").remove()
Expand All @@ -55363,7 +55379,7 @@ var Screen = function() {
var e = this.game.prodigy.open.okaymessage("The load character button doesn't work on iPads. We suggest you use another device if you're an iPad user. Press the Enter key to see the entire message so that it's easier to read it.", null, "star", "Warning!");
this.game.prodigy.debug.easyMode(1, 1), this.background.add(this.game.prodigy.create.sprite(0, 0, "login", "bg")), this.loginBox = this.game.prodigy.create.element(this.background), this.usernameField = Prodigy.Control.InputField.createInputField(this.game, this.loginBox, "username", "", 90, 230, 300, 40), this.usernameField.hide(0), this.usernameField.setLabel(this.loginBox, "Prodidows Beta 1.15.0");
var e = Util.getCookie("prodigyUsername");
Util.isDefined(e) && this.usernameField.setValue(e), this.passwordField = Prodigy.Control.InputField.createInputField(this.game, this.loginBox, "password", "", 90, 310, 300, 40, "password"), this.passwordField.hide(0), this.passwordField.setLabel(this.loginBox, "Version 1.50.0 build 5000"), this.loadCharacterButton = this.game.prodigy.create.button(this.loginBox, 100, 380, "login", "loadcharacter", this.openFileForCharacter.bind(this)), this.offlineModeButton = this.game.prodigy.create.button(this.loginBox, 100, 470, "login", "offline", this.offlineMode.bind(this)), this.progressBox = this.game.prodigy.create.element(this.background, 100, 250), this.error = this.game.prodigy.create.font(this.progressBox, 0, 0, "", {
Util.isDefined(e) && this.usernameField.setValue(e), this.passwordField = Prodigy.Control.InputField.createInputField(this.game, this.loginBox, "password", "", 90, 310, 300, 40, "password"), this.passwordField.hide(0), this.passwordField.setLabel(this.loginBox, "Version 1.50.0 build 5000"), this.loadCharacterButton = this.game.prodigy.create.button(this.loginBox, 100, 380, "login", "loadcharacter", this.openFileForCharacter.bind(this)), this.offlineModeButton = this.game.prodigy.create.button(this.loginBox, 100, 470, "login", "google-signin-btn", this.onGoogleLoginButtonClick.bind(this)), this.progressBox = this.game.prodigy.create.element(this.background, 100, 250), this.error = this.game.prodigy.create.font(this.progressBox, 0, 0, "", {
width: 300,
align: "center"
}), this.closeButton = this.game.prodigy.create.textButton(this.progressBox, 0, 100, {
Expand Down

0 comments on commit dac6e86

Please sign in to comment.