CSimpleBackdrop::SetColor
function · ui · orchestration
- Address
0x77f410· 45 bytes, up to0x77f43c- Signature
void __thiscall (CSimpleBackdrop *this, const uint32_t *colour)- Meaning
- Stores the background colour in the backdrop object and repaints it
- Confidence
- verified, proof one
- Finding
- ui/backdrop#the-two-colours
Finding: The two colours in ui: the frame backdrop
The background colour applies to the background texture alone and the border colour to all eight edge textures,
never the background. Each is stored in the object and set on its textures as their vertex colour. A script sets
them with SetBackdropColor(r, g, b[, a]) and SetBackdropBorderColor(r, g, b[, a]): each channel is clamped to 0 to 1
with a missing alpha 1, and packed as alpha, red, green, blue bytes rounded as ×255 + 0.5. A frame without a
backdrop keeps nothing, so a colour set before SetBackdrop is lost, and a new object starts white.
The derivation is in the doc.
Callers 4
- CGTooltip::BuildGameObject ui
- Frame::SetBackdropColor ui
- CSimpleBackdrop::LoadXML ui
- CSimpleBackdrop::ApplyTexCoords ui
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.