From 6d1c269859d1ea74ad795f66191d797ffc557f37 Mon Sep 17 00:00:00 2001 From: shweet Date: Fri, 30 Oct 2026 10:44:01 -0400 Subject: [PATCH] notes: Repentance+'s item info panel (InfoDisplay) and its names --- db/names.tsv | 32 +++++++- notes/README.md | 1 + notes/systems/info_display.md | 143 ++++++++++++++++++++++++++++++++++ 3 files changed, 174 insertions(+), 2 deletions(-) create mode 100644 notes/systems/info_display.md diff --git a/db/names.tsv b/db/names.tsv index 16b5d76..4b7366b 100644 --- a/db/names.tsv +++ b/db/names.tsv @@ -1251,7 +1251,7 @@ 00471050 NpcAI::ENTITY_GEMINI Gemini (79) inline case: after FireProjectiles, variant < 10 -> this (variants 10..19 Contusion/Suture -> 00471cc0); anims Hori/Vert/WalkHori/WalkVert/IdleHead/RageBody, m_Child downcast, SetBossColorIdx, PathFinder::FindGridPath 004b0a30 NpcAI::ENTITY_DOGMA_tv 950 Dogma block 006c40c7 switches on variant-1: variant 1 -> this, variant 2 -> 004ae4d0; anims Destroyed/Shoot/Transition, ChildNPC, RemoveStatusEffects 008453c0 PlayerHUD::RenderActiveItem (slot, ANM2*, layout, size, alpha): BarEmpty/BarFull/BarOverlayN charge bar layers, GetTotalActiveCharge/GetActiveMaxCharge, ItemConfig::GetCollectible, HasPlayerForm; zhl sig missed -00854940 InfoDisplayConfig::parse_item_node ? parses info_display.xml item nodes: id/info/text with player/notplayer/collectible/notcollectible/trinket/nottrinket/achievement/tag conditions; caller 0084eba0 reads cards/collectibles/pills/trinkets groups, ECX=Manager+0x2a530 +00854940 InfoDisplayConfig::parse_item_node the info_display.xml "cards" group parser (kind 3, PocketItemConfig::GetName); ? parses info_display.xml item nodes: id/info/text with player/notplayer/collectible/notcollectible/trinket/nottrinket/achievement/tag conditions; caller 0084eba0 reads cards/collectibles/pills/trinkets groups, ECX=Manager+0x2a530 009b23a0 Menu_Options::Update called from MenuManager::Update (009897d0) with ECX=MenuManager+0xcecc (zhl _menuOptions 0xce8c+0x40) and +0xeb50 (second options instance); "Lua is resetting!", mods toggle -> reload xml/anm/texture caches, OptionsConfig::Save/SetMusicVolume 008d8b00 Menu_KeyConfig::Update ECX=MenuManager+0xd284 in MenuManager::Update (zhl _menuKeyConfig 0xd244+0x40); "ActionId is out of range", input vtable polling 008ccc70 Menu_OnlineMode::update_mode_select ? ECX = MenuManager+0xedd8; parent 008cbfe0 is case 0x15 of MenuManager::Update (Menu_Online is +0xda98) (was Menu_Online::update_mode_select) @@ -3033,7 +3033,7 @@ 0082e810 std::_Partition_by_median_guess_unchecked<16byte> MSVC std::sort partition with predicate (param_2 code*), stride 0x10, median-of-3/ninther (FUN_0082eb20) when >40; only caller std::_Sort_unchecked<16byte> 00823f50 Room::attach_minecarts Room::Init calls it; for each room entity (+0x125c list, types 10..0x3e7 or player in deathmatch) with a spawn grid index, checks the 4 neighbours in the rail grid byte array Room+0x746c and calls Entity::GiveMinecart, special case type 0x3c5 variant 10; Entity_NPC::update_move_direction_anim 005a7010 NpcHelper::visage_spawn_particles only called from NpcAI::ENTITY_VISAGE (x2) and NpcAI::ENTITY_VISAGE_mask (x2); spawns 5..8 effect 1000.59 particles around ECX position along the EDX direction with random velocity, sets +0x474 spin sign and 30..39 timeout -0084dc00 StatsPanel::add_stat_line called 4x from each StatsPanel::set (lines Speed/Tears/Damage/Range/Shot Speed); formats the delta as '+%.2f' (green) or '%.2f' (red), InfoDisplayText::constructor, pushes a 104-byte InfoDisplayEntry into the vector at +0x20 +0084dc00 StatsPanel::add_stat_line called 6x from each StatsPanel::set (" Speed"," Tears"," Damage"," Range"," Shot Speed"," Luck"; no line when the delta is 0); formats the delta as '+%.2f' (green) or '%.2f' (red), InfoDisplayText::constructor, pushes a 104-byte InfoDisplayEntry into the vector at +0x20 008ffc70 NetDesyncHandler::write_desync_diff only caller NetDesyncHandler::Update; 'Desync detected on frame: %d ... Number of players', '[Frame: %d] Missing Desync Frame States from user "%s"! Cannot create Desync Diff', SaveDataManager::open_file_write desync_diff.txt 008e2c20 std::vector::_Emplace_reallocate MSVC vector growth with element size 0x18 (max 0xaaaaaaa), new element = KAGE::Network::Multiplayer::ConstLobby vftable + shared_ptr::assign + 8 bytes; caller FUN_008e1fb0 (lobby list builder, 'list too long', lobby_password) 009150d0 std::map::try_emplace ? MSVC _Tree insert on u64 key (+0x10/+0x14), max_size 0x11a7b96 (0xe8-byte node) whose value has four KAGE::Filesys::BufferedStream members, i.e. the map NetplayManager::read/write_player_game_states_message walk; callers FUN_0090c740 (x3) and NetplayManager::read_player_game_states_message @@ -3443,3 +3443,31 @@ 00813d00 Room::greed_shop_slot_type ? ECX is a seed; seed % 10 -> 3,1,0,4,8,10,5,2,6,11: Room::init_shop_item_slots 00813d90 Greed branch fills the last four shop slots with it 00501e10 NpcHelper::bouncer_death_gib Entity_Effect::CreateTimer callback (3 calls, 4 apart) in NpcAI::ENTITY_BOUNCER 00501f30 inflated death: a 1000.2 blood gib at the timer position, velocity RandomVector * 12 rand, sprite offset y -26 (pass9_u2) 004314b0 Entity::AddVelocity_divided velocity(0x360) += vec * speedMult / friction (the Lua binding); 00431450 is the undivided one (boss_fidelity_4) +0084d740 InputAction::get_name action id (ECX) -> config name: 0 Left .. 0x1e EmoteMenu, 0x1f "ToggleDescriptions"; input_config_save/load_xml_node (notes/systems/info_display.md) +00840250 ItemInfo::measure ? (out Vector*) ECX = item info object (HUD+0x5c80): calls render_pocket_item_info(0, box{x=y=0, scale 1.0, white, width 0x86=134}, ItemInfo::measure_line, out) and returns out+0xc/+0x10 = max right/bottom; HUD::update_item_info sizes the popup with it +008402f0 ItemInfo::measure_line ? line callback of the measure pass: Font::measure_rich_text(info+0x384, text, (boxX+width)-x, scale), grows out max right/bottom, advances box y by the text height +00840370 ItemInfo::render_popup_callback ? popup render callback (desc +0x74) set by HUD::update_item_info: origin = Popup::get_center - size*0.5 - (4,6), wrap width = (uint)info+0x37c (measured width), text alpha = popup fade (+0x118), then render_pocket_item_info(1, box, ItemInfo::render_line, info) +008404a0 ItemInfo::render_line ? line callback of the draw pass: rich_text_render(info+0x384, text, pos, colour box+0x14, scale box+0x10, (boxX+width)-x), advances y by the drawn height +0083d6e0 ItemInfo::reset ? clears the item image (+8), pickup (+0) and entry (+4), PopupManager::close(popup id +0x378, -1), id = -1, clears the RichText icon image cache (+0x3e8 -> +0x120 map); HUD::update_item_info when no pickup qualifies +0083d760 ItemInfo::is_collectible_seen ? (pickup): false only for a collectible (variant 100) with 0 < subtype < 0x2dd whose PersistentGameData collection byte (+0xae8+id, set by AddToCollection) is 0 -> "???" / ##GAME###ITEM_INFO_UNIDENTIFIED popup +0083d7c0 ItemInfo::is_pickup_known ? (pickup): pill -> ItemPool identified flag of colour (subtype&0x7ff, max 14); card -> false when priced (+0x534) and not 41/43/45/47/49/50/51/78/80/81..97, or when the player is not flying and Room::is_reachable_from_player fails; else true. HUD stores !result in entry+0x44 +0084f640 InfoDisplay::get_collectible std::set-style find in the map at +0 by id; missing -> default entry at +0x20 +0084f680 InfoDisplay::get_trinket find (id & 0xffff7fff) in the map at +8; missing -> default entry +0x20 +0084f6e0 InfoDisplay::get_pill find (effect & 0xfffff7ff) in the map at +0x10; missing -> default entry +0x20 +0084f740 InfoDisplay::get_card find id in the map at +0x18; missing -> default entry +0x20 +00856100 std::map::operator_subscript ? node from FUN_00856400 + 0x14; InfoDisplay::add_item_entry and the xml loaders +0084f380 InfoDisplay::add_card_entry ? (PocketItemConfig*, withDesc) from ItemConfig::load_pocketitems_xml (mod cards) +0084f4e0 InfoDisplay::add_pill_entry ? (PocketItemConfig*, withDesc) kind 2, from ItemConfig::load_pocketitems_xml (mod pills) +0084ea90 StatsPanel::preview_collectible ? snapshot stats, player+0x2ef4 = id (+0x2ef0 = 1), cache |= 0x41f, EvaluateItems, record deltas, clear +0x2ef4, EvaluateItems again +0084eb10 StatsPanel::preview_trinket ? as preview_collectible with player+0x2ef8 = id (| 0x8000 when golden) +0084e9d0 StatsPanel::snapshot_stats ? (isAfter) six trackers at entry+0x4c (stride 0x14): speed +0x1568, tears 30/(maxfiredelay+1), damage +0x1470, range +0x1480/40, shotspeed +0x1464, luck +0x156c +0084d6b0 StatTracker::set ? (isAfter, value in xmm1): 0 stores the baseline; 1 sets delta = new - old and timer 150 when |delta| >= threshold (0.01) +0084e820 InfoDisplayEntry::count_lines ? (player, subtype): id 0 -> number of +0x2c lines, else transformation matches + stat lines + visible +0x2c lines; pause-screen item pages +0084dbc0 InfoDisplayText::destructor ? frees the six int vectors and the string of a 0x68-byte line +009c06a0 Popup::get_center ? (out Vector*) (W*0.5 + childPos.x + off.x (+0x48), H*0.5 + childPos.y + off.y (+0x4c) - 9) in screen points +009c3940 PopupQueue::find ? popup pointer for an id under the queue mutex, or 0; HUD::update_item_info +009c3890 PopupQueue::render_layer ? renders the popups whose layer (+0x3c) equals the arg; Game::Render calls it with 0, 1 (after HUD::Render: the item info popup) and 2 +009c2700 MessagePopup::add_text ? (text, offset, align, KColor) pushes a 0x30-byte text line (id -1) into the descriptor +0072fe80 ItemConfig::collectible_has_tags ? ECX = collectible id, (tagsLo, tagsHi): GetCollectible(id)->tags & mask != 0; transformation matching for the item info panel +0072fec0 ItemConfig::trinket_has_tags ? ECX = trinket id (& 0x7fff), (tagsLo, tagsHi): trinket +0xb8/+0xbc tags & mask != 0 +00823be0 Room::is_reachable_from_player ? (Vector* pos, player (null = player 0), useCurrentPos): grid cell of pos must be collision 0 or 5, then Room::is_obstacle_path_valid(pos cell, player cell, 3); ItemInfo::is_pickup_known (cards) diff --git a/notes/README.md b/notes/README.md index 470396f..aca0760 100644 --- a/notes/README.md +++ b/notes/README.md @@ -15,6 +15,7 @@ stored here: `./decompile.sh 0xADDR` prints it from the dump, with the current n | `systems/side_view.md` | Room type 16's side view: gravity cells (Room::Init, GridEntity_Gravity, FLAG_APPLY_GRAVITY), the player's 0.225 fall, ladders (decorations 10-30), make_wall's openings, tiles, exits and enter positions, tears/projectiles/pickups/bombs, We Need To Go Deeper's crawl space, Room::Init's random decorations | | `systems/ascent.md` | Repentance's Ascent: pre-ascent (flag 0x2f, the photo door), Dad's Note's drop (the Mausoleum's subtype 89 boss room), its white-out (Game+0x67788) and StageTransition mode 5, Game::SaveBackwardsStage, Level::generate_backwards / place_rooms_backwards, the heaven door, SetNextStage on the Ascent | | `systems/use_dispatch.md` | id -> case of UseActiveItem / UseCard / UsePill from the exe's jump tables (`use_dispatch.tsv`, `find.sh active/card/pill`), the slot-labelled second active switch, the common tail (TemporaryEffect), actives without a case | +| `systems/info_display.md` | Repentance+'s item info panel (InfoDisplay): info_display.xml schema and line visibility, composed lines (pickup hearts/coins, stat preview, Spindown, transformations), trigger/unlock/toggle, popup fade/placement/9-slice, layout numbers, pool icons | | `systems/rules_pickups.md` | rules research, pickups: Room::SpawnClearAward's branches and RoomClear_PickVariant's bands and luck, Pickup_PickVariant's random subtype odds (5.0/10/20/30/40/50/69/90), GetChestLoot's chest tables, tinted rock drops, ChampionDrop's per-colour drops, and the differences from the Flash engine | | `systems/rules_floors.md` | rules research, floors: generate_dungeon's room count/dead ends/difficulty windows, place_special_rooms' order and odds (dice in the sacrifice slot, curse room unrolled, boss challenge on even stages, chest/arcade, secret room scoring and exclusions, Greed takeover), GetDevilRoomChance, CanSpawnDevilRoom, angel chance and Krampus, devil prices, Level::Init's curse roll; differences from the Flash engine | | `systems/rules_economy.md` | rules research, economy: shop slots/prices/sale (Room::init_shop_item_slots 0x813d90, GetShopItemPrice 0x8151e0, ResolveHeartSubType 0x816250), shop placement/level, slot/fortune/beggar/devil beggar/blood/shell payouts (Entity_Slot::Update 0x65d950, HandleCollision 0x6627e0, break drops 0x663aa0), ItemPool draw (GetCollectible 0x733610, pick_weighted 0x732fa0) and room -> pool | diff --git a/notes/systems/info_display.md b/notes/systems/info_display.md new file mode 100644 index 0000000..b74ae3b --- /dev/null +++ b/notes/systems/info_display.md @@ -0,0 +1,143 @@ +# Item info panel ("InfoDisplay"): Repentance+'s in-game item descriptions + +The dark box under the HUD that names the nearest pedestal item, trinket, pill or card and lists bullet lines +(transformation progress in cyan, stat changes, info_display.xml text, item pool icons). v1.9.7.17. +Verified = read in the decompile/asm. "Inferred" is marked. + +## Objects +- `Manager::_infoDisplay` (Manager+0x2a530): four `std::map`: +0 collectibles, +8 trinkets, + +0x10 pills (key = pill EFFECT), +0x18 cards; +0x20 default entry (id 0) returned for a missing id. + Lookups InfoDisplay::get_collectible 0x84f640, get_trinket 0x84f680 (id & ~0x8000), get_pill 0x84f6e0 + (& ~0x800), get_card 0x84f740. Destructor 0x950510. +- InfoDisplayEntry (0x114, ctor 0x84dad0, assign 0x84f2e0): +0 kind (0 collectible, 1 trinket, 2 pill, 3 card), + +4 id, +8 std::string name (title), +0x20 vector stat lines, +0x2c vector XML lines, + +0x38 vector extra (Spindown Dice), +0x44 byte isUnknown, +0x48 Entity_Player* (stat preview), + +0x4c 10 stat trackers x 0x14 {cur, delta, prev, threshold 0.01, timer} (6 used). +- Line (0x68, InfoDisplayText ctor 0x84da20, copy 0x8568a0, dtor 0x84dbc0): +0 std::string rich text, + vector +0x18 player, +0x24 notplayer, +0x30 collectible, +0x3c notcollectible, +0x48 trinket, + +0x54 nottrinket, +0x60 int achievement, +0x64 int tag. +- Item info object = HUD+0x5c80 (ECX of HUD::update_item_info 0x83c8d0; misnamed PlayerHUD:: functions take it too): + +0 nearest Entity_Pickup*, +4 InfoDisplayEntry*, +8 item image (collectible/trinket png), +0x10 ANM2 (pill/card + entity anm2, "Idle"), +0x124 ANM2 gfx/ui/ui_charge_icons.anm2 "ChargeIcon" (AnimationState +0x154), + +0x264 ANM2 gfx/ui/minimap_icons.anm2, +0x378 popup id (-1 = none), +0x37c/+0x380 measured w/h, + +0x384 RichText font/TeamMeatEx/TeamMeatEx12.fnt with scale +0x3ec = 0.9 (0x3f666666), icons gfx/ui/text_icons.anm2. + HUD::load_item_info_graphics 0x83c5f0 loads them. + +## Data: info_display.xml (InfoDisplay::load_xml 0x84eba0) +Called by Manager::load_configs and per mod by ModManager::LoadModContent. Base load first fills every map from the +configs: collectibles 0..732 (and glitched ids) via add_item_entry 0x84f0a0, trinkets 0..189, cards 0..97, pill +effects 0..49 (name = config name). Groups (no root element): `collectibles` 0x850480, `trinkets` 0x851b20, +`pills` 0x853180, `cards` 0x854940. Per `` the entry is replaced; name = +GetLocalizedName (collectible/trinket, via describe_pickup_stats 0x84f780) or PocketItemConfig::GetName; every child +is an info line (`text`, comma lists `player notplayer collectible notcollectible trinket nottrinket`, ints +`achievement`, `tag`). Mods: collectible/trinket ids go through the mod id map; unmapped skipped. An entry without +XML (base) keeps nothing but the automatic pickup lines; add_item_entry(item, 1) adds items.xml desc (glitched items). +Base file: 719 collectibles, 181 trinkets, 50 pills, 97 cards, 3637 lines; `achievement` unused in base data. + +```xml + + + + + + + + + ... + + + + + + +``` + +### InfoDisplayItem::is_line_visible 0x84e5b0 (index, player, flags = pickup subtype) +All must pass: default entry (id 0) -> visible; `player` non-empty -> player type in it; `notplayer` not; +`collectible` all held (HasCollectible(id,0)); `notcollectible` none; `trinket` all (HasTrinket(id,0)); `nottrinket` +none; achievement 0 ok, negative ok except -2 (always hidden), < 0x282 ok if unlocked or (state 2 and daily/debug); +tag 0 always, else by kind: collectible ignores; trinket 1 = golden (subtype & 0x8000) only, 2 = not golden; pill +1 = horse (& 0x800) only, 2 = not horse; card 1 = only difficulty 2/3 (Greed/Greedier), other tags shown. + +### Composed lines +- describe_pickup_stats 0x84f780 (collectible/trinket item config): M = addMaxhearts>>1; M>0: "+M health" if + addHearts >= addMaxhearts else "+M empty red health"; addHearts>0: <24 -> R = addHearts/2 - M, R>=1 "+R red heart" + (+"s" if R!=1); >=24 "Heals all red hearts"; soul "+n/2 soul heart" (+"s" unless n==2); black likewise; "+n bomb", + "+n key", "+n coin" (+"s" if n>1). +- Stat preview StatsPanel::set 0x84dea0 (in-game) / 0x84e200 (pause): evaluates the player with and without the item + (preview_collectible 0x84ea90: player+0x2ef4 = id; preview_trinket 0x84eb10: +0x2ef8 = id|0x8000 golden; cache + 0x41f) and StatsPanel::add_stat_line 0x84dc00 adds, for " Speed", " Tears" (30/(maxfiredelay+1)), " Damage", + " Range" (/40), " Shot Speed", " Luck" with delta != 0: "+%.2f" or + "%.2f" + name, into +0x20. Collectibles and trinkets only. +- Spindown Dice (HUD::update_item_info): player has 723, pickup _optionsPickupIndex == 0, CanReroll: walk id down + 1 step (2 with Car Battery 356), skipping ids without config or not Item::IsAvailable(item,3); if > 0: + "Spins down into " into +0x38 (cleared first). +- Transformations (drawn, not stored): for each playerforms.xml form: a form with tags matches when the collectible + (ItemConfig::collectible_has_tags 0x72fe80) / trinket (0x72fec0) has any of them; a form without tags matches only + form 15 (#TRANSFORMATION_NECROMANCER) with collectible 35/262 or trinket 48. Text = translate(form name) + " " + + min(player->_playerForms[id], 3) + "/" + "3". Colour = text colour x 0xff1199b1. + +## Trigger (HUD::update_item_info 0x83c8d0, last in HUD::Update) +Shown only when ALL: (achievement 641 (0x281) unlocked, or in game with a daily challenge or debug run); +challenge != 0x20; OptionsConfig._itemInfoDisplayEnabled; current room descriptor Flags & 1 (cleared room). +Else ItemInfo::reset 0x83d6e0 (closes the popup). +Candidate = nearest (squared distance < 10000, i.e. < 100 units, to the first local main player) entity type 5 with +variant 100 (sprite layer 1 not gfx/Items/Collectibles/questionmark.png and subtype != 0), 350, 70 or 300. +No candidate (or its subtype 0) -> ItemInfo::reset: the popup fades out. +On a new pickup (or id/effect change): entry = get_*; collectible: StatsPanel::set(entry, player, 0) + Spindown line ++ image item gfx; trinket: StatsPanel::set(entry, player, golden) + image; pill: anm2 of entity 5.70.subtype "Idle"; +card: anm2 of 5.300.card->pickupSubtype "Idle"; closes the old popup. Every frame entry+0x44 = !ItemInfo::is_pickup_known +0x83d7c0: pill colour unidentified; card priced (shop) and not one of 41,43,45,47,49,50,51,78,80,81..97; card +unreachable on foot (not flying and Room::is_reachable_from_player 0x823be0 fails). +Unknown entry: title "#ITEM_INFO_UNIDENTIFIED_PILL" or by card id <23 TAROT_CARD, <32 PLAYING_CARD, <42 RUNE, +<55 CARD, <78 TAROT_CARD, <81 CARD, else no title; one bullet "???" and no other lines. +Unseen collectible (ItemInfo::is_collectible_seen 0x83d760: PersistentGameData collection byte +0xae8+id == 0, ids +< 733): the panel content is not drawn; the popup instead carries two centred white text lines "???" and +"##GAME###ITEM_INFO_UNIDENTIFIED" ("Collect this item once to identify it"), padding 10/6, auto size. + +## Popup, lifetime, fade (Popup system, PopupQueue at Manager+0x4d070) +Created when entry != 0 and popup id == -1: MessagePopup 0x9c25e0 (font TeamMeatEx10) with box size +(measuredW, measuredH - 12) from ItemInfo::measure 0x840250, wrap fraction 150/screenW, priority 2, layer 1, flags +&= 0xf8 (no dim, no shadow, not modal), style 2 (alpha fade), speed 6.0 -> 1000/6 = 166 ms fade in and out, +background 1 = gfx/ui/Popup_Beige.png 9-slice tinted (0,0,0,0.6) x fade, render callback 0x840370, min time 0, +no timeout. Stays until closed (pickup change, reset, side switch). Drawn by PopupQueue::render_layer(1) after +HUD::Render, before GenericPrompt/PauseScreen. +Frame 9-slice (Popup::render_frame 0x9c16b0), source px in the png: fill (120,10)-(128,18); left (1,28)-(99,35) +7 wide; right (1,36)-(99,43) 7 wide; top (8,1)-(219,9) 8 tall; bottom (4,10)-(215,27) 17 tall; corners TL +(1,4)-(8,9) at (l-7,t-5), TR (219,1)-(222,9) at (r,t-8), BL (1,10)-(4,23) at (l-3,b), BR (215,10)-(220,27) at (r,b). +Placement each frame (screen points, W/H = screen size): px = floor(((W-338)*0.5 + (player.x-60)*0.65)*s+0.5)/s ++ room render scroll x. px > W/2 -> baseX 65, side +1 (box left edge at x 65), else baseX -90, side -1 (box right +edge at W-90). offX = baseX - W*side*0.5 + side*w*0.5, offY = -H*0.5 + h*0.5 + 60 (centre = screen centre + off, +y - 9: box top at y 51). If the panel is on the player's side by more than 20 (old offX < 0 and px < W/2 - 20, or +> 0 and px > W/2 + 20) it fades out and a new one opens on the other side next frame. + +## Layout (render_pocket_item_info 0x83eae0, mode 0 measure / 1 draw; box origin = popup centre - size/2 - (4,6)) +- Sprite: collectible/trinket image as a 32x32 quad at the origin (source = whole png; Monkey Paw (trinket 20) + source 32x32); pill/card anm2 at origin + (16,24). Colour alpha = fade. +- Active items (type 3): ChargeIcon at (origin.x + width - 10, origin.y + 18), frame: Flip (711) for T.Lazarus 3; + 286/263/348/489/147 8; chargeType 1 -> 6, 2 -> 7; maxCharges 12->5, 6->4, 4->3, 3->2, 2->1, 1->0, else 7. +- Title at (x+34, y+8), scale 0.625 (x font scale 0.9), wrap (x+width)-titleX; multi-line titles move up by + (lines-1)*lineHeight*0.625*0.4. Measure adds 23 to the width. +- Lines start at y = titleY + 24, x = origin.x + 16, scale 0.5; bullet "●" (U+25CF) at (x-10, y) scale 0.5; each line + advances by its wrapped height + 2. Order: transformations (cyan), +0x38 Spindown, +0x20 stats, +0x2c visible XML. +- Collectibles: item pool icons (ItemPool::GetItemPoolsForCollectible, minimap_icons.anm2) centred at + (origin.x + width*0.5, lastY + 4), 16 apart (x -= (n-1)*16*0.5); measure adds 12 height. Pools kept: normal: + 0..6,8..14,23..26,29,30; Greed (difficulty 2/3): 0,8..11,13,14,16..25,29,30. Anims: 0 IconTreasureRoom, 1 IconShop, + 2 IconBoss, 3 IconDevilRoom, 4 IconAngelRoom, 5 IconSecretRoom, 6 IconLibrary, 8/9/29 ItemPoolChests frame 0/1/2, + 10/11/13/14/25/30 IconBeggar frame 0/2/3/5/4/1, 12 IconCurseRoom, 16 IconTreasureRoomGreed, 17 IconBoss, + 18 IconShop, 19 IconDevilRoom, 20 IconAngelRoom, 21 IconCurseRoom, 22 IconSecretRoom, 23 IconSlot frame 5, + 24 IconUltraSecretRoom, 26 IconPlanetarium. +- Rich text tags (rich_text_parse_icon_tag 0x9f1380): `` / ``, ``, + ``, `` (frames 0..5), `` (text_icons.anm2 + "players"/"pickups"/"rooms"), `` (item gfx inline). + +## Toggle and option +- options.ini `ItemInfoDisplayEnabled` (OptionsConfig+0xbc), default 0 (reset_defaults 0x924000, Load 0x924440). +- Options menu row 0x1c "ItemDescriptions" (On/Off), listed only when achievement 641 is unlocked or in a + daily/debug run (Menu_Options 0x9b23a0 / 0x9b31c0). +- Input action 0x1f "ToggleDescriptions" (InputAction::get_name 0x84d740, stringtable INPUT_DESCRIPTIONS): + Manager::update_ingame_input 0x6fa540 flips the option when the action is triggered on any device, unpaused, + same unlock rule. +- Achievement 641 is granted with achievements 4, 5, 6 in Room::SpawnClearAward 0x7fb250 (inferred: the Mom kill). +- The pause screen's My Stuff pages read the same entries (render_item_info_text 0x8d5f70, + InfoDisplayEntry::count_lines 0x84e820, StatsPanel::set 0x84e200); not covered here.