mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Some fixes
This commit is contained in:
parent
6359bbeadf
commit
285dd3840d
@ -7,7 +7,7 @@ export const CHANGELOG = [
|
|||||||
"Puzzle DLC: Added button to clear all buildings / reset the puzzle (by Sense101)",
|
"Puzzle DLC: Added button to clear all buildings / reset the puzzle (by Sense101)",
|
||||||
"Puzzle DLC: Allow copy-paste in puzzle mode (by Sense101)",
|
"Puzzle DLC: Allow copy-paste in puzzle mode (by Sense101)",
|
||||||
"Fixed level achievements being given on the wrong level (by DJ1TJOO)",
|
"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",
|
"Updated translations",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -6,6 +6,7 @@ import { MetaBuilding } from "../meta_building";
|
|||||||
import { GameRoot } from "../root";
|
import { GameRoot } from "../root";
|
||||||
import { ShapeDefinition } from "../shape_definition";
|
import { ShapeDefinition } from "../shape_definition";
|
||||||
import { HUDBetaOverlay } from "./parts/beta_overlay";
|
import { HUDBetaOverlay } from "./parts/beta_overlay";
|
||||||
|
import { HUDBlueprintPlacer } from "./parts/blueprint_placer";
|
||||||
import { HUDBuildingsToolbar } from "./parts/buildings_toolbar";
|
import { HUDBuildingsToolbar } from "./parts/buildings_toolbar";
|
||||||
import { HUDBuildingPlacer } from "./parts/building_placer";
|
import { HUDBuildingPlacer } from "./parts/building_placer";
|
||||||
import { HUDColorBlindHelper } from "./parts/color_blind_helper";
|
import { HUDColorBlindHelper } from "./parts/color_blind_helper";
|
||||||
@ -45,6 +46,9 @@ export class GameHUD {
|
|||||||
this.parts = {
|
this.parts = {
|
||||||
buildingsToolbar: new HUDBuildingsToolbar(this.root),
|
buildingsToolbar: new HUDBuildingsToolbar(this.root),
|
||||||
|
|
||||||
|
blueprintPlacer: new HUDBlueprintPlacer(this.root),
|
||||||
|
buildingPlacer: new HUDBuildingPlacer(this.root),
|
||||||
|
|
||||||
// Must always exist
|
// Must always exist
|
||||||
settingsMenu: new HUDSettingsMenu(this.root),
|
settingsMenu: new HUDSettingsMenu(this.root),
|
||||||
debugInfo: new HUDDebugInfo(this.root),
|
debugInfo: new HUDDebugInfo(this.root),
|
||||||
@ -82,8 +86,6 @@ 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);
|
||||||
|
@ -7,7 +7,6 @@ import { types } from "../../savegame/serialization";
|
|||||||
import { enumGameModeTypes, GameMode } from "../game_mode";
|
import { enumGameModeTypes, GameMode } from "../game_mode";
|
||||||
import { HUDPuzzleBackToMenu } from "../hud/parts/puzzle_back_to_menu";
|
import { HUDPuzzleBackToMenu } from "../hud/parts/puzzle_back_to_menu";
|
||||||
import { HUDPuzzleDLCLogo } from "../hud/parts/puzzle_dlc_logo";
|
import { HUDPuzzleDLCLogo } from "../hud/parts/puzzle_dlc_logo";
|
||||||
import { HUDBlueprintPlacer } from "../hud/parts/blueprint_placer";
|
|
||||||
import { HUDMassSelector } from "../hud/parts/mass_selector";
|
import { HUDMassSelector } from "../hud/parts/mass_selector";
|
||||||
|
|
||||||
export class PuzzleGameMode extends GameMode {
|
export class PuzzleGameMode extends GameMode {
|
||||||
@ -32,7 +31,6 @@ export class PuzzleGameMode extends GameMode {
|
|||||||
this.additionalHudParts = {
|
this.additionalHudParts = {
|
||||||
puzzleBackToMenu: HUDPuzzleBackToMenu,
|
puzzleBackToMenu: HUDPuzzleBackToMenu,
|
||||||
puzzleDlcLogo: HUDPuzzleDLCLogo,
|
puzzleDlcLogo: HUDPuzzleDLCLogo,
|
||||||
blueprintPlacer: HUDBlueprintPlacer,
|
|
||||||
massSelector: HUDMassSelector,
|
massSelector: HUDMassSelector,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -10,7 +10,6 @@ import { enumGameModeIds, enumGameModeTypes, GameMode } from "../game_mode";
|
|||||||
import { ShapeDefinition } from "../shape_definition";
|
import { ShapeDefinition } from "../shape_definition";
|
||||||
import { enumHubGoalRewards } from "../tutorial_goals";
|
import { enumHubGoalRewards } from "../tutorial_goals";
|
||||||
import { HUDWiresToolbar } from "../hud/parts/wires_toolbar";
|
import { HUDWiresToolbar } from "../hud/parts/wires_toolbar";
|
||||||
import { HUDBlueprintPlacer } from "../hud/parts/blueprint_placer";
|
|
||||||
import { HUDUnlockNotification } from "../hud/parts/unlock_notification";
|
import { HUDUnlockNotification } from "../hud/parts/unlock_notification";
|
||||||
import { HUDMassSelector } from "../hud/parts/mass_selector";
|
import { HUDMassSelector } from "../hud/parts/mass_selector";
|
||||||
import { HUDShop } from "../hud/parts/shop";
|
import { HUDShop } from "../hud/parts/shop";
|
||||||
@ -546,7 +545,6 @@ export class RegularGameMode extends GameMode {
|
|||||||
|
|
||||||
this.additionalHudParts = {
|
this.additionalHudParts = {
|
||||||
wiresToolbar: HUDWiresToolbar,
|
wiresToolbar: HUDWiresToolbar,
|
||||||
blueprintPlacer: HUDBlueprintPlacer,
|
|
||||||
unlockNotification: HUDUnlockNotification,
|
unlockNotification: HUDUnlockNotification,
|
||||||
massSelector: HUDMassSelector,
|
massSelector: HUDMassSelector,
|
||||||
shop: HUDShop,
|
shop: HUDShop,
|
||||||
|
Loading…
Reference in New Issue
Block a user