1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2026-02-23 08:19:21 +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 { .building {
&:not(.hidden) {
display: flex; display: flex;
@include S(width, 40px); @include S(width, 40px);
position: relative; position: relative;
@ -146,4 +147,5 @@
} }
} }
} }
}
} }

View File

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