benilla-re systems structs docs

CGGameUI::SetCursorVirtualItem

function · ui · orchestration

Address
0x4950f0 · 122 bytes, up to 0x495169
Signature
void __fastcall (uint32_t entry, uint32_t displayId, uint32_t index, uint32_t mode)
Meaning
Puts a preview payload of kind 5, 7 or 9 on the cursor
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/cursor#item-and-preview-setters

Finding: Item and preview setters in ui: the cursor payload

0x494b60(slot, unlock, guid, containerGuid, count) is the item setter. A zero GUID leaves the cursor empty. It shows the action bar grid (ACTIONBAR_SHOWGRID) and sets the latch when 0x5d8c00 or 0x5d9ff0 accepts the item, and signals CURSOR_UPDATE last. The preview setter 0x4950f0(entry, displayId, index, mode) stores its three words, shows the grid for kind 7 only, sets the picture from the display id, plays the item sound for the display id and signals CURSOR_UPDATE.

The derivation is in the doc.

Callers 4

Callees 5

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