mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
player name stuff
This commit is contained in:
parent
14fc385ada
commit
318f421e05
2 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue