notes: Repentance+'s item info panel (InfoDisplay) and its names

This commit is contained in:
shweet committed 2026-10-30 10:44:01 -04:00
1 parent 7903eca0de
commit 6d1c269859
3 files changed
+174 -2

No files matched your search

+30 -2
View File
@@ -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 '<color=FF3BF745>+%.2f' (green) or '<color=FFF7513B>%.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 '<color=FF3BF745>+%.2f' (green) or '<color=FFF7513B>%.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<ConstLobby>::_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<u64_PlayerGameState>::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<int_InfoDisplayEntry>::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)
Can't render this file because it is too large.