Skip to content

Main menu: the saved game's trainer card on the top screen - #284

Merged
ZallaxDev merged 4 commits into
ZallaxDev:integrationfrom
DannyM90:feat/main-menu-top-card
Nov 20, 2026
Merged

ZallaxDev merged 4 commits into
ZallaxDev:integrationfrom
DannyM90:feat/main-menu-top-card

Conversation

@DannyM90

Copy link
Copy Markdown
Contributor

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 Rental
panel uses):

  • a header with the place the game goes on in and CONTINUE lit beside it
  • the card's rows as the bottom screen's card has them: name, ID No., money,
    Pokédex (once the player has one) and time
  • the trainer at twice the size, with the card's stars
  • the badges in a band below, won ones as the game draws them, the rest as dim shapes

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 after
    3ds_bottom_factory_top.inc): draws the card once with the bottom screen's
    writers into a 400x240 canvas and hands it to CtrTopPanel. While the game
    fades in or out, the card is faded the same way (gPaletteFade), so it
    never stays bright over a black screen.
  • 3ds_port/include/3ds_game_views.h: the declaration.

No locale manifest edits the part of main_menu.c this adds to.

Testing

  • tools/bootstrap.py --make from a clean tree on dev 01460a2 builds the
    3DSX without new warnings.
  • make -k verify fails only at verify-voxel-relief, which fails the same
    way on dev without this PR (Fix voxel relief test parsing after under-floor layers #276 fixes it). release_audit.py --strict is
    clean, bottom_map_test.py passes.
  • The same card, drawn by another path, has been on a 3DS in my own build:
    photo below. I have not seen this version of it on a console.
  • Checked the open and closed PRs and issues first: none of them covers this.

Before / after

titelmenue-vorher-nachher

DannyM90 and others added 2 commits November 17, 2026 19:17
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
@DannyM90
DannyM90 changed the base branch from dev to integration November 18, 2026 19:43
@ZallaxDev

Copy link
Copy Markdown
Owner

Thanks, @DannyM90, the trainer card on the top screen is a lovely touch! Two things before merging: (1) the card is drawn once via SnapshotCard, which only refreshes the Pokédex count and stars every 30 queries, so it can show stale values when you come back to the menu. Could you compute those without the cache when the card opens? (2) Pressing B starts a fade to white that the card doesn't follow. Worth checking: with and without a save, returning from Options, and going back to the title with B.

DannyM90 and others added 2 commits November 20, 2026 04:53
…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
@DannyM90

Copy link
Copy Markdown
Contributor Author

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.

DannyM90 added a commit to DannyM90/emerald-3ds that referenced this pull request Nov 20, 2026
…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
@ZallaxDev

Copy link
Copy Markdown
Owner

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.

@ZallaxDev
ZallaxDev merged commit c68a1b1 into ZallaxDev:integration Nov 20, 2026
5 checks passed
DannyM90 added a commit to DannyM90/emerald-3ds that referenced this pull request Nov 20, 2026
…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
DannyM90 added a commit to DannyM90/emerald-3ds that referenced this pull request Nov 20, 2026
…ove the manifests' spans

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PjZs53yVtumpNLmM8AycET
ZallaxDev pushed a commit that referenced this pull request Nov 21, 2026
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
ZallaxDev added a commit that referenced this pull request Nov 21, 2026
Locales: move the Japanese span in main_menu.c past the main menu card (#284)
ZallaxDev added a commit that referenced this pull request Nov 21, 2026
- 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>
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