benilla-re systems structs docs

Button::GetHighlightTextColor

function · ui · primitive

Address
0x781800 · 345 bytes, up to 0x781958
Signature
int __fastcall (lua_State *L)
Meaning
Returns the red, green, blue and alpha of the highlight text colour of a button
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/fontmethods#reading-colours

Finding: Reading colours in ui: font accessors from Lua

The getters unpack the bytes of the stored colour and multiply each by the float 1/255, returning red, green, blue and alpha as doubles. FontString:GetTextColor returns red as the unrounded product and rounds green, blue and alpha to a float before widening them; the shared getter, the shadow getters and the Button getters return all four unrounded.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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