CSimpleEditBox::SetText
function · ui · orchestration
- Address
0x77be00· 184 bytes, up to0x77beb7- Meaning
- Replaces a different text without the typing scripts, then runs OnTextSet
- Confidence
- verified, proof one
- Finding
- ui/editbox#setting-and-reading-text
Finding: Setting and reading text in ui: EditBox
SetText and SetNumber are the same: each takes a string or a number, which Lua turns into its
string, and raises a usage error otherwise. The box clears the selection, and when the text
differs it replaces it, without the scripts of typing, then runs OnTextSet. On a numeric box
a text with a non-digit, SetNumber(0.5) or SetNumber(-1) among them, empties the box, inserts
nothing and still runs OnTextSet. Insert inserts at
the cursor with them. Each passes the current context word, and the box keeps the word of its
first text. GetText returns the text and GetNumber its value as a number; both make the box's
word current (luastate, The context word).
The derivation is in the doc.
Callers 4
- CSimpleEditBox::RecallHistoryAfter ui
- CSimpleEditBox::RecallHistoryBefore ui
- EditBox::SetText ui
- EditBox::SetNumber ui
Callees 4
- SStrCmp storm
- FrameScriptExecute ui
- CSimpleEditBox::Insert ui
- CSimpleEditBox::Clear ui
Calls and jumps by a bare address, from tables/calls.tsv.