From bb495e33824b1e87ab45e72529a10fbbccce7b0c Mon Sep 17 00:00:00 2001 From: Albert Valiev Date: Thu, 25 Jul 2024 20:48:52 +0200 Subject: [PATCH] Set invisible tooltip so goto target have some name --- Carbonite.Notes/NxFav.lua | 4 ++++ Carbonite/NxMap.lua | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Carbonite.Notes/NxFav.lua b/Carbonite.Notes/NxFav.lua index 54ef4d7..208b61a 100644 --- a/Carbonite.Notes/NxFav.lua +++ b/Carbonite.Notes/NxFav.lua @@ -1694,6 +1694,8 @@ function Nx.Notes:RareScanner(mapId) icon:SetWidth(scale) icon:SetPoint("CENTER", tmpFrame, "TOPLEFT", x*tmpFrame:GetWidth(), -y*tmpFrame:GetHeight()) local rsnote = map:AddIconPt("!RSR", wx, wy, level, "FFFFFF", texture) + local tooltip = rspin.POI.name + map:SetIconTip(rsnote,tooltip) map:SetIconUserData(rsnote, rspin) end else @@ -1721,6 +1723,8 @@ function Nx.Notes:RareScanner(mapId) icon:SetWidth(scale) icon:SetPoint("CENTER", tmpFrame, "TOPLEFT", x*tmpFrame:GetWidth(), -y*tmpFrame:GetHeight()) local rsnote = map:AddIconPt("!RSR", wx, wy, level, color, texture) + local tooltip = rspin.pin.POI.name + map:SetIconTip(rsnote,tooltip) map:SetIconUserData(rsnote, rspin.pin) end end diff --git a/Carbonite/NxMap.lua b/Carbonite/NxMap.lua index 8909ed6..a1bd438 100644 --- a/Carbonite/NxMap.lua +++ b/Carbonite/NxMap.lua @@ -8774,6 +8774,7 @@ function Nx.Map:IconOnEnter (motion) rspin:OnMouseEnter() tooltip = ExtToolTip:Acquire("RsSimpleMapToolTip") tooltip:SmartAnchorTo(self) + this.NxTip = nil end end @@ -8894,6 +8895,7 @@ function Nx.Map:IconOnLeave (motion) if this.NXData.iconType == "!RSR" and RareScanner then local rspin = this.NXData.UData rspin:OnMouseLeave() + this.NxTip = rspin.POI.name end end