Repository navigation
Main menu: the saved game's trainer card on the top screen - #284
Conversation
With a saved game to continue, the top screen showed the menu's GBA windows, the same entries the bottom screen has as buttons. It shows that game's trainer card now, in the bottom screen's style on the menu's backdrop (the Rental panel's top panel): where the game goes on and CONTINUE, name, ID, money, Pokedex, time, the trainer at twice his size and the badges. main_menu.c says when (CtrMainMenu_CardUp, 0095-main-menu-top-card.patch); the card fades with the game's picture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
The sync split 3ds_bottom_ui.c and changed the top panel: the bottom screen draws into the panel's canvas and the panel follows the game's fade itself (CtrTopPanel_Keep). The card is drawn straight into that canvas once, and its own copy and software fade are gone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
|
Thanks, @DannyM90, the trainer card on the top screen is a lovely touch! Two things before merging: (1) the card is drawn once via |
…o white The card's Pokédex count and stars are counted when the card is drawn, not taken from the field card's twice-a-second cache, so coming back to the menu never shows old values. B fades the game to white on its way to the title screen: the panel now follows it (CtrTopPanel_KeepWhite) as it already followed the fade to black (review on ZallaxDev#284). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
|
Thanks, glad you like it! Both points make sense, I'm working on them: the Pokédex count and the stars will be counted fresh when the card opens, and the card will follow the fade to white on B. I'll push to this branch after checking with and without a save, after Options, and back to the title with B. |
…rd counts afresh From the review on ZallaxDev#281 and ZallaxDev#284. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
|
Thanks a lot, @DannyM90! Built and checked in the emulator: the card shows the Pokédex count and stars on opening the menu and after coming back from Options, fades to white with B, and stays off with no saved game. Nice touch, merging. |
…axDev#269, ZallaxDev#270 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET # Conflicts: # 3ds_port/include/3ds_top_panel.h # 3ds_port/src/3ds_bottom_ui.c # tools/locales/french.json.gz # tools/locales/german.json.gz # tools/locales/italian.json.gz # tools/locales/japanese.json.gz # tools/locales/spanish.json.gz
…ove the manifests' spans Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
0095-main-menu-top-card.patch (#284) adds CtrMainMenu_CardUp above the span the Japanese manifest edits in src/main_menu.c, so its fingerprint no longer matched the patched tree. Moved with tools/rebase_locale_manifests.py; no span's text changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
Locales: move the Japanese span in main_menu.c past the main menu card (#284)
- public_sync: an integration commit is held when each file has what it adds; changelog credits beside the pull requests' own entries - Changelog: public pull requests #190 #209 #262-#300, by their authors - public_sync: dev takes integration's ported pull requests as their own commits; a conflict or unported pull requests are problems, not a line - Public export: the benchmark, profiling and macOS builder test tools (#293, #295, #300) - Public export: upstream.lock's Python 3.15.2 and Pillow 13.0.0 (#288, #289) - Harden Emerald 3DS runtime and builder workflows (#300) - Replace deprecated Pillow pixel reads in voxel tools (#294) - Add opt-in macOS standalone builder support (#295) - Locales: move the Japanese span in main_menu.c past the main menu card (#298) - Fly map: choose the destination with the +Control Pad (#267) - Bottom screen: a tap on the map that slides a little still goes on with a message (#281) - Summary: give the trainer memo room for a third line (#269) - Summary: show Pokémon status icons (#270) - Main menu: the saved game's trainer card on the top screen (#284) - Restore Japanese naming marks and full touchscreen rows (#275) - Speed up voxel generation to shorten development builds (#293) - Release: ship bottom/menu_top.bin with the engine files (#280) - Bag: planting a berry opens it in the bottom screen's window (#283) - Frontier Pass map: the picture half as big again, filling its plate (#282) - CI: support Ubuntu 26.04 with non-PIE sanitizer fixtures (#290) - Startup: the data pack errors and the START hint in French and Italian (#209) - Installation: step-by-step builder for Linux and macOS (#190) - Bottom screen: reuse unchanged wild-list snapshots (#273) - Upgrade release builds to Pillow 13.0.0 (#289) - Naming screen: a tab turns straight to its page (#287) - ci: upgrade GitHub Actions to latest tested releases (#292) - Generate map event IDs for standalone voxel host tests (#277) - Tests: update the voxel draft chunk fixture (#262) - Harden native string formatting and numeric input parsing (#279) - Build releases with Python 3.15.2 (#288) - Visible wild: roll the IVs right after the personality (PID/IV legality) (#266) - CI: use the release toolchain for 3DS builds (#286) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why
With a saved game to continue, the main menu's top screen shows the game's
windows: CONTINUE with the player, the time, the Pokédex and the badges, then
NEW GAME and OPTION. The bottom screen already has the same entries as its
buttons, so the top screen showed the menu twice, small and in the corner.
What it does
The top screen shows that saved game's trainer card instead, in the bottom
screen's style, on the menu's own backdrop (
menu_top.bin, the one the Rentalpanel uses):
Pokédex (once the player has one) and time
The entries stay the bottom screen's buttons; nothing changes in how the menu
is worked.
patches/pokeemerald/0095-main-menu-top-card.patch(src/main_menu.c):CtrMainMenu_CardUp(), true while the menu's tasks are up with a saved game(from its first highlight to its fade out). With no saved game the menu is
left as it is.
3ds_port/src/3ds_bottom_title_top.inc(new, included after3ds_bottom_factory_top.inc): draws the card once with the bottom screen'swriters into a 400x240 canvas and hands it to
CtrTopPanel. While the gamefades in or out, the card is faded the same way (
gPaletteFade), so itnever stays bright over a black screen.
3ds_port/include/3ds_game_views.h: the declaration.No locale manifest edits the part of
main_menu.cthis adds to.Testing
tools/bootstrap.py --makefrom a clean tree ondev01460a2 builds the3DSX without new warnings.
make -k verifyfails only atverify-voxel-relief, which fails the sameway on
devwithout this PR (Fix voxel relief test parsing after under-floor layers #276 fixes it).release_audit.py --strictisclean,
bottom_map_test.pypasses.photo below. I have not seen this version of it on a console.
Before / after