benilla-re systems structs docs

CSimpleButton::SetFontString

function · ui · orchestration

Address
0x778d20 · 149 bytes, up to 0x778db4
Meaning
Installs a label, deleting the old, and anchors an unanchored one by the normal font's justify
Confidence
verified, proof one
Finding
ui/button#the-label-and-its-fonts

Finding: The label and its fonts in ui: Button and CheckButton

The label is a FontString in the ARTWORK layer. Its font follows the state: the disabled font in state 0, else the highlight font while the HIGHLIGHT layer is on, else the normal font. In the pushed state the label moves by the pushed text offset. Installing a label deletes the old one and, only for a label with no anchor, anchors it to the button by the normal font's justify: LEFT to LEFT, RIGHT to RIGHT, else CENTER. SetText creates a label when there is none. GetText returns nil for no label or an empty text.

The derivation is in the doc.

Callers 3

Callees 3

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