benilla-re systems structs docs

CGTooltip::BuildItem

function · ui · primitive

Address
0x52b650 · 11946 bytes, up to 0x52e4f9
Signature
uint32_t __thiscall (CGTooltip *this, int entry, uint64_t *rec, uint64_t *item, int nameOnly, int header, int valid, int rebuild, int ownLo, int ownHi)
Meaning
Adds the lines of an item tooltip from its record and the tooltip's instance fields, returning 1 for a timed line
Confidence
verified, proof one
Finding
ui/tooltipitem#the-builders-arguments
Test
ui::textglue_52b_accumulate, ui::textglue_52b_bias_round_pair, ui::textglue_52b_final_divide, ui::textglue_52b_half_quantize, ui::textglue_52b_scale_001

Finding: The builder's arguments in ui: The item tooltip builder

0x52b650 is a thiscall on the tooltip with nine stack arguments (ret 0x24). A fresh build clears the tooltip first; without an active player or, on a fresh build, without a cached record it hides the tooltip and returns 0. A complete build ends by showing the tooltip. The return value is 1 when a line that depends on a running time was emitted, else 0, and the methods hand it to Lua as the first result.

argumentholds
p1item entry
p2pointer to a GUID forwarded to the record query
p3pointer to the item's GUID, all zero when there is no object
p4nameOnly
p5prepend the gray CURRENTLY_EQUIPPED line
p6the instance fields of the tooltip are valid
p7incremental: do not clear, do not keep the arguments, separate the name with a newline
p8, p9low and high dword of the GUID of the unit whose gear counts for a set

The derivation is in the doc.

Callers 24

Callees 38

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