benilla-re systems structs docs

CSimpleButton::UpdateLabel

function · ui · orchestration

Address
0x779810 · 115 bytes, up to 0x779882
Meaning
Offsets the label for PUSHED and gives it the disabled, highlight or normal font by state
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 5

Callees 2

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