benilla-re systems structs docs

RegisterMacroFunctions

function · ui · primitive

Address
0x4f1b90 · 30 bytes, up to 0x4f1bad
Signature
void __cdecl (void)
Meaning
Registers the nine macro Lua functions
Confidence
verified, proof one
Finding
ui/macros#macro-functions

Finding: Macro functions in ui: macros

GetNumMacros returns the account count and the character count. GetMacroInfo(index) returns the name, the icon path (the icon directory plus the basename; nil when there is no basename), the body and 1 or nil for the local flag. A missing index returns four nils and a non-number raises a usage error. GetMacroIndexByName(name) returns the position plus 1, or 0 for none. PickupMacro(index) puts the macro on the cursor (ui/cursor#payload-pictures-by-kind); an unknown index does nothing. DeleteMacro(index) removes the macro, clears every action slot that holds it and rebuilds the order. DeleteMacro does nothing when the kind 7 check fails (ui/luastate#the-context-word).

The derivation is in the doc.

Callers 1

Callees 1

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