QualityColorEscape
function · ui · primitive
- Address
0x52ad90· 26 bytes, up to0x52ada9- Signature
const char * __fastcall (uint32_t quality)- Meaning
- Returns the inline colour escape string of a quality, with an index of 7 or more taking entry 1
- Confidence
- verified, proof one
- Finding
- ui/tooltipcontent#the-colours
Finding: The colours in ui: Tooltip lines, colours and sizing
Builders pass a pointer to a packed 0xAARRGGBB dword, never the value. The pointers live in .data and
are filled by one small initializer each. Gold 0xffffd200 is the default name and description colour,
white the ordinary line, red the failed requirement, green the on-use and learnable line, gray the
inactive one. The quality table has seven entries for Poor to Artifact.
| pointer | value | colour |
|---|---|---|
0xc0d3e8 | 0xffffd200 | gold |
0xc0cf60 | 0xffffffff | white |
0xc0d390, 0xc0d3a8 | 0xffff2020 | red |
0xc0d398 | 0xffff0000 | pure red |
0xc0d3ac | 0xff00ff00 | green |
0xc0d3c4 | 0xff808080 | gray |
0xc0d368 | 0xffffff97 | pale cream |
0xc0d3c8 + 4·q | 9d9d9d, ffffff, 1eff00, 0070dd, a335ee, ff8000, e6cc80 | quality 0 to 6 |
The derivation is in the doc.
Callers 5
- Script::GetItemQualityColor ui
- FormatItemLink ui
- WriteAllPassedLine objectlayer
- WriteRollWonLine objectlayer
- WriteRollLine objectlayer
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.