CSimpleTexture::SetSolidColour
function · ui · orchestration
- Address
0x770360· 58 bytes, up to0x770399- Meaning
- Replaces the image with the shared 8 by 8 solid image of a colour
- Confidence
- verified, proof one
- Finding
- ui/texture#a-colour-without-a-file
Finding: A colour without a file in ui: texture colour and drawing
A <Texture> with a <Color> child and no file shows a solid fill of that colour. The fill is a shared 8 by 8 image named
Solid Texture whose every texel holds the colour, alpha included, and it counts as having alpha when the colour's
alpha byte is below 0xfe. With both a file and a <Color>, the colour is discarded: the loader sets the solid image
first and the file's image replaces it. A file that fails to load logs Texture %s: Unable to load texture file %s and
falls back to an opaque green fill, not to the <Color>. A <Gradient> child sets the vertex colours of the
four corners.
The derivation is in the doc.
Callers 6
- CSimpleTexture::LoadXML ui
- CSimpleEditBox::CreateCompositionTexture ui
- CSimpleEditBox::CreateCandidateFrame ui
- CSimpleEditBox::SetCaretColor ui
- CSimpleEditBox::SetSelectionColor ui
- Texture::SetTexture ui
Callees 3
Calls and jumps by a bare address, from tables/calls.tsv.