Technosorcery / sd2snes-lttp-rando-tracker

Legend of Zelda: A Link to the Past randomizer tracker that works via SD2SNES serial connection
MIT License
11 stars 4 forks source link

Highlight location/dungeon on hover #430

Closed jhelwig closed 4 years ago

jhelwig commented 4 years ago

This is pretty straightforward for the locations, but is a bit more involved for the dungeons. Because the dungeons are nested spans, we'll probably need to do something in JavaScript to make sure that the dungeon is highlighted regardless of whether the cursor is over the "dungeon" or the "boss".

jhelwig commented 4 years ago

https://michaelnthiessen.com/hover-in-vue/ appears to have some good ideas on how to handle this. A combination of toggling a data member of the component, and using that to toggle whether the "hover" class is active that changes the background image.

jhelwig commented 4 years ago

https://michaelnthiessen.com/dynamically-add-class-name/ also appears to be a handy resource.

jtappa commented 4 years ago

Will be resolved by https://github.com/Technosorcery/sd2snes-lttp-rando-tracker/pull/494