benilla-re systems structs docs

Button::SetHighlightTextColor

function · ui · primitive

Address
0x7815e0 · 537 bytes, up to 0x7817f8
Signature
int __fastcall (lua_State *L)
Meaning
Sets the highlight text colour of a button from clamped red, green, blue and alpha arguments
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/fontmethods#setting-colours

Finding: Setting colours in ui: font accessors from Lua

The setters take red, green and blue as arguments 2 to 4 and an optional alpha as 5. Each channel is clamped to 0 to 1 (below 0 gives 0; above 1 or not a number gives 1) and a missing alpha is 1. The three colour channels are rounded to a float; the alpha is not. Each channel is then multiplied by 255, increased by 0.5 and truncated, and the bytes are packed as 0xAARRGGBB. A colour equal to the stored one with its set bit 0x400 already set (0x79f65a) skips only the store and the OR of 0x404; the font still stops following its Font object for that group and is told through slot +0x14 either way.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

Calls and jumps by a bare address, from tables/calls.tsv.