CSimpleTexture::SetImage
function · ui · orchestration
- Address
0x770300· 91 bytes, up to0x77035a- Meaning
- Replaces the image handle with a referenced one, closes the old and marks the texture dirty
- Confidence
- verified, proof one
- Finding
- ui/texture#two-colour-stores
Finding: Two colour stores in ui: texture colour and drawing
A texture has two colour inputs that never overwrite each other: the image at +0xcc, and a vertex colour that
multiplies it. <Color> and SetTexture(r, g, b, a) replace the image with a solid one; SetVertexColor and
SetAlpha write the vertex colour. GetVertexColor answers opaque white unless the vertex colour holds exactly one entry, so a
vertex colour of two or more entries, a gradient, reads back white as well as an empty one.
The derivation is in the doc.
Callers 12
- Script::SetLootPortrait ui
- Script::SetInventoryPortaitTexture ui
- Script::SetTaxiMap ui
- Script::SetBagPortaitTexture ui
- TabardModel::GetUpperEmblemTexture ui
- TabardModel::GetLowerEmblemTexture ui
- BakePortrait ui
- BindPlayerPortraitFallback ui
- BindPetPortraitFallback ui
- SetPortraitTexture ui
- CSimpleColorSelect::SetWheelTexture ui
- CSimpleColorSelect::SetValueTexture ui
Callees 4
- HandleClose base
- AddHandleRef base
- CompareHandles base
- CScriptRegion::NotifyLayerChanged ui
Calls and jumps by a bare address, from tables/calls.tsv.