1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-03-02 03:39:21 +00:00

Allow to disable hints, add changelog

This commit is contained in:
tobspr
2020-05-23 15:04:55 +02:00
parent 5a46ba5e31
commit f03f04caa1
15 changed files with 218 additions and 14 deletions

View File

@@ -54,6 +54,15 @@ export class HUDPartTutorialHints extends BaseHUDPart {
this.domAttach = new DynamicDomAttach(this.root, this.element);
this.currentShownLevel = new TrackedState(this.updateVideoUrl, this);
this.root.signals.postLoadHook.add(() => {
if (this.root.hubGoals.level === 1) {
this.root.hud.parts.dialogs.showInfo(
T.dialogs.hintDescription.title,
T.dialogs.hintDescription.desc
);
}
});
}
updateVideoUrl(level) {