benilla-re systems structs docs

Button::GetFont

function · ui · primitive

Address
0x7809a0 · 191 bytes, up to 0x780a5e
Signature
int __fastcall (lua_State *L)
Meaning
Returns the normal font's file name, height and flags text
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

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