benilla-re systems structs docs

GameTooltip::SetMerchantCompareItem

function · ui · primitive

Address
0x536080 · 629 bytes, up to 0x5362f4
Signature
int __fastcall (lua_State *L)
Meaning
Fills the tooltip with the equipped item a merchant row compares against, returning 1 or nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/merchant#shopping-tooltips
Test
ui::luabind_536080_set_merchant_compare_item

Finding: Shopping tooltips in ui: buy-back, shopping tooltips and repair

GameTooltip:SetMerchantCompareItem(slot [, offset]) is 0x536080. It resolves the receiver like every tooltip method (three errors for a non-table, a non-framescript object and a wrong type), and slot must be a number or numeric string (Usage: SetMerchantCompareItem("slot" [, offset])). It returns the number 1 when a tooltip was filled and nil otherwise, never raising for data. It fills the tooltip with the equipped item chosen below, using the item builder with p4 0 and p5 1: the full tooltip of that item, headed by the gray CURRENTLY_EQUIPPED line. No delta is computed. The call does not clear the tooltip when it returns nil.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 16

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