OnBagSlotChanged
function · ui · orchestration
- Address
0x4f8ec0· 194 bytes, up to0x4f8f81- Signature
uint32_t __fastcall (uint32_t offset, uint32_t unused, uint32_t length, uint64_t guid, void *previous)- Meaning
- Refreshes the action slots of a changed bag's items, then raises the bag events
- Confidence
- verified, proof one
- Finding
- ui/bags#bag-events
Finding: Bag events in ui: bags and bag slots
A change of a bag slot runs 0x4f8ec0(offset, length, guid, previous). A GUID it finds in the slot is resolved as an
item; when that is a container, each of its items refreshes the action slots that hold the item's entry (0x4e5c70).
Then 0x4f91a0 compares bags 1 to 10 (slots n + 18 for 1 to 4, n + 58 for 5 to 10) with the cache 0xbdd060 + 8(n-1). A bag
whose GUID differs fires BAG_CLOSED(n) first when the old GUID was not zero, and, after the cache is rewritten,
BAG_UPDATE(n) when the new one is not; an unchanged bag fires nothing. The ending calls refresh TRADE_SKILL_UPDATE
and CRAFT_UPDATE while those windows are open. BAG_CLOSED has no other raiser.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- ClntObjMgrObjectPtr objectlayer
- RecountItemActionSlots ui
- BuildCraftList ui
- RaiseBagEvents ui
- BuildTradeSkillList ui
- GetItemInSlot objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.