DressUpModel::TryOnItem
function · ui · primitive
- Address
0x504540· 1538 bytes, up to0x504b41- 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 type | action |
|---|---|
| 1 | clear and set component slot 0 |
| 3, 4, 5 and 20, 6, 7, 8, 9, 10 | component slots 1, 2, 3, 4, 5, 6, 7, 8 |
| 16 cloak | component slot 0xa |
| 19 tabard | component slot 9, with the guild emblem |
| 13, 14, 15, 17, 21, 22, 23, 25, 26 | the held-item lanes |
| 2, 11, 12, 28 | nothing |
| 18, 24, 27 and above 28 | ERR_NOT_EQUIPPABLE, nothing else |
The derivation is in the doc.
Callers 2
Callees 12
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- UnequipCharacterSlot charactermodel
- EquipBodySlotById charactermodel
- AttachItemModel charactermodel
- DetachHeldItemSlot charactermodel
- SetCharacterComponentEmblem charactermodel
- CGGameUI::DisplayError ui
- CanHoldBoth ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- IsEffect28SpellKnown objectlayer
- GetGuildEmblem client
Calls and jumps by a bare address, from tables/calls.tsv.