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

Get rid of demo messages

This commit is contained in:
tobspr
2020-05-21 17:54:55 +02:00
parent e1ae61e0f5
commit e91e1416f4
3 changed files with 13 additions and 13 deletions

View File

@@ -118,12 +118,12 @@ export class HUDGameMenu extends BaseHUDPart {
}
startSave() {
if (IS_DEMO) {
this.root.hud.parts.dialogs.showFeatureRestrictionInfo(
null,
T.dialogs.saveNotPossibleInDemo.desc
);
}
// if (IS_DEMO) {
// this.root.hud.parts.dialogs.showFeatureRestrictionInfo(
// null,
// T.dialogs.saveNotPossibleInDemo.desc
// );
// }
this.root.gameState.doSave();
}

View File

@@ -272,10 +272,10 @@ export class MainMenuState extends GameState {
resumeGame(game) {
this.app.analytics.trackUiClick("resume_game");
if (IS_DEMO) {
this.dialogs.showFeatureRestrictionInfo(T.demo.features.restoringGames);
return;
}
// if (IS_DEMO) {
// this.dialogs.showFeatureRestrictionInfo(T.demo.features.restoringGames);
// return;
// }
const savegame = this.app.savegameMgr.getSavegameById(game.internalId);
savegame.readAsync().then(() => {