Skip to content

Extensive rework: added a sidebar, bottom panel, options menu and more#48

Open
Eruyome wants to merge 81 commits into
roguedex-dev:mainfrom
Eruyome:main
Open

Extensive rework: added a sidebar, bottom panel, options menu and more#48
Eruyome wants to merge 81 commits into
roguedex-dev:mainfrom
Eruyome:main

Conversation

@Eruyome

@Eruyome Eruyome commented Jul 30, 2024

Copy link
Copy Markdown
Collaborator

Reworked extension from the ground up. It now has:

  • An options menu that allows lots of customization.
  • A sidebar and bottompanel as an alternative way to display pokemon information. Sidebar can display all pokemon of both parties at once, with different options to change what is displayed (and how) depending on the number of pokemon currently on the battlefield. Sidebar shows pokemon specific and global battle modifiers.
  • More tooltips that show more detailed and varied information about enemy and ally pokemon (level, generation, region variant, shiny, moves, fusion details, luck, friendship exp and more).
  • Special backgrounds for pokemon images for legendary, mythical, ultra beast, paradox pokemon.
  • Comparisons of the enemy pokemons IVs and your starter pokemons to show whether an improvement can be gained via catching.
  • Saving of overlay card positions.
  • Minified version of the overlay card.
  • Scaling options for all UI elements, opacity options for the overlay cards.
  • "Properly" combined fusion images (top half of the first, bottom half of the second pokemon).
  • Many more small details, improvements and fixes.

Project now uses lit-HTML for better UI updating.
All calls to pokeapi have been removed in favour of using static data files.
Project uses node to add linting, styling and other development features (including githooks). More details found in readme.

Continuation of #37

devingearing and others added 30 commits May 19, 2024 15:46
Sidebar shows enemy and ally pokemon cards, all at the same time.
Sidebar can be toggled on/off in the settings menu.
Sidebar can be positioned left or right off the the game app, can be set in the options menu.
Showing/hiding enemy or ally party in theoptions menu also affects what's being displayed in the sidebar.
While the sidebar is enabled/shown, the overlay enemy and ally pokemon cards are hidden via css classes.
… the sidebar.

Quick and dirty implementation. But that information (x4 dmg, x0.25) was sorely missing.
…ar etc); fixed PokemonId conversion list.

Passing the pokemon species id to the convertPokemonId() function works in some cases (getting the numeral id for the correct sprite), but doesn't work when you want to get the string pokemon name/identifier that pokeapi uses from the I2P map back. That name also wasn't returned in the proper format for variant pokemon.
Removed IV color coding for ally pokemon, made some small readability improvements.
Added a trigger to change the sidebar pokemon card style for battles involving more than 8 pokemon (hide IVs and make things more compact), this should only affect trianer battles. Might need improvements for smaller screens.
Didn't work with something like `galar-mr-mime`.
…k, keyboard hotkey and gamepad buttons (simultaneously).

Not fully tested. Doesn't seem to cause any issues simply by existing though.
No formatting changes, not all warnings resolved, just errors.
… compact. Old one can be switched to via css if needed.
Eruyome added 30 commits June 11, 2024 21:58
…ng option; added different css classes for desktop/mobile (styling WIP)
…rds (desktop, kept it for mobile for now; fixed saving the wrong opacity values
…) using the wrong basePokemon (non-variant instead of variant)
…ids back to get the correct save data for their starters
…display fallbacks (no savedata found); small fixes
…mproved image drawing, fixed some caching issues
…nd include tags for ultra beasts and paradox pkemon
… effects to overlay cards; fixed some linting
… variant); fixed some region issue in the data set
…rage); added card repositioning if outside the window viewport.
Merge updates from Feature dev branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants