benilla-re systems structs docs

s_textUsageSetMaxLetters

global · ui

Address
0x87bf30 · 29 bytes, up to 0x87bf4c
Type
char[29]
Meaning
Holds Usage: %s:SetMaxLetters(max)
Confidence
verified, proof two
Finding
ui/luastate#reading-numeric-arguments

Finding: Reading numeric arguments in ui: the Lua state, its library and C functions

lua_tonumber answers the number, or a string's value when it parses fully; for anything else, an absent argument included, it answers 0.0 and never raises. lua_isnumber accepts exactly what converts; lua_isstring accepts numbers and strings. Integers come from __ftol, truncating toward zero. What a function does with a missing number is its own: some raise (SetAlpha), some use a default (a colour's alpha of 1), and some return having done nothing (SetScrollFromBottom). An argument count is checked by few functions, and exactly: SetMaxLetters raises unless it has two values (self included) and stores 0 only when the second is not a number.

The derivation is in the doc.