mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-07 10:03:59 +00:00
Fixed blueprint not properly clearing on right click (#1235)
* added the new splitter * Update base-en.yaml * added the new splitter Update changelog and update translation regarding 20 upgrade tiers, closes #907 * Update base-en.yaml * fixed blueprints not clearing properly
This commit is contained in:
parent
aa553e63eb
commit
a75a880126
@ -44,7 +44,6 @@ export class GameHUD {
|
|||||||
|
|
||||||
this.parts = {
|
this.parts = {
|
||||||
buildingsToolbar: new HUDBuildingsToolbar(this.root),
|
buildingsToolbar: new HUDBuildingsToolbar(this.root),
|
||||||
buildingPlacer: new HUDBuildingPlacer(this.root),
|
|
||||||
|
|
||||||
// Must always exist
|
// Must always exist
|
||||||
settingsMenu: new HUDSettingsMenu(this.root),
|
settingsMenu: new HUDSettingsMenu(this.root),
|
||||||
@ -83,6 +82,8 @@ export class GameHUD {
|
|||||||
this.parts[partId] = new part(this.root);
|
this.parts[partId] = new part(this.root);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.parts.buildingPlacer = new HUDBuildingPlacer(this.root);
|
||||||
|
|
||||||
const frag = document.createDocumentFragment();
|
const frag = document.createDocumentFragment();
|
||||||
for (const key in this.parts) {
|
for (const key in this.parts) {
|
||||||
this.parts[key].createElements(frag);
|
this.parts[key].createElements(frag);
|
||||||
|
Loading…
Reference in New Issue
Block a user