benilla-re systems structs docs

DressUpModel::TryOnItem

function · ui · primitive

Address
0x504540 · 1538 bytes, up to 0x504b41
Signature
void __thiscall (DressUpModel *this, uint32_t itemId)
Meaning
Looks up an item and puts it on the model by inventory type: a component slot, the tabard or a held lane
Confidence
verified, proof one
Finding
ui/dressup#trying-on-an-item

Finding: Trying on an item in ui: trying items on the dressing room model

TryOn(itemId) looks the item up in the item cache and does nothing while the record is missing (the cache calls 0x504ba0 back to try again), when the record has display id 0, or while the pane has no model. It then acts on the record's inventory type:

inventory typeaction
1clear and set component slot 0
3, 4, 5 and 20, 6, 7, 8, 9, 10component slots 1, 2, 3, 4, 5, 6, 7, 8
16 cloakcomponent slot 0xa
19 tabardcomponent slot 9, with the guild emblem
13, 14, 15, 17, 21, 22, 23, 25, 26the held-item lanes
2, 11, 12, 28nothing
18, 24, 27 and above 28ERR_NOT_EQUIPPABLE, nothing else

The derivation is in the doc.

Callers 2

Callees 12

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