CGTooltip::BuildSpell
function · ui · primitive
- Address
0x52e610· 4531 bytes, up to0x52f7c2- Signature
uint32_t __thiscall (CGTooltip *this, uint32_t spell, uint32_t compact, uint32_t cooldownMs, uint32_t pet, uint32_t showRank, void *talent, uint32_t rebuild)- Meaning
- Adds the lines of a spell tooltip, returning 1 when it shows the cooldown line
- Confidence
- verified, proof one
- Finding
- ui/tooltipspell#the-builders-arguments
- Test
ui::glue_512_52e610_timer_ratios
Finding: The builder's arguments in ui: The spell tooltip
0x52e610(this = tooltip; …) takes seven stack arguments (ret 0x1c). Without the active player it hides the
tooltip and returns 0; a spell id with no record does the same on a fresh build. It returns 1 when it shows
the cooldown line, else 0.
| argument | holds |
|---|---|
| p1 | spell id |
| p2 | compact: no cost, cast time, reagents or chance lines, and a trimmed requirement set |
| p3 | the spell's remaining cooldown in milliseconds, or 0 |
| p4 | the caster is the pet, so the pet's casting data and form are used |
| p5 | show the rank beside the name |
| p6 | a talent record, or 0 |
| p7 | incremental: add to the tooltip as the next-rank block |
The derivation is in the doc.
Callers 11
- CGTooltip::OnSpellItemAnswer ui
- GameTooltip::SetHyperlink ui
- GameTooltip::SetAction ui
- GameTooltip::SetPetAction ui
- GameTooltip::SetShapeshift ui
- GameTooltip::SetSpell ui
- GameTooltip::SetTrainerService ui
- GameTooltip::SetCraftSpell ui
- GameTooltip::SetTalent ui
- GameTooltip::SetQuestRewardSpell ui
- GameTooltip::SetQuestLogRewardSpell ui
Callees 29
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetFactionStanding ui
- ExpandSpellText ui
- CGTooltip::AddTalentRequirements ui
- CGTooltip::BuildItem ui
- FormatDuration ui
- GameTooltipClear ui
- GameTooltipAddDoubleLine ui
- GameTooltipAddGoldDoubleLine ui
- GameTooltipAddLine ui
- DBCache_ItemStats_C_int_HASHKEY_INT_::GetRecord dbcache
- FindEquippedItemForSpell objectlayer
- CGUnit_C::KnowsSpell objectlayer
- CGUnit_C::KnowsHigherRank objectlayer
- CGUnit_C::IsShapeShifted objectlayer
- CGUnit_C::GetGenderedText objectlayer
- FindInventoryItemByEntry objectlayer
- SStrCopy storm
- SStrPack storm
- SStrPrintf storm
- AdjustCategoryRecovery spell
- GetSpellPowerCost spell
- GetSpellPowerPerSecond spell
- GetSpellCastTime spell
- Spell_C::GetMinMaxRange spell
- ApplySpellModifierInt spell
- GetPowerDisplayDivisor spell
- FrameScript_GetText ui
Calls and jumps by a bare address, from tables/calls.tsv.