ScriptGetBoolField
function · ui · orchestration
- Address
0x7036b0· 50 bytes, up to0x7036e1- Signature
int __fastcall (lua_State *L, const char *name)- Meaning
- Reads the field of the table at the top as a boolean
- Confidence
- verified, proof two
- Finding
- ui/luabase#time-from-a-table
Finding: Time from a table in ui: the Lua base library
time() returns the current C time. time(t) needs a table with sec and min (default 0), hour (default 12), and
day, month and year (required: field `%s' missing in date table), and reads isdst as a boolean. month is
reduced by 1 and year by 1900, mktime runs on them, and the answer is the number, or nil for −1. Each field is read with lua_gettable (0x6f3a40, so __index is honoured), and a field that is not a number or numeric string (lua_isnumber, 0x70370f) counts as absent; isdst is lua_toboolean, so it is 0 or 1, never −1.
The derivation is in the doc.
Callers 1
- ScriptTime ui
Callees 4
- lua_settop lua
- lua_toboolean lua
- lua_pushstring lua
- lua_gettable lua
Calls and jumps by a bare address, from tables/calls.tsv.