1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2024-10-27 20:34:29 +00:00

Further wording update

This commit is contained in:
tobspr 2020-05-21 16:56:53 +02:00
parent 67b206e72f
commit 77a8ae60c3
6 changed files with 40 additions and 9 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

View File

@ -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 {

View File

@ -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,10 +24,12 @@ 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)
);
}
}
/**
* @param {string} message

View File

@ -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();
}

View File

@ -57,13 +57,14 @@ global:
demoBanners:
# This is the "advertisement" shown in the main menu and other various places
title: Demo version
title: Hey!
intro: >-
Get the full version for:
If you enjoy this game, please consider to buy the full version!
advantages:
- Saving and resuming your games.
- Dark mode & more.
- Supporting the developer ❤️
- Save & restore your games
- Dark mode
- >-
Allow me to further develop shapez.io ❤️
mainMenu:
play: Play
@ -144,6 +145,10 @@ dialogs:
title: Update available
desc: There is an update for this game available!
demoExplanation:
title: You can not save
desc: This is a demo, and you will not be able to restore your saved games. To save and resume your games, get the standalone on itch.io (You can import them).<br><br>I know this sucks, but otherwise I can not continue the development of this game!
ingame:
# This is shown in the top left corner and displays useful keybindings in
# every situation