EditBox::Insert
function · ui · primitive
- Address
0x798400· 186 bytes, up to0x7984b9- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the EditBox method Insert, its pair in the table 0x87bb68
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 8
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tostring lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- CSimpleEditBox::Insert ui
Calls and jumps by a bare address, from tables/calls.tsv.