fix(map): minimap range cutoff no longer clips visible icons (#17)

The cutoff hid icons beyond its yard value before checking the minimap's
visible radius, so the default 100 hid icons that were clearly on the
minimap (view radius is 133-466 yd by zoom). Now it only clips icons
outside the visible circle: HBD's pin renderer gates the cutoff on
dist > 1, and QuestieMap FadeLogic raises the effective cutoff to at
least the current minimap view radius via new HBDPins:GetMinimapRadius().
This commit is contained in:
Xurkon
2026-06-10 19:24:39 -05:00
parent ff08c38fa0
commit 1c0a891efd
3 changed files with 27 additions and 2 deletions
+12 -1
View File
@@ -661,7 +661,18 @@ function QuestieMap:DrawManualIcon(data, areaID, x, y, typ)
local distance = math.sqrt(xd * xd + yd * yd)
local minimapVisibilityCutoff = self.minimapVisibilityCutoff or profile.minimapIconRangeCutoff or 100
if (distance > minimapVisibilityCutoff) then
-- Only let the range cutoff hide icons that fall OUTSIDE the minimap's
-- visible radius. Icons within the visible minimap circle must always show,
-- otherwise a cutoff smaller than the current view radius (133-466 yd by
-- zoom) hides quest icons that are clearly on the minimap (#17). The cutoff
-- then only limits how far edge-floating icons reach.
local minimapRadius = (HBDPins and HBDPins.GetMinimapRadius and HBDPins:GetMinimapRadius()) or 0
local effectiveCutoff = minimapVisibilityCutoff
if minimapRadius and minimapRadius > effectiveCutoff then
effectiveCutoff = minimapRadius
end
if (distance > effectiveCutoff) then
self:FakeHide()
return
elseif self.hidden then