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

Further fixes

This commit is contained in:
tobspr
2020-09-24 17:14:15 +02:00
parent a4b46f8527
commit 7cd1ee22fd
17 changed files with 22 additions and 34 deletions

View File

@@ -6,6 +6,7 @@ import { THEME } from "../../theme";
import { BaseHUDPart } from "../base_hud_part";
import { Loader } from "../../../core/loader";
import { lerp } from "../../../core/utils";
import { enumHubGoalRewards } from "../../tutorial_goals";
const wiresBackgroundDpi = 4;
@@ -26,7 +27,9 @@ export class HUDWiresOverlay extends BaseHUDPart {
*/
switchLayers() {
if (this.root.currentLayer === "regular") {
this.root.currentLayer = "wires";
if (this.root.hubGoals.isRewardUnlocked(enumHubGoalRewards.reward_wires_filters_and_levers)) {
this.root.currentLayer = "wires";
}
} else {
this.root.currentLayer = "regular";
}