benilla-re systems structs docs

CGTooltip::BuildSpell

function · ui · primitive

Address
0x52e610 · 4531 bytes, up to 0x52f7c2
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.

argumentholds
p1spell id
p2compact: no cost, cast time, reagents or chance lines, and a trimmed requirement set
p3the spell's remaining cooldown in milliseconds, or 0
p4the caster is the pet, so the pet's casting data and form are used
p5show the rank beside the name
p6a talent record, or 0
p7incremental: add to the tooltip as the next-rank block

The derivation is in the doc.

Callers 11

Callees 29

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