benilla-re systems structs docs

WorldClickNothing

function · ui · primitive

Address
0x492d30 · 318 bytes, up to 0x492e6d
Signature
void __thiscall (void *this)
Meaning
Handles a click on nothing: clears or confirms the payload, walks, deselects
Confidence
verified, proof one
Finding
ui/mouseover#the-nothing-leg
Test
ui::glue_492_492d30_sqlen_edge

Finding: The nothing leg in ui: the world under the pointer

The nothing leg notes whether any payload is held. Action 4 clears the payload. Action 1 asks to confirm destroying an item payload that has a source container, and otherwise clears the payload. The target is deselected only for the left button (action 1), when no payload was held on entry and the CVar deselectOnClick (default 1) is nonzero. With no payload held, a click whose press and release points are not identical, by the active mover being able to auto-interact (objectlayer/unitmovement), starts a walk along the heading for the right button (0x610100) and clears nothing. The identity test compares the squared distance with the constant at 0x7ffd74, which is 0.0.

The derivation is in the doc.

Callers 1

Callees 6

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