Added prettier (#661)

* Added prettier

* Added prettier

* Added prettier
This commit is contained in:
Daniël van Noord
2021-03-14 18:57:07 +01:00
committed by GitHub
parent f3e7964262
commit 932509a877
132 changed files with 7143 additions and 4894 deletions

View File

@@ -1,17 +1,22 @@
/* eslint-disable no-unused-vars */
import { TooltipWrinklerArea, TooltipWrinklerBeingShown } from '../../Disp/VariablesAndData';
import {
TooltipWrinklerArea,
TooltipWrinklerBeingShown,
} from '../../Disp/VariablesAndData';
/**
* This function creates .onmouseover/out events that determine if the mouse is hovering-over a Wrinkler
* As wrinklers are not appended to the DOM we us a different system than for other tooltips
*/
export default function AddWrinklerAreaDetect() {
l('backgroundLeftCanvas').onmouseover = function () { TooltipWrinklerArea = 1; };
l('backgroundLeftCanvas').onmouseout = function () {
TooltipWrinklerArea = 0;
Game.tooltip.hide();
for (const i of Object.keys(Game.wrinklers)) {
TooltipWrinklerBeingShown[i] = 0;
}
};
l('backgroundLeftCanvas').onmouseover = function () {
TooltipWrinklerArea = 1;
};
l('backgroundLeftCanvas').onmouseout = function () {
TooltipWrinklerArea = 0;
Game.tooltip.hide();
for (const i of Object.keys(Game.wrinklers)) {
TooltipWrinklerBeingShown[i] = 0;
}
};
}