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;
|
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.type = this.getType();
|
||||||
this.hiddenHudParts = data.hiddenHudParts || this.getDefaultHiddenHudParts();
|
this.hiddenHudParts = data.hiddenHudParts || this.getDefaultHiddenHudParts();
|
||||||
// this.excludedHudParts = data.hiddenHudParts || this.getDefaultHiddenHudParts();
|
// this.excludedHudParts = data.hiddenHudParts || this.getDefaultHiddenHudParts();
|
||||||
this.zoneHeight = data.zoneHeight || (3 * globalConfig.tileSize);
|
this.zoneHeight = data.zoneHeight || 3 * globalConfig.tileSize;
|
||||||
this.zoneWidth = data.zoneWidth || (4 * globalConfig.tileSize);
|
this.zoneWidth = data.zoneWidth || 4 * globalConfig.tileSize;
|
||||||
this.boundaryHeight = this.zoneHeight * 2;
|
this.boundaryHeight = this.zoneHeight * 2;
|
||||||
this.boundaryWidth = this.zoneWidth * 2;
|
this.boundaryWidth = this.zoneWidth * 2;
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ export class PuzzleGameMode extends GameMode {
|
|||||||
|
|
||||||
getDefaultHiddenHudParts() {
|
getDefaultHiddenHudParts() {
|
||||||
return {
|
return {
|
||||||
[HUDPinnedShapes.name]: true
|
[HUDPinnedShapes.name]: true,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,8 +27,8 @@ export class SavegameInterface_V1009 extends SavegameInterface_V1008 {
|
|||||||
dump.gameMode = {
|
dump.gameMode = {
|
||||||
mode: {
|
mode: {
|
||||||
id: RegularGameMode.getId(),
|
id: RegularGameMode.getId(),
|
||||||
data: {}
|
data: {},
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -39,6 +39,9 @@ export class GameCreationPayload {
|
|||||||
/** @type {boolean|undefined} */
|
/** @type {boolean|undefined} */
|
||||||
this.fastEnter;
|
this.fastEnter;
|
||||||
|
|
||||||
|
/** @type {string} */
|
||||||
|
this.gameModeId;
|
||||||
|
|
||||||
/** @type {Savegame} */
|
/** @type {Savegame} */
|
||||||
this.savegame;
|
this.savegame;
|
||||||
}
|
}
|
||||||
|
@ -317,11 +317,7 @@ export class MainMenuState extends GameState {
|
|||||||
const bottomButtonContainer = this.htmlElement.querySelector(".bottomContainer .buttons");
|
const bottomButtonContainer = this.htmlElement.querySelector(".bottomContainer .buttons");
|
||||||
removeAllChildren(bottomButtonContainer);
|
removeAllChildren(bottomButtonContainer);
|
||||||
|
|
||||||
const puzzleModeButton = makeButton(
|
const puzzleModeButton = makeButton(bottomButtonContainer, ["styledButton"], T.mainMenu.puzzleMode);
|
||||||
bottomButtonContainer,
|
|
||||||
["styledButton"],
|
|
||||||
T.mainMenu.puzzleMode
|
|
||||||
);
|
|
||||||
|
|
||||||
bottomButtonContainer.appendChild(puzzleModeButton);
|
bottomButtonContainer.appendChild(puzzleModeButton);
|
||||||
this.trackClicks(puzzleModeButton, this.onPuzzleModeButtonClicked);
|
this.trackClicks(puzzleModeButton, this.onPuzzleModeButtonClicked);
|
||||||
@ -337,10 +333,7 @@ export class MainMenuState extends GameState {
|
|||||||
const buttonContainer = this.htmlElement.querySelector(".mainContainer .buttons");
|
const buttonContainer = this.htmlElement.querySelector(".mainContainer .buttons");
|
||||||
removeAllChildren(buttonContainer);
|
removeAllChildren(buttonContainer);
|
||||||
|
|
||||||
const playButtonElement = makeButtonElement(
|
const playButtonElement = makeButtonElement(["playButton", "styledButton"], T.mainMenu.play);
|
||||||
["playButton", "styledButton"],
|
|
||||||
T.mainMenu.play
|
|
||||||
);
|
|
||||||
|
|
||||||
buttonContainer.appendChild(playButtonElement);
|
buttonContainer.appendChild(playButtonElement);
|
||||||
this.trackClicks(playButtonElement, this.onPuzzlePlayButtonClicked);
|
this.trackClicks(playButtonElement, this.onPuzzlePlayButtonClicked);
|
||||||
@ -348,11 +341,7 @@ export class MainMenuState extends GameState {
|
|||||||
const bottomButtonContainer = this.htmlElement.querySelector(".bottomContainer .buttons");
|
const bottomButtonContainer = this.htmlElement.querySelector(".bottomContainer .buttons");
|
||||||
removeAllChildren(bottomButtonContainer);
|
removeAllChildren(bottomButtonContainer);
|
||||||
|
|
||||||
const backButton = makeButton(
|
const backButton = makeButton(bottomButtonContainer, ["styledButton"], T.mainMenu.back);
|
||||||
bottomButtonContainer,
|
|
||||||
["styledButton"],
|
|
||||||
T.mainMenu.back
|
|
||||||
);
|
|
||||||
|
|
||||||
bottomButtonContainer.appendChild(backButton);
|
bottomButtonContainer.appendChild(backButton);
|
||||||
this.trackClicks(backButton, this.onBackButtonClicked);
|
this.trackClicks(backButton, this.onBackButtonClicked);
|
||||||
|
Loading…
Reference in New Issue
Block a user