Skip to content

Commit

Permalink
Set invisible tooltip so goto target have some name
Browse files Browse the repository at this point in the history
  • Loading branch information
artscout committed Jul 25, 2024
1 parent 294925c commit bb495e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Carbonite.Notes/NxFav.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions Carbonite/NxMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8774,6 +8774,7 @@ function Nx.Map:IconOnEnter (motion)
rspin:OnMouseEnter()
tooltip = ExtToolTip:Acquire("RsSimpleMapToolTip")
tooltip:SmartAnchorTo(self)
this.NxTip = nil
end
end

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit bb495e3

Please sign in to comment.