Minor fixes

pull/33/head
tobspr 4 years ago
parent e91e1416f4
commit ac15fefff0

@ -185,6 +185,7 @@
color: #fff;
@include S(border-radius, $globalBorderRadius);
@include S(padding, 5px);
@include S(width, 300px);
}
.playButton {

@ -24,11 +24,9 @@ export class HUDNotifications extends BaseHUDPart {
this.notificationElements = [];
// Automatic notifications
if (!IS_DEMO) {
this.root.signals.gameSaved.add(() =>
this.onNotification(T.ingame.notifications.gameSaved, enumNotificationType.saved)
);
}
this.root.signals.gameSaved.add(() =>
this.onNotification(T.ingame.notifications.gameSaved, enumNotificationType.saved)
);
}
/**

@ -57,16 +57,16 @@ export class HUDSettingsMenu extends BaseHUDPart {
}
returnToMenu() {
if (IS_DEMO) {
const { cancel, deleteGame } = this.root.hud.parts.dialogs.showWarning(
T.dialogs.leaveNotPossibleInDemo.title,
T.dialogs.leaveNotPossibleInDemo.desc,
["cancel:good", "deleteGame:bad"]
);
deleteGame.add(() => this.root.gameState.goBackToMenu());
} else {
this.root.gameState.goBackToMenu();
}
// if (IS_DEMO) {
// const { cancel, deleteGame } = this.root.hud.parts.dialogs.showWarning(
// T.dialogs.leaveNotPossibleInDemo.title,
// T.dialogs.leaveNotPossibleInDemo.desc,
// ["cancel:good", "deleteGame:bad"]
// );
// deleteGame.add(() => this.root.gameState.goBackToMenu());
// } else {
this.root.gameState.goBackToMenu();
// }
}
goToSettings() {

@ -14,10 +14,14 @@ export class HUDWatermark extends BaseHUDPart {
const w = this.root.gameWidth;
parameters.context.fillStyle = "#f77";
parameters.context.font = "bold " + this.root.app.getEffectiveUiScale() * 15 + "px GameFont";
parameters.context.font = "bold " + this.root.app.getEffectiveUiScale() * 17 + "px GameFont";
parameters.context.textAlign = "center";
parameters.context.fillText("DEMO VERSION", w / 2, 50);
parameters.context.font = "bold " + this.root.app.getEffectiveUiScale() * 12 + "px GameFont";
parameters.context.textAlign = "center";
parameters.context.fillText("Please consider to buy the full version!", w / 2, 90);
parameters.context.textAlign = "left";
}
}

@ -61,7 +61,7 @@ demoBanners:
intro: >-
If you enjoy this game, please consider to buy the full version!
advantages:
- No advertisements
- No advertisements & watermark
- Dark mode
- >-
Allow me to further develop shapez.io ❤️

Loading…
Cancel
Save