Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IV/EV Info on Summary Screen #6027

Open
wants to merge 51 commits into
base: upcoming
Choose a base branch
from

Conversation

khbsd
Copy link

@khbsd khbsd commented Jan 15, 2025

Adds a setting to enable viewing IVs and EVs in the Summary Screen.

Description

  • repurposed the PSS_LABEL_WINDOW_PROMPT_CANCEL window to be a general-purpose utility prompt window, with logic implemented to display the correct prompt on each page. this takes over for PSS_LABEL_WINDOW_PROMPT_RENAME, PSS_LABEL_WINDOW_PROMPT_INFO, and PSS_LABEL_WINDOW_PROMPT_SWITCH as well.
  • adds an #if section in src/graphics.c that only loads the alternate tileset when the setting is enabled.
  • adds functions ChangeStatLabel(), ClearStatLabel(), and WriteToStatsTilemapBuffer() to control which label gets shown for each set of data.
  • removes use of PutWindowTilemap() and ClearWindowTilemap() for the utility prompt when not needed/handled by other code.
  • added SUMMARY_SKILLS_MODE_STATS, SUMMARY_SKILLS_MODE_IVS, SUMMARY_SKILLS_MODE_EVS as different modes for new PokemonSummaryScreenData member sMonSummaryScreen->skillsPageMode.
  • refactored the loading of data into the summary struct so specific pieces can be buffered and printed
  • the utility prompt is now handled by ShowUtilityPrompt() and ClearUtilityPrompt(). ShowUtilityPrompt() takes an argument to illustrate what it's doing.

Configurable options:

  • show only IVs or EVs
  • show IV values instead of letter grades
  • only useable in the storage pc
  • flaggable
  • allows vanilla tileset to be loaded instead of modified one

Images

pokeemerald-250114-222257

People who collaborated with me in this PR

Discord contact info and PR thread

khbsd and others added 30 commits January 9, 2025 01:59
@Pawkkie Pawkkie added the new-feature Adds a feature label Jan 17, 2025
@khbsd khbsd marked this pull request as ready for review January 17, 2025 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants