CGTooltip
struct · ui · 1120 bytes
- Vtable
0x808f60- Meaning
- Holds a GameTooltip: the frame, its owner and anchor, its lines and the fields a rebuild needs
- Confidence
- verified, proof one
- Finding
- ui/tooltipitem#fields-kept-for-a-rebuild
Finding: Fields kept for a rebuild in ui: The item tooltip builder
A fresh build copies p1, p3, p4, p5, p6, p8 and p9 into the tooltip, and 0x52e530 rebuilds from them
when a cache answers. The instance fields at +0x3d0 hold what the method knows about the item that the
record does not: enchantments, a timer, the creator, a random property, charges, a lock and durability.
Methods that have no such data leave +0x440 zero, and the builder ignores the block.
| field | holds |
|---|---|
+0x380, +0x398 | item GUID, entry |
+0x3a0, +0x3a4 | p4, p5 |
+0x3a8, +0x3ac | p8, p9 |
+0x3d0 to +0x3e8 | seven enchantment ids |
+0x408, +0x40c | remaining cooldown in milliseconds, spell id of the proposed enchantment |
+0x410, +0x418 | creator GUID, gift creator GUID |
+0x420, +0x424 | fourth item-link number (read by no function), random property id |
+0x428, +0x42c | charges (−1 when unset), wrapped flag |
+0x430 | lock id |
+0x434, +0x438 | maximum and current durability |
+0x440 | p6 |
The derivation is in the doc.
Fields 35
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0314 | 4 | void * | m_owner | Holds the frame the tooltip is anchored to, or null | verified, proof one | ui/tooltip#anchoring-again |
0x0318 | 4 | int32_t | m_anchorMode | Holds the anchor mode 0 to 8 | verified, proof one | ui/tooltip#anchoring-again |
0x031c | 4 | uint32_t | m_lineCount | Holds the number of lines in use | verified, proof one | ui/tooltipcontent#the-line-arrays |
0x0320 | 4 | uint32_t | m_lineLimit | Holds the number of lines the arrays hold | verified, proof one | ui/tooltipcontent#the-line-arrays |
0x0348 | 4 | void * | m_statusBar | Holds the health status bar attached to the tooltip, or null | verified, proof one | ui/tooltipunit#the-health-bar |
0x0368 | 8 | uint32_t[2] | m_unitGuid | Holds the GUID the unit builder last described, low then high | verified, proof one | ui/tooltipunit#who-the-builder-describes |
0x0370 | 8 | uint32_t[2] | m_objectGuid | Holds the GUID of the game object the tooltip describes, low then high | verified, proof one | ui/tooltipobject#the-game-object-tooltip |
0x0380 | 8 | uint32_t[2] | m_itemGuid | Holds the item GUID the item builder was given, low then high | verified, proof one | ui/tooltipitem#fields-kept-for-a-rebuild |
0x0388 | 8 | uint32_t[2] | m_corpseGuid | Holds the GUID of the corpse the tooltip describes, low then high | verified, proof one | ui/tooltipobject#the-corpse-tooltip |
0x0398 | 4 | uint32_t | m_itemEntry | Holds the item entry of the last item build | verified, proof one | ui/tooltipitem#fields-kept-for-a-rebuild |
0x039c | 4 | uint32_t | m_spellId | Holds the spell id of the last spell build | verified, proof one | ui/tooltipspell#the-builders-arguments |
0x03a0 | 4 | uint32_t | m_nameOnly | Holds the nameOnly argument of the last item build | verified, proof one | ui/tooltipitem#fields-kept-for-a-rebuild |
0x03a4 | 4 | uint32_t | m_equippedHeader | Holds the equipped header argument of the last item build | verified, proof one | ui/tooltipitem#fields-kept-for-a-rebuild |
0x03a8 | 8 | uint32_t[2] | m_setOwnerGuid | Holds the GUID of the unit whose gear counts for an item set, low then high | verified, proof one | ui/tooltipitem#fields-kept-for-a-rebuild |
0x03b0 | 4 | int32_t | m_pendingItems | Holds the number of item cache answers a spell tooltip waits for | verified, proof one | ui/tooltipspell#rebuilding-after-a-cache-answers |
0x03b4 | 4 | uint32_t | m_fading | Holds 1 while the tooltip fades out | verified, proof one | ui/tooltip#fading-out |
0x03bc | 4 | float | m_padding | Holds the extra plate width SetPadding stores, 0 from the constructor | verified, proof one | ui/tooltipcontent#padding |
0x03c4 | 4 | float | m_offsetX | Holds the owner offset in x | verified, proof one | ui/tooltip#anchoring-again |
0x03c8 | 4 | float | m_offsetY | Holds the owner offset in y | verified, proof one | ui/tooltip#anchoring-again |
0x03d0 | 28 | uint32_t[7] | m_enchantIds | Holds the seven enchantment ids an item without an object shows | verified, proof one | ui/tooltipenchant#enchantment-ids |
0x0408 | 4 | uint32_t | m_cooldownMs | Holds the remaining cooldown of the item in milliseconds | verified, proof one | ui/tooltipitemreq#the-cooldown-line |
0x040c | 4 | uint32_t | m_proposedEnchantSpell | Holds the spell id of the enchantment proposed in a trade | verified, proof one | ui/tooltipenchant#proposed-enchantment |
0x0410 | 8 | uint32_t[2] | m_creatorGuid | Holds the GUID of the item's creator, low then high | verified, proof one | ui/tooltipitemfoot#the-maker-line |
0x0418 | 8 | uint32_t[2] | m_giftCreatorGuid | Holds the GUID of the player who wrapped the item, low then high | verified, proof one | ui/tooltipitemfoot#the-maker-line |
0x0420 | 4 | uint32_t | m_linkNumber4 | Holds the fourth item link number, which nothing reads | verified, proof one | ui/tooltipitem#fields-kept-for-a-rebuild |
0x0424 | 4 | int32_t | m_randomProperty | Holds the random property id of the item | verified, proof one | ui/tooltipitemhead#name-and-header |
0x0428 | 4 | int32_t | m_charges | Holds the item's charges, −1 when unset | verified, proof one | ui/tooltipitemreq#spell-lines |
0x042c | 4 | uint32_t | m_wrapped | Holds 1 for a wrapped item | verified, proof one | ui/tooltipitem#wrapped-gifts |
0x0430 | 4 | uint32_t | m_lockId | Holds the lock id of the item | verified, proof one | ui/tooltipitemhead#the-lock-lines |
0x0434 | 4 | uint32_t | m_maxDurability | Holds the maximum durability of the item, −1 when unset | verified, proof one | ui/tooltipenchant#durability |
0x0438 | 4 | uint32_t | m_durability | Holds the current durability of the item | verified, proof one | ui/tooltipenchant#durability |
0x0440 | 4 | uint32_t | m_fieldsValid | Holds 1 when the item fields from 0x3d0 are valid | verified, proof one | ui/tooltipitem#fields-kept-for-a-rebuild |
0x0444 | 4 | uint32_t | m_scriptDefaultAnchor | Holds the OnTooltipSetDefaultAnchor script slot | verified, proof one | ui/tooltipobject#the-script-slots |
0x044c | 4 | uint32_t | m_scriptCleared | Holds the OnTooltipCleared script slot | verified, proof one | ui/tooltipobject#the-script-slots |
0x0454 | 4 | uint32_t | m_scriptAddMoney | Holds the OnTooltipAddMoney script slot | verified, proof one | ui/tooltipobject#the-script-slots |