player name stuff

This commit is contained in:
RandomityGuy 2025-02-10 19:03:57 +05:30
parent 14fc385ada
commit 318f421e05
2 changed files with 4 additions and 2 deletions

View file

@ -201,7 +201,7 @@ class EndGameGui extends GuiImage {
});
}
if (bestScore.time == score) {
if (Settings.highscoreName == "" || Settings.highscoreName == "Player Name") {
if (Settings.highscoreName == "" || Settings.highscoreName == "Player" || Settings.highscoreName == "Player Name") {
haxe.Timer.delay(() -> {
MarbleGame.canvas.pushDialog(new EnterNamePopupDlg(() -> {
submitScore();

View file

@ -71,7 +71,9 @@ class MainMenuGui extends GuiImage {
cast(this.parent, Canvas).pushDialog(new MessageBoxOkDlg("Custom levels not loaded yet, please wait."));
MPCustoms.loadMissionList();
} else {
if (StringTools.trim(Settings.highscoreName) == "" || Settings.highscoreName == "Player") {
if (StringTools.trim(Settings.highscoreName) == ""
|| Settings.highscoreName == "Player"
|| Settings.highscoreName == "Player Name") {
MarbleGame.canvas.setContent(new EnterNameDlg());
} else
cast(this.parent, Canvas).setContent(new MultiplayerGui());