benilla-re systems structs docs

EditBox::SetMaxLetters

function · ui · primitive

Address
0x799110 · 237 bytes, up to 0x7991fc
Signature
int __fastcall (lua_State *L)
Meaning
Implements the EditBox method SetMaxLetters, its pair in the table 0x87bb68
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/editbox#a-negative-letter-limit-hangs

Finding: A negative letter limit hangs in ui: EditBox

A negative letter limit is never met: the trim loop deletes backward from the end until the text is empty, and an empty text still has more letters than the limit, so the next insertion of any text never returns. That includes SetText("") on a box with text; on an empty box SetText returns early, since the texts are equal.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

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