Skip to content

Commit

Permalink
WorldMapTooltip isn't a thing any more
Browse files Browse the repository at this point in the history
  • Loading branch information
kemayo committed Mar 12, 2019
1 parent 48590ad commit 47957ca
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions integration/handynotes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ do
end

function handler:OnEnter(uiMapID, coord)
local tooltip = self:GetParent() == WorldMapFrame:GetCanvas() and WorldMapTooltip or GameTooltip
local tooltip = GameTooltip
if self:GetCenter() > UIParent:GetCenter() then -- compare X coordinate
tooltip:SetOwner(self, "ANCHOR_LEFT")
else
Expand Down Expand Up @@ -122,11 +122,7 @@ function handler:OnEnter(uiMapID, coord)
end

function handler:OnLeave(uiMapID, coord)
if self:GetParent() == WorldMapFrame:GetCanvas() then
WorldMapTooltip:Hide()
else
GameTooltip:Hide()
end
GameTooltip:Hide()
end

local clicked_zone, clicked_coord
Expand Down

0 comments on commit 47957ca

Please sign in to comment.