benilla-re systems structs docs

EditBox::GetNumber

function · ui · primitive

Address
0x798790 · 219 bytes, up to 0x79886a
Signature
int __fastcall (lua_State *L)
Meaning
Implements the EditBox method GetNumber, 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 7

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