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
7e40f74ae8
commit
d011679fa1
2 changed files with 4 additions and 2 deletions
|
|
@ -206,7 +206,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();
|
||||
|
|
|
|||
|
|
@ -76,7 +76,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