From e09adfd5afe1c339b30ac7b546e307abb37e00d3 Mon Sep 17 00:00:00 2001 From: shweet Date: Tue, 27 Oct 2026 19:45:01 -0400 Subject: [PATCH] notes/systems/menu_pages.md: Repentance+'s stats, collection, bestiary, endings, options rows, key config, pause (PauseScreen_small), My Stuff, GameOver killer portraits, the quit popup and the menus' sounds, as isaac-classic rif/menus-pages transcribes them Co-Authored-By: Claude Opus 5.5 --- notes/systems/menu_pages.md | 90 +++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 notes/systems/menu_pages.md diff --git a/notes/systems/menu_pages.md b/notes/systems/menu_pages.md new file mode 100644 index 0000000..39c4fcb --- /dev/null +++ b/notes/systems/menu_pages.md @@ -0,0 +1,90 @@ +# Menu pages: stats, collection, bestiary, endings, options rows, key config, pause, My Stuff, death, quit popup, sounds + +Port: isaac-classic `src/game/menu/rebirth_pages.cpp` (logic), `src/app/rebirth_pages.cpp` (drawing), rif/menus-pages +(2026-10-27). X,Y below = MenuManager.ViewPosition + menu.Position (= -_viewPositionSet[index]). Action ids: 0x14..0x17 +MENULEFT/RIGHT/UP/DOWN, 0xe confirm, 0xf back, 0xb DROP, 0xc PAUSE, 0x1c MENUTAB. Menus update at 60 Hz; their sprites +advance on even framecounts. + +## Sounds (SoundEffects::Play 0x92dc30 through seed_fart_sound_override 0x956780; pitch 1, pan 0) +- MenuManager::SetState 0x98aa30: 8 BOOK_PAGE_TURN_12 on every change between two non-zero states (push 0x98ae20 when + the target differs, pop 0x98aec0 always). The only sound of Stats, Collection, Bestiary, Challenge, Save, Seeds. +- Menu_Game::Update 0x981140: 282 MENU_SCROLL (cursor), 283 MENU_NOTE_APPEAR / 284 MENU_NOTE_HIDE (Continue widget). +- Menu_Character::handle_input 0x94c580: 194/195 select left/right, 282 difficulty, 187 BOSS2INTRO_ERRORBUZZ locked + confirm, 8 seed view in/out; submit_seed 0x94d040: 8 valid, 187 invalid; DoPageSwap 0x94e210: 570 FLIP_DARK to + tainted, 569 FLIP_LIGHT back; Update 0x949c20: 571 MENU_RIP on CharacterMenuBG's "Sound" event, 8 when SwapOut ends; + UpdateRotations 0x94d500: 195 each random spin step. +- Menu_Options::Update 0x9b23a0: 237 PLOP on SFX, MapOpacity, HUDOffset changes (confirm too); nothing else. +- Menu_KeyConfig::Update 0x8d8b00: 187 when Back is refused (a listed action unbound). +- Menu_Cutscenes::Update 0x8ced40: 187 confirming an unseen ending. +- PauseScreen::Show 0x9b7680: 17 PAPER_IN vol 0.7; hide 0x9b7500: 18 PAPER_OUT vol 0.7; My Stuff 0x8d3890: 282 on a + selection change. The title's quit popup plays none. + +## Title quit popup (MenuManager::Update 0x9897d0 case 1, back) +MessagePopup 0x9c25e0, TeamMeatEx12, add_yes_no_buttons 0x9c3d10: "##PLATFORM###CONFIRM_EXIT_GAME" ("Are you sure you +want me to die?"), YES (id 1, spacing 35), NO (id 2), cursor starts on NO, back = NO. Modal: the menus freeze. Drawn +code-side (popup_render 0x9c0c30) from gfx/ui/Popup_White.png, width 300, padding x 25, top 15, height 116.75; lines +centred, y 15 / 69 / 88; centre (W/2, H/2 - 9 + slide). Dim black 0 -> 0.4 over 100 ms; shadow +5,+5 black 0.4. Show +0x9c12d0: slide y -223 -> 0 over 112 ms with scale (0.6,1.4) held 96 ms, then (1.2,0.8) over 32, (1,1) over 32 (idle +at 160 ms); hide 0x9c14c0 reverses (16 hold, 32, 32, slide 0 -> -233 over 112 ms, removed after ~176 ms). Cursor arrow +(100,28)-(112,43) at line x - 20, y + 2. Text colour (0.2157,0.1686,0.1765). YES closes the game. + +## Menu_Stats (state 9, set (480,-1350)); statsmenu.anm2 Idle +- Update 0x9ecbc0: items = collection bytes set (0..732); secrets = achievements unlocked; deaths EventCounter 10, mom + kills 1. MenuItem3 frame 1 (dim) with no secrets; Cursor layer frame = selection. +- update_stats_screen 0x9ede60: confirm 0 collection (8), 1 endings (0xd), 2 achievements in place, 3 bestiary (0xe), + 4 online (0x16); up/down wrap 0..4, skipping 2 with no secrets. +- Render 0x9ecdd0 / render_number 0x9ed5a0: numbers at (X+40, Y+5+22k) k = deaths, items, mom kills, secrets, best + streak (23), online best streak (498); Counter layer frame = digit, right to left, each -11 x, -1.5 y. + +## Menu_Collection (state 8, (0,-1080)) 0x94e910 / 0x94ef10 / reset 0x9502c0 +List: collectible ids in order with gfx and not hidden (717). 20 x 6 cells a page. Held directions, dominant axis, repeat +at 0 then >19 every 4; wrap across pages as transcribed in the port. Cell centre (X+96+16c, Y+78+16r): seen -> Death +Screen Items frame id-1, unseen -> Item layer frame 2. Cursor: 2 px outline #362f2d around the 16x16 cell. Selected seen +item: its 32x32 gfx at (X+96, Y+199), name and description TeamMeatEx12 #787261 at (X+130, Y+199) and 15 below. +PreviousPage visible past page 0, NextPage before the last; page bullets at (X+414, Y+110 - s*last/2 + i*s - i/last), +s = 100/(last+3), PageBullets frame 0 selected, 1 others. + +## Menu_Bestiary (state 0xe, (480,-1670)) list 0x8c5e70, update_cursor 0x8c87b0, Render 0x8c66a0, LoadPreview 0x8c8c70 +Kept: entities2.xml entries with portrait >= 0, baseHP != 0 and (parent="T.V" folds into the parent, not +listed); bosses (boss="1") apart. Map order (type, variant, subtype). Regular pages 4x4 (cells X+42+40c, Y+120+40r, +Death Enemy frame portrait, unseen 152), then boss pages 2x2 (X+60+80c, Y+142+80r, Boss frame). Selected alpha 1, others +0.5. Preview at (X+360, Y+150) + transform offset, scale; text TeamMeatEx12 (0.2,0.2,0.2) centred at X+360: name Y+160 +(scaled to 200 wide), at 0.5: "HP: %.f" Y+180, "Hits" 190, "Deaths" 200, "Kills" 210, "Encounters" 220. Unseen: frame +152 at (X+340, Y+120) and "Unknown" at Y+120. Repeat: n%15 / >60 %10 / >180 %5. Cursor1/Cursor2 arrows by page. + +## Menu_Cutscenes / endings (state 0xd, (-480,-270)) 0x8ced40 / 0x8cf0e0 +24 entries, 4 columns of 6: Epilogue (3), End1..16 (4..19), End 17 (20), End 18 Greed (21), End 19 Greedier (23), +End 20 Void (22), End 21 Mother (24), Final Beast (26), Credits (2). Cursor layer frame = entry. Up/down +-1, left/right ++-6 round 24; repeat 0 then >49 every 10. Unseen labels at alpha 0.5; confirm on one buzzes, else ShowCutscene. + +## Menu_Options rows (load_graphics 0x9b4810, Update 0x9b23a0, Render 0x9b31c0) +Main menu: Controls, SFX, Music, MapOpacity, Fullscreen, Filter, Gamma, Rumble, ItemDescriptions (achievement 641), +Popups, ActiveCam, ExtraHUD, HUDOffset, FoundHUD, ChargeBars, BulletVisibility, JacobEsauControl, then online rows. Pause +(mode 1): ChangeController first instead of Controls, no online rows. ExtraHUD (x+step+3)%3, OnOff frame = mode. +Main menu scroll: set[10].y = -1080 - (min(sel, N-4) - 3)*20 past row 3 (scroll_options_menu 0x98af10). + +## ControllerSelect (0xb, (-480,-1755)) 0x8c9530 / 0x8c99b0; KeyConfig (0xc, (-960,-1890)) 0x8d8b00 / 0x8d9340 +Devices listed at (X+265-4i, Y+60+20i) TeamMeatEx12 0xff362f2d; Cursor layer at +(-4s, 20s). Key config rows by action +table 0xb24010 (walk up/down/left/right, shoot up/down/left/right, bomb, item, pill, drop, map, emote, descriptions, +fullscreen, restart, mute, pause) + reset; pads the first 15. Label (X+80, Y+58+19r) (pad 24), slot 0 right-aligned at +X+400, slot 1 at X+300; both unbound: red (0.8,0.2,0.2). Cursor flipped at (X+480-100col, Y+2+19r) (+ its (74,70)); +reset row (X+75, Y+390); waiting tints it red 0.686. Confirm waits; the next key clears duplicates and binds. View y +-1890, -1890-(sel-2)*19 up to row 12, else -2118. + +## PauseScreen (Show 0x9b7680, Update 0x9b5d20, Render 0x9b7190) +Show sets _menuType 1: PauseScreen_small.anm2 at (W*0.7, H*0.975), Appear then Idle with the Cursor overlay, 4 rows: +options, my stuff, resume, exit (cursor starts 2). Seed text at null Seed (render_seed_paper 0x9b8130), Blood on Hard. +PauseScreen.anm2 (stat meters, My Stuff strip) is dead code in 1.9.7.17. + +## My Stuff (PauseScreen_MyStuff Init 0x8d2ca0, update_items_page 0x8d3890, render_items_page 0x8d3640) +pausescreen_mystuff.anm2 at (W/2-160, H/2-136). Grid 6 x 6 (20 px) of the owned collectibles in pickup order then +trinkets, icons Death Screen Items/Trinkets frame id-1 at page + (18+gx, 41+gy) top-left; Cursor layer frame k. Arrows +by scroll; left/right +-1, up/down +-6; repeat at 1 then >30 every 15. Item at CollectibleTitle (145,8) 32x32, name +34,+7 +scale 0.625 0xff362f2d, description at CollectibleDesc (167,48) width 130 scale 0.5. + +## GameOver (Show 0x9997c0, Render 0x998880) +Killer: entities2 `portrait` of the last damage source (type, variant), else its spawner's; Boss layer when boss="1", +else Enemy; hazards: bomb 65, spikes 66, cursed door 117, poop 67, TNT 113, fire 68, devil 110, explosion 65, timer 112, +IV bag 114; else 149 unknown. Location by stage (1-2:0 3-4:1 5-6:2 7-8:3 9:5 12:6 13:11 else 4; alt path 7..10). +Items: history's collectibles (no ownership check), at most 16, Death Screen Items frame id-1 from centre (W/2+16, +H/2+16), each +16 x +2.5 y, past 128 x: -132, -4.