-- [ ORBIT TOOLTIP ]----------------------------------------------------------------------------------
local _, Orbit = ...

-- Private tooltip — owning the shared global GameTooltip taints it (12.0+), and Blizzard's secret unit data is rejected on a tainted object. Positioning is native GameTooltip behavior: call sites pass real anchors (ANCHOR_RIGHT, ANCHOR_CURSOR_RIGHT, ...) and Blizzard's semantics apply unmodified.
Orbit.Tooltip = CreateFrame("GameTooltip", "OrbitTooltip", UIParent, "GameTooltipTemplate")
Orbit.Tooltip:SetClampedToScreen(true)

-- OnLeave handler counterpart to Blizzard's GameTooltip_Hide (which hides the global, not this frame).
function Orbit.TooltipHide()
    Orbit.Tooltip:Hide()
end
