mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Clean up lint issues
This commit is contained in:
parent
af980c7114
commit
47abc24436
@ -943,7 +943,7 @@ export class Camera extends BasicSerializableObject {
|
||||
)
|
||||
);
|
||||
|
||||
this.clampPosition(this.center)
|
||||
this.clampPosition(this.center);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -181,7 +181,7 @@ export class GameHUD {
|
||||
continue;
|
||||
}
|
||||
|
||||
this.parts[key] = new Part(this.root);
|
||||
this.parts[key] = new Part(this.root);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -30,9 +30,9 @@ export class PuzzleGameMode extends GameMode {
|
||||
|
||||
this.type = this.getType();
|
||||
this.hiddenHudParts = data.hiddenHudParts || this.getDefaultHiddenHudParts();
|
||||
// this.excludedHudParts = data.hiddenHudParts || this.getDefaultHiddenHudParts();
|
||||
this.zoneHeight = data.zoneHeight || (3 * globalConfig.tileSize);
|
||||
this.zoneWidth = data.zoneWidth || (4 * globalConfig.tileSize);
|
||||
// this.excludedHudParts = data.hiddenHudParts || this.getDefaultHiddenHudParts();
|
||||
this.zoneHeight = data.zoneHeight || 3 * globalConfig.tileSize;
|
||||
this.zoneWidth = data.zoneWidth || 4 * globalConfig.tileSize;
|
||||
this.boundaryHeight = this.zoneHeight * 2;
|
||||
this.boundaryWidth = this.zoneWidth * 2;
|
||||
}
|
||||
@ -49,7 +49,7 @@ export class PuzzleGameMode extends GameMode {
|
||||
|
||||
getDefaultHiddenHudParts() {
|
||||
return {
|
||||
[HUDPinnedShapes.name]: true
|
||||
[HUDPinnedShapes.name]: true,
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -27,8 +27,8 @@ export class SavegameInterface_V1009 extends SavegameInterface_V1008 {
|
||||
dump.gameMode = {
|
||||
mode: {
|
||||
id: RegularGameMode.getId(),
|
||||
data: {}
|
||||
}
|
||||
data: {},
|
||||
},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -39,6 +39,9 @@ export class GameCreationPayload {
|
||||
/** @type {boolean|undefined} */
|
||||
this.fastEnter;
|
||||
|
||||
/** @type {string} */
|
||||
this.gameModeId;
|
||||
|
||||
/** @type {Savegame} */
|
||||
this.savegame;
|
||||
}
|
||||
|
@ -317,11 +317,7 @@ export class MainMenuState extends GameState {
|
||||
const bottomButtonContainer = this.htmlElement.querySelector(".bottomContainer .buttons");
|
||||
removeAllChildren(bottomButtonContainer);
|
||||
|
||||
const puzzleModeButton = makeButton(
|
||||
bottomButtonContainer,
|
||||
["styledButton"],
|
||||
T.mainMenu.puzzleMode
|
||||
);
|
||||
const puzzleModeButton = makeButton(bottomButtonContainer, ["styledButton"], T.mainMenu.puzzleMode);
|
||||
|
||||
bottomButtonContainer.appendChild(puzzleModeButton);
|
||||
this.trackClicks(puzzleModeButton, this.onPuzzleModeButtonClicked);
|
||||
@ -337,10 +333,7 @@ export class MainMenuState extends GameState {
|
||||
const buttonContainer = this.htmlElement.querySelector(".mainContainer .buttons");
|
||||
removeAllChildren(buttonContainer);
|
||||
|
||||
const playButtonElement = makeButtonElement(
|
||||
["playButton", "styledButton"],
|
||||
T.mainMenu.play
|
||||
);
|
||||
const playButtonElement = makeButtonElement(["playButton", "styledButton"], T.mainMenu.play);
|
||||
|
||||
buttonContainer.appendChild(playButtonElement);
|
||||
this.trackClicks(playButtonElement, this.onPuzzlePlayButtonClicked);
|
||||
@ -348,11 +341,7 @@ export class MainMenuState extends GameState {
|
||||
const bottomButtonContainer = this.htmlElement.querySelector(".bottomContainer .buttons");
|
||||
removeAllChildren(bottomButtonContainer);
|
||||
|
||||
const backButton = makeButton(
|
||||
bottomButtonContainer,
|
||||
["styledButton"],
|
||||
T.mainMenu.back
|
||||
);
|
||||
const backButton = makeButton(bottomButtonContainer, ["styledButton"], T.mainMenu.back);
|
||||
|
||||
bottomButtonContainer.appendChild(backButton);
|
||||
this.trackClicks(backButton, this.onBackButtonClicked);
|
||||
|
Loading…
Reference in New Issue
Block a user