Skip to content

Commit

Permalink
coordinates fix for RareScanner icons
Browse files Browse the repository at this point in the history
  • Loading branch information
artscout committed Sep 5, 2024
1 parent a1a9478 commit 0cfa800
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Carbonite.Notes/NxFav.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1681,9 +1681,12 @@ function Nx.Notes:RareScanner(mapId)
for _,rspin in ipairs(rspins) do
if rspin.POI then
if rspin.POI.mapID == map.MapId then
local x = rspin.POI.x / 100
local y = rspin.POI.y / 100
local texture = rspin.POI.Texture
local x = rspin.normalizedX * 100
local y = rspin.normalizedY * 100
local texture = rspin.Texture:GetTexture()
if not texture then
texture = rspin.pin.POI.Texture
end
local scale = rspin.startScale
local wx, wy = Nx.Map:GetWorldPos(mapId,x,y)
local icon = CreateFrame("Button", "RSCarb", UIParent)
Expand Down

0 comments on commit 0cfa800

Please sign in to comment.