diff --git a/src/js/changelog.js b/src/js/changelog.js index ad85fd9a..9b497ff8 100644 --- a/src/js/changelog.js +++ b/src/js/changelog.js @@ -7,7 +7,7 @@ export const CHANGELOG = [ "Puzzle DLC: Added button to clear all buildings / reset the puzzle (by Sense101)", "Puzzle DLC: Allow copy-paste in puzzle mode (by Sense101)", "Fixed level achievements being given on the wrong level (by DJ1TJOO)", - "Fixed blueprint not properly clearing on right click (by Sense101)", + "Fixed blueprint not properly clearing on right click", "Updated translations", ], }, diff --git a/src/js/game/hud/hud.js b/src/js/game/hud/hud.js index 453a4d9f..f35fe018 100644 --- a/src/js/game/hud/hud.js +++ b/src/js/game/hud/hud.js @@ -6,6 +6,7 @@ import { MetaBuilding } from "../meta_building"; import { GameRoot } from "../root"; import { ShapeDefinition } from "../shape_definition"; import { HUDBetaOverlay } from "./parts/beta_overlay"; +import { HUDBlueprintPlacer } from "./parts/blueprint_placer"; import { HUDBuildingsToolbar } from "./parts/buildings_toolbar"; import { HUDBuildingPlacer } from "./parts/building_placer"; import { HUDColorBlindHelper } from "./parts/color_blind_helper"; @@ -45,6 +46,9 @@ export class GameHUD { this.parts = { buildingsToolbar: new HUDBuildingsToolbar(this.root), + blueprintPlacer: new HUDBlueprintPlacer(this.root), + buildingPlacer: new HUDBuildingPlacer(this.root), + // Must always exist settingsMenu: new HUDSettingsMenu(this.root), debugInfo: new HUDDebugInfo(this.root), @@ -82,8 +86,6 @@ 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); diff --git a/src/js/game/modes/puzzle.js b/src/js/game/modes/puzzle.js index 75a47ee2..c953b0a6 100644 --- a/src/js/game/modes/puzzle.js +++ b/src/js/game/modes/puzzle.js @@ -7,7 +7,6 @@ import { types } from "../../savegame/serialization"; import { enumGameModeTypes, GameMode } from "../game_mode"; import { HUDPuzzleBackToMenu } from "../hud/parts/puzzle_back_to_menu"; import { HUDPuzzleDLCLogo } from "../hud/parts/puzzle_dlc_logo"; -import { HUDBlueprintPlacer } from "../hud/parts/blueprint_placer"; import { HUDMassSelector } from "../hud/parts/mass_selector"; export class PuzzleGameMode extends GameMode { @@ -32,7 +31,6 @@ export class PuzzleGameMode extends GameMode { this.additionalHudParts = { puzzleBackToMenu: HUDPuzzleBackToMenu, puzzleDlcLogo: HUDPuzzleDLCLogo, - blueprintPlacer: HUDBlueprintPlacer, massSelector: HUDMassSelector, }; diff --git a/src/js/game/modes/regular.js b/src/js/game/modes/regular.js index 47ee1355..ca0e8672 100644 --- a/src/js/game/modes/regular.js +++ b/src/js/game/modes/regular.js @@ -10,7 +10,6 @@ import { enumGameModeIds, enumGameModeTypes, GameMode } from "../game_mode"; import { ShapeDefinition } from "../shape_definition"; import { enumHubGoalRewards } from "../tutorial_goals"; import { HUDWiresToolbar } from "../hud/parts/wires_toolbar"; -import { HUDBlueprintPlacer } from "../hud/parts/blueprint_placer"; import { HUDUnlockNotification } from "../hud/parts/unlock_notification"; import { HUDMassSelector } from "../hud/parts/mass_selector"; import { HUDShop } from "../hud/parts/shop"; @@ -546,7 +545,6 @@ export class RegularGameMode extends GameMode { this.additionalHudParts = { wiresToolbar: HUDWiresToolbar, - blueprintPlacer: HUDBlueprintPlacer, unlockNotification: HUDUnlockNotification, massSelector: HUDMassSelector, shop: HUDShop,