Button::GetTextColor
function · ui · primitive
- Address
0x781100· 345 bytes, up to0x781258- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the red, green, blue and alpha of the normal 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
- lua_settop lua
- lua_type lua
- lua_touserdata lua
- lua_pushnumber lua
- lua_rawgeti lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.