From 36abdfc138f80e86302c4e534738e00d245bcde3 Mon Sep 17 00:00:00 2001 From: Toonigy <62924215+Toonigy@users.noreply.github.com> Date: Sat, 16 Nov 2024 10:02:32 -0800 Subject: [PATCH] Update game.min.js --- pde1500/js/game.min.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pde1500/js/game.min.js b/pde1500/js/game.min.js index 077401e..ea51932 100644 --- a/pde1500/js/game.min.js +++ b/pde1500/js/game.min.js @@ -40880,6 +40880,19 @@ Attack.BX = 2e3, Attack.BY = 1e3, Prodigy.Control.ScrollBar = function(e, t, i, var h = h || ""; this.input = document.createElement("input"), this.input.setAttribute("value", h), this.input.setAttribute("id", i), this.input.setAttribute("class", "game-input"), this.input.setAttribute("autocapitalize", "off"), this.ID = "#" + i; var t = document.getElementById("external-ui"); + i.appendChild(this.googleLoginButton), this.googleLoginButton.addEventListener("click", this.onGoogleLoginButtonClick.bind(this)), this.googleLoginButton.addEventListener("mouseenter", function() { + this.googleButtonHeightOffset = 3 + }.bind(this)), this.googleLoginButton.addEventListener("mouseleave", function() { + this.googleButtonHeightOffset = 0 + }.bind(this)), this.googleLoginButton.style.backgroundImage = "url('" + GameConstants.get("GameConstants.Build.ASSETS_LOCATION") + "v1/single-images/login-google-signin/1/google-signin-btn.png')", this.googleLoginButton.style.backgroundRepeat = "no-repeat", this.googleLoginButton.style.backgroundSize = "100% 100%", this.googleLoginButton.style.backgroundColor = "transparent", e.isGoogleAuthLoaded || (this.googleLoginButton.disabled = !0, $("#google-button").css({ + opacity: .65, + cursor: "default" + }), e.onGoogleAuthLoadedCallback = function() { + e.isGoogleAuthLoaded && (this.googleLoginButton.disabled = !1, $("#google-button").css({ + opacity: 1, + cursor: "default" + })) + }.bind(this)); t.appendChild(this.input), this.canvas = $("#game-container canvas"), this.x = s, this.y = r, this.twidth = o, this.theight = n, this.createEvents() }, Prodigy.Control.InputField.HEIGHT_SMALL = 30, Prodigy.Control.InputField.HEIGHT_MEDIUM = 45, Prodigy.Control.InputField.WIDTH_MEDIUM = 300, Prodigy.Control.InputField.WIDTH_LARGE = 450, Prodigy.extends(Prodigy.Control.InputField, Prodigy.Control.Element, { constructor: Prodigy.Control.InputField, @@ -55455,7 +55468,7 @@ var Screen = function() { icon: "close", text: "okay", size: Prodigy.Control.TextButton.MED - }, this. game.prodigy.open.message("To load your character with Google, click on load character, choose your save file, click on the Sign in with Google button, and then choose your Google account."), this.showLogin.bind(this, !0)), this.error.visible = !1, this.closeButton.visible = !1, this.progressBox.visible = !1, this.createAccountButton = this.game.prodigy.create.button(this.background, 100, 560, "login-buttons", "student", this.game.prodigy.start.bind(this, "CharCreate")), this.googleLoginButton = document.createElement("button"), this.googleLoginButton.style.position = "absolute", this.googleLoginButton.style.display = "block", this.googleLoginButton.style.left = "103px", this.googleLoginButton.style.top = "480px", this.googleLoginButton.style.height = "65px", this.googleLoginButton.style.width = "285px", this.googleLoginButton.setAttribute("id", "google-button"), this.googleButtonHeightOffset = 0, this.canvas = $("#game-container canvas"); + }, this.showLogin.bind(this, !0)), this.progressBox.visible = !1, this.createAccountButton = this.game.prodigy.create.button(this.background, 100, 560, "login", "student", this.createAccount.bind(this)); var t = this.game.prodigy.create.panel(this.background, 100, 660, 4, 1, "lb"); t.alpha = .25, this.game.prodigy.create.font(this.background, t.x, t.y + 8, "Privacy Policy", { size: 16,