Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coordinates fix for RareScanner icons #382

Merged
merged 1 commit into from
Sep 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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