XmlReadColor
function · ui · primitive
- Address
0x6f23d0· 601 bytes, up to0x6f2628- Meaning
- Reads a colour element's four channels, clamping and quantising them
- Confidence
- verified, proof one
- Finding
- ui/backdrop#the-xml-element
- Test
ui::glue_6f1_clamp_quantize_boundaries,ui::glue_6f1_color_pack
Finding: The XML element in ui: the frame backdrop
A <Backdrop> reads bgFile, edgeFile and tile as attributes and then its children TileSize, EdgeSize,
BackgroundInsets, Color and BorderColor. Any other child logs Unknown child node in %s element: %s and
loading goes on. A length is the val of the element or of an AbsValue child, converted from interface units, or
the val of a RelValue child, stored as it is; with none the loader logs No "val" attribute in element: %s.
The insets read left, right, top and bottom the same way, with AbsInset and RelInset children. A colour
reads r, g, b and a clamped to 0 to 1; a missing r, g or b is 0 and a missing a is 1.
The derivation is in the doc.
Callers 9
- ParseGradientElement ui
- CSimpleModel::LoadXML ui
- CSimpleTexture::LoadXML ui
- CSimpleFontString::LoadXML ui
- CSimpleButton::LoadXML ui
- CSimpleEditBox::LoadXML ui
- CSimpleBackdrop::LoadXML ui
- CSimpleStatusBar::LoadXML ui
- CFontObject::LoadXML ui
Callees 3
- __ftol crt
- SStrToFloat storm
- GetXMLAttribute ui
Calls and jumps by a bare address, from tables/calls.tsv.