CGTooltip::BuildItem
function · ui · primitive
- Address
0x52b650· 11946 bytes, up to0x52e4f9- 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.
| argument | holds |
|---|---|
| p1 | item entry |
| p2 | pointer to a GUID forwarded to the record query |
| p3 | pointer to the item's GUID, all zero when there is no object |
| p4 | nameOnly |
| p5 | prepend the gray CURRENTLY_EQUIPPED line |
| p6 | the instance fields of the tooltip are valid |
| p7 | incremental: do not clear, do not keep the arguments, separate the name with a newline |
| p8, p9 | low and high dword of the GUID of the unit whose gear counts for a set |
The derivation is in the doc.
Callers 24
- CGTooltip::OnCacheAnswer ui
- CGTooltip::BuildSpell ui
- GameTooltip::SetHyperlink ui
- GameTooltip::SetAction ui
- GameTooltip::SetInventoryItem ui
- GameTooltip::SetLootItem ui
- GameTooltip::SetQuestItem ui
- GameTooltip::SetQuestLogItem ui
- GameTooltip::SetTrainerService ui
- GameTooltip::SetTradeSkillItem ui
- GameTooltip::SetCraftItem ui
- GameTooltip::SetCraftSpell ui
- GameTooltip::SetMerchantItem ui
- GameTooltip::SetTradePlayerItem ui
- GameTooltip::SetTradeTargetItem ui
- GameTooltip::SetBagItem ui
- GameTooltip::SetSendMailItem ui
- GameTooltip::SetInboxItem ui
- GameTooltip::SetAuctionSellItem ui
- GameTooltip::SetAuctionItem ui
- GameTooltip::SetAuctionCompareItem ui
- GameTooltip::SetMerchantCompareItem ui
- GameTooltip::SetBuybackItem ui
- GameTooltip::SetLootRollItem ui
Callees 38
- __alloca_probe crt
- __ftol crt
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetFactionStanding ui
- ExpandSpellText ui
- GetBaseCursorMode ui
- SkillColorPointer ui
- FormatDuration ui
- GameTooltipClear ui
- GameTooltipAddDoubleLine ui
- GameTooltipAddLine ui
- ItemNameCacheGetRecord dbcache
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- DBCache::NameCache::GetRecord dbcache
- PetitionCacheGetRecord dbcache
- FormatItemName objectlayer
- CGItem_C::GetRemainingMs objectlayer
- CGItem_C::GetEnchantmentRemainingMs objectlayer
- CGItem_C::IsBound objectlayer
- CGItem_C::GetRepairCost objectlayer
- FindLockOpener objectlayer
- GetProficiencyMask objectlayer
- CGPlayer_C::FindSkillIndex objectlayer
- CGPlayer_C::HasRecordSkill objectlayer
- IsEffect28SpellKnown objectlayer
- CGPlayer_C::GetPvpRankName objectlayer
- CGPlayer_C::GetVisibleItem objectlayer
- CGUnit_C::KnowsSpell objectlayer
- CGUnit_C::KnowsHigherRank objectlayer
- CGUnit_C::GetGenderedText objectlayer
- FindInventoryItemByEntry objectlayer
- SStrCopy storm
- SStrPack storm
- SStrPrintf storm
- FrameScriptExecuteVarArgs ui
- FrameScript_GetText ui
- _qsort crt
Calls and jumps by a bare address, from tables/calls.tsv.