index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
author | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-24 10:11:18 -0700 |
---|---|---|
committer | Catalin Mititiuc <webdevcat@proton.me> | 2024-04-24 10:11:18 -0700 |
commit | 3d2d5cad852a8dc5bd8f4f619b85775a3d1a09f6 (patch) | |
tree | 8c62236025c5eae7b054ced160a07cd02e720d8f /src/modules/counter.js | |
parent | 96e6f8a09afaf7bc729b7e14eb0d72dd372ca9fd (diff) |
WIP: hover over counter reveals firing arc working again
Diffstat (limited to 'src/modules/counter.js')
-rw-r--r-- | src/modules/counter.js | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/modules/counter.js b/src/modules/counter.js index 21a0238..3438566 100644 --- a/src/modules/counter.js +++ b/src/modules/counter.js @@ -61,29 +61,29 @@ export default class Counter { return pt; } - pointerOver(e) { - const { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, - cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); - - if (cp) { - cp.style.display = 'none'; - } - } - - pointerOut(e) { - let { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, - cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); - - if (cp) { - let isVisible = - document - .getElementById('toggle-firing-arc-vis') - .querySelector(`input[data-allegiance="${troopAllegiance}"]`) - .checked; - - cp.style.display = isVisible ? 'none' : ''; - } - } + // pointerOver(e) { + // const { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, + // cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); + + // if (cp) { + // cp.style.display = 'none'; + // } + // } + + // pointerOut(e) { + // let { number: troopNumber, allegiance: troopAllegiance } = e.target.dataset, + // cp = this.svg.querySelector(`#clip-path-${troopAllegiance}-${troopNumber}`); + + // if (cp) { + // let isVisible = + // document + // .getElementById('toggle-firing-arc-vis') + // .querySelector(`input[data-allegiance="${troopAllegiance}"]`) + // .checked; + + // cp.style.display = isVisible ? 'none' : ''; + // } + // } click(e) { if (e.target.classList.contains(selectedClass)) { |