mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Introduce Item::TooltipItem::CurrentID -- the single "what item is this tooltip showing" resolver. It trusts the link-path itemID (+0x398), and otherwise resolves the CGItem GUID (+0x380) but only when no unit / gameobject / spell id is set, since the clear does not zero the item GUID and it goes stale after the tooltip moves on. - GameTooltip:GetItem / HasItem now route through CurrentID: fixes GetItem returning nil for CGItem tooltips (bag / equipped / merchant / loot) and HasItem false-positiving on a unit tooltip after an item hover. - Add GameTooltip:IsEquippedItem() (3.3.5 backport, registry index 63), resolving the displayed item via CurrentID + the equipment-slot walk. - SetHyperlinkCompareItem: the comparisonTooltip (4th arg) fallback uses CurrentID; stat deltas now show by default and hide only for an explicit false / 0 (was: show only for a truthy shift). - GetItem round-trips the random-suffix id in the link for auction/compare items (no CGItem instance) via the compare descriptor. - FrameXML GameTooltip_ShowCompareItem falls back to self.compareLink, so a caller can hand it an explicit link when the tooltip's item state was rebuilt out from under it (e.g. an AH addon appending source lines). - Offsets: compare-descriptor + FontString offsets; drop the duplicate tooltip item-id/guid offsets in favor of the canonical OFF_TOOLTIP_*.