benilla-re systems structs docs

EditMacroRecord

function · ui · primitive

Address
0x4f1280 · 186 bytes, up to 0x4f1339
Signature
void __fastcall (uint32_t id, const char *name, const char *icon, const char *body, uint32_t local)
Meaning
Replaces the given fields of a macro and sets its local flag
Confidence
verified, proof one
Finding
ui/macros#editing-a-macro

Finding: Editing a macro in ui: macros

EditMacro(index, name, iconIndex, body, local) raises Usage: EditMacro(index, name, icon, body, local) unless argument 1 is a number or a numeric string (0x6f34d0), and does nothing without the kind 7 check. It maps the index to an id and sets the fields that are given: a string name, a number icon index (an entry of the icon list), a string body. It always replaces the local flag with the fifth argument, a script flag that is false when absent. The bound spell is derived again and the macro's action slots are redrawn. It returns the macro's index; an index with no macro also returns, with the position of the first empty entry plus 1.

The derivation is in the doc.

Callers 1

Callees 6

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