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:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user