1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-02-28 10:49:20 +00:00

changed toolbar to completely hide editor buildings in test mode

This commit is contained in:
Sense101 2021-07-06 20:52:42 +01:00
parent 2add9ba18f
commit 900fcc8479
2 changed files with 82 additions and 80 deletions

View File

@ -49,6 +49,7 @@
}
.building {
&:not(.hidden) {
display: flex;
@include S(width, 40px);
position: relative;
@ -147,3 +148,4 @@
}
}
}
}

View File

@ -296,7 +296,7 @@ export class HUDBaseToolbar extends BaseHUDPart {
const metaBuilding = this.requiredBuildings[i];
const handle = this.buildingHandles[metaBuilding.getId()];
handle.puzzleLocked = testMode;
handle.element.classList.toggle("unlocked", !testMode);
handle.element.classList.toggle("hidden", testMode);
}
}