CGCharacterModelBase::AttachUnitModel
function · ui · orchestration
- Address
0x5059a0· 208 bytes, up to0x505a6f- Signature
void __thiscall (CGCharacterModelBase *this, CGUnit_C *unit)- Meaning
- Shows a duplicate of the unit's model with Stand armed, the completion callback and the hand grips
- Confidence
- verified, proof one
- Finding
- ui/playermodel#the-pane-model
Finding: The pane model in ui: PlayerModel, DressUpModel and TabardModel
A pane shows a duplicate of the unit's model, never the unit's own. Showing the pane builds the duplicate from the unit named by the GUID, or from the display record; hiding it destroys the model. A copy is built by creating the unit's model in the pane's scene, resetting its partial attach state, handing it to the frame (slot 36), registering the pane's completion callback, arming Stand with a random variation, and re-applying the two hand grips.
The derivation is in the doc.
Callers 2
Callees 11
- DebugPrintStub unassigned
- UpdateCharacterComponent charactermodel
- CloseHand charactermodel
- DetachAllItemModels charactermodel
- CreateModelFromModel models
- HandleClose2 models
- CM2Model::GetModelName models
- CM2Model::SetDoneCallback models
- CM2Model::PlayAnimation models
- CM2Model::FindChild models
- SimpleModelGetScene ui
Calls and jumps by a bare address, from tables/calls.tsv.