1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Further wording update

This commit is contained in:
tobspr
2020-05-21 16:56:53 +02:00
parent 67b206e72f
commit 77a8ae60c3
6 changed files with 40 additions and 9 deletions

View File

@@ -86,6 +86,8 @@ export class MainMenuState extends GameState {
<span class="thirdpartyLogo discordLogo"></span>
</a>
<div class="author">Made by <a href="https://tobspr.com" target="_blank">Tobias Springer</a></div>
</div>
`;
}
@@ -319,7 +321,7 @@ export class MainMenuState extends GameState {
this.moveToState("SettingsState");
}
onPlayButtonClicked() {
doStartNewGame() {
this.app.analytics.trackUiClick("start_new_game");
const savegame = this.app.savegameMgr.createNewSavegame();
@@ -335,6 +337,19 @@ export class MainMenuState extends GameState {
});
}
onPlayButtonClicked() {
if (IS_DEMO) {
const { ok } = this.dialogs.showWarning(
T.dialogs.demoExplanation.title,
T.dialogs.demoExplanation.desc
);
ok.add(() => this.doStartNewGame());
return;
}
this.doStartNewGame();
}
onLeave() {
this.dialogs.cleanup();
}