benilla-re systems structs docs

LootButton::OnClick

function · ui · orchestration

Address
0x4c1820 · 81 bytes, up to 0x4c1870
Signature
void __thiscall (LootButton *this, uint32_t button, uint32_t scripted)
Meaning
Runs the button click, then takes the row unless a modifier key is down or the click was scripted
Confidence
verified, proof one
Finding
ui/loot#the-row-click

Finding: The row click in ui: the loot window

0x4c1820(button code, scripted) is the click. A scripted click (Button:Click()) does nothing at all, not even the <OnClick> script. A real click first runs the button's own click, which fires the <OnClick> script, then returns if Shift, Control or Alt is down, and otherwise takes the row (0x4c2790(slot, 0)). The button code is not examined, so a left and a right release both take, and a quick second click takes a second row.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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