DressUpModel::SetModelInstance
function · ui · primitive
- Address
0x504350· 274 bytes, up to0x504461- Signature
void __thiscall (DressUpModel *this, CM2Model *model)- Meaning
- Takes the copied model, clones the unit's character component and records the unit's held item lanes
- Confidence
- verified, proof one
- Finding
- ui/dressup#pane-setup
Finding: Pane setup in ui: trying items on the dressing room model
When the pane receives its model (slot 36, 0x504350), it drops its old character component, clones the unit's component
for the new model, and records what the unit holds: the visible main-hand item record at +0x3fc and the off-hand record at
+0x404, each eight bytes (item class, subclass, inventory type at byte 3, sheathe type at byte 4; a first byte of 0 means
the lane is empty), and a ready byte at +0x40c. The ranged slot is not recorded. The component pointer is +0x3f8.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 6
- ClntObjMgrObjectPtr objectlayer
- NewCharacterComponent charactermodel
- DeleteCharacterComponent charactermodel
- CloneCharacterComponent charactermodel
- CM2Model::AddRef models
- SimpleModelSetModel ui
Calls and jumps by a bare address, from tables/calls.tsv.