EditBox::GetText
function · ui · primitive
- Address
0x7985c0· 207 bytes, up to0x79868e- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the EditBox method GetText, 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 6
- lua_settop lua
- lua_type lua
- lua_touserdata lua
- lua_pushstring lua
- lua_rawgeti lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.