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:
parent
2f8ac548ad
commit
2e98691709
@ -19,10 +19,8 @@ const logger = createLogger("hud/mass_selector");
|
||||
var globalTileSizeAdjusted = 0;
|
||||
|
||||
export class HUDMassSelector extends BaseHUDPart {
|
||||
|
||||
createElements(parent) {}
|
||||
|
||||
|
||||
initialize() {
|
||||
this.currentSelectionStartWorld = null;
|
||||
this.currentSelectionEnd = null;
|
||||
@ -206,7 +204,8 @@ export class HUDMassSelector extends BaseHUDPart {
|
||||
* @param {enumMouseButton} 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;
|
||||
}
|
||||
|
||||
@ -329,10 +328,9 @@ export class HUDMassSelector extends BaseHUDPart {
|
||||
bounds.x * globalConfig.tileSize + boundsBorder,
|
||||
bounds.y * globalConfig.tileSize + boundsBorder,
|
||||
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
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user