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

Further improvements of unlock notification

This commit is contained in:
tobspr
2020-05-23 10:35:30 +02:00
parent dc6c20b8f0
commit 714332a91d
5 changed files with 68 additions and 57 deletions

View File

@@ -4,9 +4,10 @@ import { makeDiv } from "../../../core/utils";
import { SOUNDS } from "../../../platform/sound";
import { T } from "../../../translations";
import { defaultBuildingVariant } from "../../meta_building";
import { enumHubGoalRewards, enumHubGoalRewardsToContentUnlocked } from "../../tutorial_goals";
import { enumHubGoalRewards } from "../../tutorial_goals";
import { BaseHUDPart } from "../base_hud_part";
import { DynamicDomAttach } from "../dynamic_dom_attach";
import { enumHubGoalRewardsToContentUnlocked } from "../../tutorial_goals_mappings";
export class HUDUnlockNotification extends BaseHUDPart {
initialize() {
@@ -23,10 +24,6 @@ export class HUDUnlockNotification extends BaseHUDPart {
this.buttonShowTimeout = null;
}
shouldPauseGame() {
return this.visible;
}
createElements(parent) {
this.element = makeDiv(parent, "ingame_HUD_UnlockNotification", []);