Script::GetItemQualityColor
function · ui · primitive
- Address
0x48dfb0· 186 bytes, up to0x48e069- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the red, green and blue and the colour escape of an item quality
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/serviceverbs#item-quality-colours
- Test
ui::luabind_48dfb0_quality_color
Finding: Item quality colours in ui: GM, service and item lookup verbs
GetItemQualityColor(quality) returns the red, green and blue of the quality as numbers from 0 to 1, and the colour
escape string. It raises Usage: GetItemQualityColor(index) for a non-number. The channels are the stored bytes times
1/255 as doubles, read from the third, second and first byte of the colour entry.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 8
- __ftol crt
- QualityColorPointer ui
- QualityColorEscape ui
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.