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:
@@ -81,6 +81,7 @@
|
||||
@include S(border-radius, $globalBorderRadius);
|
||||
height: 100%;
|
||||
box-sizing: border-box;
|
||||
@include S(width, 300px);
|
||||
@include S(padding, 15px);
|
||||
|
||||
display: flex;
|
||||
@@ -283,6 +284,13 @@
|
||||
flex-grow: 1;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
width: 100%;
|
||||
|
||||
.author {
|
||||
flex-grow: 1;
|
||||
text-align: right;
|
||||
@include S(padding-right, 10px);
|
||||
}
|
||||
|
||||
@include S(padding, 15px);
|
||||
> a {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { BaseHUDPart } from "../base_hud_part";
|
||||
import { makeDiv } from "../../../core/utils";
|
||||
import { T } from "../../../translations";
|
||||
import { IS_DEMO } from "../../../core/config";
|
||||
|
||||
/** @enum {string} */
|
||||
export const enumNotificationType = {
|
||||
@@ -23,9 +24,11 @@ export class HUDNotifications extends BaseHUDPart {
|
||||
this.notificationElements = [];
|
||||
|
||||
// Automatic notifications
|
||||
this.root.signals.gameSaved.add(() =>
|
||||
this.onNotification(T.ingame.notifications.gameSaved, enumNotificationType.saved)
|
||||
);
|
||||
if (!IS_DEMO) {
|
||||
this.root.signals.gameSaved.add(() =>
|
||||
this.onNotification(T.ingame.notifications.gameSaved, enumNotificationType.saved)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user