benilla-re systems structs docs

GetMacroByPosition

function · ui · primitive

Address
0x4f0e40 · 106 bytes, up to 0x4f0ea9
Signature
MACRONODE * __fastcall (uint32_t position)
Meaning
Returns the macro at a position, null for 36 and up or an empty entry
Confidence
verified, proof one
Finding
ui/macros#macro-order

Finding: Macro order in ui: macros

Macros are addressed by position. 0xbdcc60 holds 36 ids, 18 per scope: positions 0 to 17 are account macros and 18 to 35 character macros, each group sorted by name without case, unused entries 0. The Lua index of a macro is its position plus 1, so the first character macro is index 19 however few account macros there are. Any create, edit or delete rebuilds the table and signals UPDATE_MACROS (393).

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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