1
0
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:
tobspr
2020-05-21 16:56:53 +02:00
parent 67b206e72f
commit 77a8ae60c3
6 changed files with 40 additions and 9 deletions

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,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)
);
}
}
/**