benilla-re systems structs docs

OnContainerSlotChanged

function · ui · orchestration

Address
0x4f90d0 · 207 bytes, up to 0x4f919e
Signature
uint32_t __fastcall (uint32_t offset, uint32_t unused, uint32_t length, uint64_t guid, void *previous)
Meaning
Unlocks and refreshes a changed container item slot, then raises BAG_UPDATE
Confidence
verified, proof one
Finding
ui/bags#container-content-events

Finding: Container content events in ui: bags and bag slots

0x4f90d0 watches the item slots of one container (offset (n - 8) / 8). When the slot's GUID differs from the previous value it unlocks the item, refreshes the action slots for the old and new entries, and refreshes the two windows; whether or not it changed, it then raises BAG_UPDATE through 0x4f9370(container). That argument is 0 when the container is the player and its index 1 to 10 in the cache otherwise; a container not in the cache raises nothing. A bag sitting directly in a bank bag slot has the player as its container, so its update carries 0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

Calls and jumps by a bare address, from tables/calls.tsv.