mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Minor fixes
This commit is contained in:
parent
e91e1416f4
commit
ac15fefff0
@ -185,6 +185,7 @@
|
|||||||
color: #fff;
|
color: #fff;
|
||||||
@include S(border-radius, $globalBorderRadius);
|
@include S(border-radius, $globalBorderRadius);
|
||||||
@include S(padding, 5px);
|
@include S(padding, 5px);
|
||||||
|
@include S(width, 300px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.playButton {
|
.playButton {
|
||||||
|
@ -24,11 +24,9 @@ export class HUDNotifications extends BaseHUDPart {
|
|||||||
this.notificationElements = [];
|
this.notificationElements = [];
|
||||||
|
|
||||||
// Automatic notifications
|
// Automatic notifications
|
||||||
if (!IS_DEMO) {
|
this.root.signals.gameSaved.add(() =>
|
||||||
this.root.signals.gameSaved.add(() =>
|
this.onNotification(T.ingame.notifications.gameSaved, enumNotificationType.saved)
|
||||||
this.onNotification(T.ingame.notifications.gameSaved, enumNotificationType.saved)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,16 +57,16 @@ export class HUDSettingsMenu extends BaseHUDPart {
|
|||||||
}
|
}
|
||||||
|
|
||||||
returnToMenu() {
|
returnToMenu() {
|
||||||
if (IS_DEMO) {
|
// if (IS_DEMO) {
|
||||||
const { cancel, deleteGame } = this.root.hud.parts.dialogs.showWarning(
|
// const { cancel, deleteGame } = this.root.hud.parts.dialogs.showWarning(
|
||||||
T.dialogs.leaveNotPossibleInDemo.title,
|
// T.dialogs.leaveNotPossibleInDemo.title,
|
||||||
T.dialogs.leaveNotPossibleInDemo.desc,
|
// T.dialogs.leaveNotPossibleInDemo.desc,
|
||||||
["cancel:good", "deleteGame:bad"]
|
// ["cancel:good", "deleteGame:bad"]
|
||||||
);
|
// );
|
||||||
deleteGame.add(() => this.root.gameState.goBackToMenu());
|
// deleteGame.add(() => this.root.gameState.goBackToMenu());
|
||||||
} else {
|
// } else {
|
||||||
this.root.gameState.goBackToMenu();
|
this.root.gameState.goBackToMenu();
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
goToSettings() {
|
goToSettings() {
|
||||||
|
@ -14,10 +14,14 @@ export class HUDWatermark extends BaseHUDPart {
|
|||||||
const w = this.root.gameWidth;
|
const w = this.root.gameWidth;
|
||||||
|
|
||||||
parameters.context.fillStyle = "#f77";
|
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.textAlign = "center";
|
||||||
parameters.context.fillText("DEMO VERSION", w / 2, 50);
|
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";
|
parameters.context.textAlign = "left";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ demoBanners:
|
|||||||
intro: >-
|
intro: >-
|
||||||
If you enjoy this game, please consider to buy the full version!
|
If you enjoy this game, please consider to buy the full version!
|
||||||
advantages:
|
advantages:
|
||||||
- No advertisements
|
- No advertisements & watermark
|
||||||
- Dark mode
|
- Dark mode
|
||||||
- >-
|
- >-
|
||||||
Allow me to further develop shapez.io ❤️
|
Allow me to further develop shapez.io ❤️
|
||||||
|
Loading…
Reference in New Issue
Block a user