1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

fix linter warnings

when the imposter is sus ding ding ding
This commit is contained in:
Aurumaker72 2021-03-21 13:07:08 +01:00
parent 2f8ac548ad
commit 2e98691709

View File

@ -19,10 +19,8 @@ const logger = createLogger("hud/mass_selector");
var globalTileSizeAdjusted = 0; var globalTileSizeAdjusted = 0;
export class HUDMassSelector extends BaseHUDPart { export class HUDMassSelector extends BaseHUDPart {
createElements(parent) {} createElements(parent) {}
initialize() { initialize() {
this.currentSelectionStartWorld = null; this.currentSelectionStartWorld = null;
this.currentSelectionEnd = null; this.currentSelectionEnd = null;
@ -206,7 +204,8 @@ export class HUDMassSelector extends BaseHUDPart {
* @param {enumMouseButton} mouseButton * @param {enumMouseButton} mouseButton
*/ */
onMouseDown(pos, mouseButton) { onMouseDown(pos, mouseButton) {
if (!(this.root.keyMapper.getBinding(KEYMAPPINGS.massSelect.massSelectStart).pressed) || mouseButton !== enumMouseButton.left) { if (!(this.root.keyMapper.getBinding(KEYMAPPINGS.massSelect.massSelectStart).pressed)
|| mouseButton !== enumMouseButton.left) {
return; return;
} }
@ -329,10 +328,9 @@ export class HUDMassSelector extends BaseHUDPart {
bounds.x * globalConfig.tileSize + boundsBorder, bounds.x * globalConfig.tileSize + boundsBorder,
bounds.y * globalConfig.tileSize + boundsBorder, bounds.y * globalConfig.tileSize + boundsBorder,
bounds.w * globalTileSizeAdjusted, bounds.w * globalTileSizeAdjusted,
bounds.h * globalTileSizeAdjusted, // This seems like microoptimization but on a huuuge scale it makes a difference bounds.h * globalTileSizeAdjusted // This seems like microoptimization but on a huuuge scale it makes a difference
); );
}); });
parameters.context.closePath(); // +1 fps for some reason parameters.context.closePath(); // +1 fps for some reason
} }
} }