Port the options screen
Checks / web (push) Canceled after 0s

OPTION in the start menu runs _Option with the ROM's labels and settings,
OptionsControl's cursor wrapping and each option's bit handling. The four
option bytes live in the script state and saves, defaulting to
DefaultOptions. The battle style now decides whether a trainer's next
Pokémon brings an offer to switch, and the menu account whether the start
menu describes its items; the other settings are kept for later.

Closes #24

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Sébastien QUEROLandClaude Opus 5.5 committed 2026-10-02 10:47:11 +02:00
1 parent 47698565ab
commit c4cc0e756c
19 files changed
+732 -21

No files matched your search

+2 -1
View File
@@ -87,7 +87,8 @@ callee's ROM script in the event interpreter on the same draft. The world
keeps the card on screen (`world.pokegear`) during the call's texts.
`scripts/mom.ts` runs `BankOfMom` as a special; its amount box is a
`mombank` effect answered with buttons in the same way, and so are the
pages of `scripts/trainer-card.ts`. The world refreshes the card's play
pages of `scripts/trainer-card.ts` and the screen of `scripts/options.ts`,
whose option bytes live in the script state. The world refreshes the card's play
time, colon and badge step every tick; `world/game-time.ts` is the play
time (`wGameTime`), which the world advances two frames per tick.