Compare commits

..

2 Commits

Author SHA1 Message Date
VIA256 304818c3b5 Lobby: implimented authenticateUser 2025-12-24 03:22:18 -08:00
VIA256 8face14d4e LobbyDecor: make logo brighter 2025-12-24 03:21:22 -08:00
2 changed files with 18 additions and 2 deletions
+17 -1
View File
@@ -88,7 +88,7 @@ func _ready():
if _userRemembered: _userNameTemp = userName;
elif _userPassword != "": ##They are trying to play authenticated - don't let them in without validating their password
_userNameTemp = PlayerPrefs.GetString("userName", "");
#IMPLIMENTME: authenticateUser();
authenticateUser();
else:
_userNameTemp = PlayerPrefs.GetString("userName", "");
userName = _userNameTemp + ("-" if _userNameTemp != "" else "");
@@ -105,3 +105,19 @@ func _ready():
var data = _www_data.split("\n"[0]);
else:
GameData.errorMessage = "Alert: Update server is unreachable.\nIf this computer is online, the update server may be down.\n\nYou need to be connected to the internet to play Mars Explorer.\n\nPlease check MarsXPLR.com for news & updates!";
func authenticateUser():
_userAuthenticating = "";
if(_userRemembered):
PlayerPrefs.SetString("userName", _userNameTemp);
PlayerPrefs.SetString("userPassword", _userPassword);
PlayerPrefs.SetInt("userRemembered", 1);
PlayerPrefs.SetInt("userRegistered", 1);
else:
PlayerPrefs.SetString("userName", "");
PlayerPrefs.SetString("userPassword", "");
PlayerPrefs.SetInt("userRemembered", 0);
PlayerPrefs.SetInt("userRegistered", 0);
_userNameTemp = "";
_userPassword = "";
+1 -1
View File
@@ -30,7 +30,7 @@ func _process(_delta : float):
if t_elapsed < 5:
bg.modulate.a = 1 - (t_elapsed / 4);
if t_elapsed < 2.5:
guiTexture.modulate.a = lerpf(0, 1, t_elapsed * (1 / 2.5));
guiTexture.modulate.a = lerpf(0, 1.4, t_elapsed * (1 / 2.5));
_set_pixelinset(guiTexture, Rect2(
screen_size.x / 2 - width / 2,
screen_size.y / 2 - width / 4,