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
pull/1242/head
Sense101 3 years ago committed by GitHub
parent aa553e63eb
commit a75a880126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,6 @@ export class GameHUD {
this.parts = {
buildingsToolbar: new HUDBuildingsToolbar(this.root),
buildingPlacer: new HUDBuildingPlacer(this.root),
// Must always exist
settingsMenu: new HUDSettingsMenu(this.root),
@ -83,6 +82,8 @@ export class GameHUD {
this.parts[partId] = new part(this.root);
}
this.parts.buildingPlacer = new HUDBuildingPlacer(this.root);
const frag = document.createDocumentFragment();
for (const key in this.parts) {
this.parts[key].createElements(frag);

Loading…
Cancel
Save