benilla-re systems structs docs

GetNumWorldStateUI

function · ui · primitive

Address
0x4c5a40 · 44 bytes, up to 0x4c5a6b
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the number of rows in the always-visible world state list
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/worldstate#the-two-functions

Finding: The two functions in ui: world states in the interface

GetNumWorldStateUI() pushes the count 0xb71e78. GetWorldStateUIInfo(index) raises Usage: GetWorldStateUIInfo(index) for a non-number and takes the 1-based, truncated index into the list. An index outside the list, or a row that is missing, pushes the single number 0 (not nil). Otherwise it pushes ten values: the value of the row's key +0x5c (1.0 when the key is 0), the text with its world-state tokens expanded, the icon, the dynamic icon, the tooltip, the dynamic tooltip, the extended UI name and the values of the three extended keys.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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