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:
parent
2add9ba18f
commit
900fcc8479
@ -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 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user