Berny23 / LD-ToyPad-Emulator

Toy Pad Emulator for Lego Dimensions (Unofficial Fan Project)
https://github.com/Berny23/LD-ToyPad-Emulator
MIT License
249 stars 43 forks source link

Add filters for world and abilities #72

Closed benlucaslaws closed 2 years ago

benlucaslaws commented 2 years ago

This PR adds two additional filters - one to filter by world and one for abilities. These filters apply to the toy box (hide tags that do not match the filter), the token creation menus (hide menu items that do not match) and the toy pad (darken tags that do not match the filter, but still allow them to be interacted with).

The abilities are based on the in game descriptions, so may be missing abilities if an ability is not listed in game. I've used a single ability name where abilities were referred to by multiple names in game (eg: Flying and Flight)

This also slightly tweaks the responsive layout breakpoint so that the vertical layout is used if the viewport is narrow enough to limit the toybox to a single vertical column of tokens, and makes sure that the full toypad is visible on screen provided the viewport is wider than the toypad itself.

Berny23 commented 2 years ago

Wow, thanks for your hard work! 💙

cort1237 commented 2 years ago

This is great! And excellent work cleaning up the css for the responsive layout & filter. CSS was slowly becoming my enemy trying to get that to work right 😵‍💫.

Luigimeansme commented 2 years ago

Beautiful work again Ben! Just like your last pull, this one was a very nice addition to an already awesome piece of software, and I'm excited to see where it goes from here!