SimpleModelReplaceTexture
function · ui · orchestration
- Address
0x76cfe0· 152 bytes, up to0x76d077- Signature
void __thiscall (void *this, uint32_t type, const char *name)- Meaning
- Loads a texture by name and swaps it into the model's textures of a type, if the frame has a model
- Confidence
- verified, proof one
- Finding
- ui/modelanim#advancetime-and-replaceicontexture
Finding: AdvanceTime and ReplaceIconTexture in ui: Model frames, animation, light and fog
Model:AdvanceTime() validates its receiver and does nothing; it reads no argument and returns no value.
Model:ReplaceIconTexture("texture") takes a texture file name, or a number rendered as its decimal
text, and swaps that texture for the model's replaceable texture, type 14, by reference. Without a model
the call is dropped, not stored, and a later model does not get it. For a model whose data is not
resident the pair is queued and applied when it loads. Calling it with anything else raises
Usage: %s:ReplaceIconTexture("texture"). SetModel or ClearModel destroys the swap with the model.
The derivation is in the doc.
Callers 1
Callees 6
- CStatus::~CStatus client
- HandleClose base
- TextureCreate gx
- SysMsgAdd sysmsg
- CGxTexFlags::CGxTexFlags gx
- CM2Model::SetReplaceableTexture models
Calls and jumps by a bare address, from tables/calls.tsv.