RefreshStationery
function · ui · primitive
- Address
0x4ad970· 286 bytes, up to0x4ada8d- Signature
void __cdecl ()- Meaning
- Finds each stationery's carried item, counts the usable entries and sorts the list
- Confidence
- verified, proof one
- Finding
- ui/mailsend#the-stationery-list
Finding: The stationery list in ui: composing and sending mail
The game init builds one entry per row of Stationery.dbc (ID, ItemID, Texture, Flags): the id, the item id, an
always-available bit (flag bit 0) and a carried-item GUID. The refresh 0x4ad970 finds the carried item for each (by
entry, in the player's items), counts as usable those that are available or carried and whose item is cached, and sorts
the whole list. The order is: available or carried first; carried before merely available; cached before uncached;
lower buy price first; then the item name, case-insensitive. The refresh runs after every requested stationery item has
arrived and on GetNumStationeries() when none is awaited; that function returns the usable count.
The derivation is in the doc.
Callers 3
Callees 5
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- FindInventoryItemByEntry objectlayer
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.