diff --git a/src/ui/hotkeys.js b/src/ui/hotkeys.js index 356c69e3c..a67d9f3f2 100644 --- a/src/ui/hotkeys.js +++ b/src/ui/hotkeys.js @@ -239,7 +239,7 @@ export function getHotKeys(hk) { }, onkeyup() { hk.pressControlKeyUp(); - } + }, }, ControlRight: { onkeydown() { @@ -247,7 +247,7 @@ export function getHotKeys(hk) { }, onkeyup() { hk.pressControlKeyUp(); - } + }, }, Space: { onkeydown() { diff --git a/src/ui/interface.js b/src/ui/interface.js index b9a4d8371..0237054e4 100644 --- a/src/ui/interface.js +++ b/src/ui/interface.js @@ -2,6 +2,7 @@ import * as $j from 'jquery'; import * as time from '../utility/time'; import * as emoji from 'node-emoji'; import { Hotkeys, getHotKeys } from './hotkeys'; +import { adjustBrand } from '../script'; import { Button, ButtonStateEnum } from './button'; import { Chat } from './chat'; @@ -35,7 +36,7 @@ export class UI { * $activebox : Current active creature panel (left panel) container * $dash : Overview container * $grid : Creature grid container - * $brandlogo: Brand logo container + * $brandlogo: Brand logo container * * selectedCreature : String : ID of the visible creature card * selectedPlayer : Integer : ID of the selected player in the dash @@ -524,6 +525,9 @@ export class UI { e.preventDefault(); }); + // adjust brand logo on window resize + $j(window).on('resize', (ev) => adjustBrand()); + this.$dash.find('.section.numbers .stat').on('mouseover', (event) => { const $section = $j(event.target).closest('.section'); const which = $section.hasClass('stats') ? '.stats_desc' : '.masteries_desc'; diff --git a/src/utility/hex.ts b/src/utility/hex.ts index 8c3e3db63..232c14a57 100644 --- a/src/utility/hex.ts +++ b/src/utility/hex.ts @@ -565,13 +565,15 @@ export class Hex { if (this.overlayClasses.match(/reachable/)) { targetAlpha = true; this.overlay.loadTexture('hex_path'); - // hover when creature is inactive - } else if (this.overlayClasses.match(/hover/) - && this.displayClasses.indexOf(`creature player${player}`) === -1) { + // hover when creature is inactive + } else if ( + this.overlayClasses.match(/hover/) && + this.displayClasses.indexOf(`creature player${player}`) === -1 + ) { this.display.loadTexture('hex_path'); this.display.alpha = 1; this.overlay.loadTexture(`hex_hover_p${player}`); - // hover over active player + // hover over active player } else if (this.overlayClasses.match(/hover/)) { this.display.loadTexture('hex_path'); } else {