benilla-re systems structs docs

CSimpleFontString::SetText

function · ui · orchestration

Address
0x771d80 · 312 bytes, up to 0x771eb7
Meaning
Sets a FontString's text, expanding the grammar escapes when asked, and lays it out again
Confidence
verified, proof one
Finding
ui/fontstring#setting-the-text

Finding: Setting the text in ui: FontString and Font

Setting text that is empty, or null, empties the string's text but keeps its buffer; text equal to the current one changes nothing. With a fixed size the text is copied into that many bytes; otherwise the buffer grows to fit. Any change drops the measures and the built string and lays the string out again. From Lua, SetText raises %s:SetText(): Font not set on a string with no font, turns its argument into a string, nil into null, and expands the |1 and |2 grammar escapes first. GetText returns nil for an empty string, never "".

The derivation is in the doc.

Callers 13

Callees 9

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