Skip to content

Commit

Permalink
Merge pull request #382 from artscout/master
Browse files Browse the repository at this point in the history
coordinates fix for RareScanner icons
  • Loading branch information
IrcDirk authored Sep 5, 2024
2 parents a1a9478 + 0cfa800 commit 5e74f0e
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 5e74f0e

Please sign in to comment.