benilla-re systems structs docs

ResetActionBarState

function · ui · orchestration

Address
0x4e4f50 · 58 bytes, up to 0x4e4f89
Signature
void __cdecl ()
Meaning
Zeroes the 120 slot words, item counts, usable and no-power flags and the bonus bar offset
Confidence
verified, proof one
Finding
ui/actionbar#action-slots

Finding: Action slots in ui: action bars

The bar holds 120 slots, one dword each in 0xbc6980. The top nibble is the kind: 0 a spell (the word is the spell id), 0x40000000 a macro (the word with bit 30 cleared is the macro id), 0x80000000 an item (the word with bit 31 cleared is the item entry). Any other nibble stands for nothing. Beside it sit three tables of 120 dwords: item count or charges 0xbc6390, usable flag 0xbc6b60, no-power flag 0xbc67a0. 0x4e4f50 zeroes the four and the bonus offset 0xbc6e88. Every Lua function turns its slot into an integer with __ftol and subtracts 1; its core refuses a slot outside 0 to 119.

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.