Skip to content

Commit

Permalink
Fix issue #118
Browse files Browse the repository at this point in the history
  • Loading branch information
IrcDirk committed Nov 6, 2022
1 parent 7eda270 commit a83655d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion Carbonite/NxMap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6183,6 +6183,17 @@ end
-- Check world zone hotspots type
-- This is very fast. No need to make a quad tree

function Nx.Map:CheckDropdownListVisible()
for i = 1, 10 do
local _DropdownList = _G["DropDownList" .. i]
if _DropdownList and _DropdownList:IsVisible() and _DropdownList:GetFrameStrata() == "FULLSCREEN_DIALOG" then
return true
end
end

return false
end

function Nx.Map:CheckWorldHotspotsType (wx, wy, quad)

for n, spot in ipairs (quad) do
Expand All @@ -6193,7 +6204,7 @@ function Nx.Map:CheckWorldHotspotsType (wx, wy, quad)
if spot.MapId ~= curId then

-- Nx.prt ("hotspot %s %s %s %s %s", spot.MapId, spot.WX1, spot.WX2, spot.WY1, spot.WY2)
self:SetCurrentMap (spot.MapId)
if not Nx.Map:CheckDropdownListVisible() then self:SetCurrentMap (spot.MapId) end
end
Nx.Map.MouseIsOverMap = spot.MapId
self.WorldHotspotTipStr = spot.NxTipBase .. "\n"
Expand Down

0 comments on commit a83655d

Please sign in to comment.