Button::SetFont
function · ui · primitive
- Address
0x780880· 274 bytes, up to0x780991- Signature
int __fastcall (lua_State *L)- Meaning
- Sets the normal, disabled and highlight fonts of a button, returning nothing
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/fontmethods#fonts-of-a-button
Finding: Fonts of a button in ui: font accessors from Lua
Button:SetFont(file, height [, flags]) sets all three of the button's fonts: the normal one at +0x33c, the disabled one at
+0x434 and the highlight one at +0x3b8, in that order, each through the shared font setter with the button's name, and returns
no value even when the font fails to load. Button:GetFont() reads only the normal font. A button with no label receives the call
without error: the fonts are separate objects, and the label is not touched.
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_rawgeti lua
- luaL_error lua
- SetFontFromArgs ui
Calls and jumps by a bare address, from tables/calls.tsv.