fixed mapreveal "cluttering"

Mapreveal is showing always the proper grey areas now
This commit is contained in:
Meow
2026-03-21 11:46:47 +01:00
parent ad98484aa3
commit 33f4522d12
+6 -9
View File
@@ -59,7 +59,7 @@ pfUI:RegisterModule("mapreveal", "vanilla:tbc", function ()
local function pfGetOverlay(idx) local function pfGetOverlay(idx)
if not pfOverlays[idx] then if not pfOverlays[idx] then
pfOverlays[idx] = WorldMapDetailFrame:CreateTexture("pfReveal"..idx, "ARTWORK") pfOverlays[idx] = WorldMapDetailFrame:CreateTexture("pfReveal"..idx, "BORDER")
end end
return pfOverlays[idx] return pfOverlays[idx]
end end
@@ -151,8 +151,9 @@ pfUI:RegisterModule("mapreveal", "vanilla:tbc", function ()
explore:Hide() explore:Hide()
end end
-- render overlay texture tiles -- render overlay texture tiles on BORDER draw layer
if C.appearance.worldmap.mapreveal == "1" or alreadyknown[textureName] then -- Blizzard's explored overlays on ARTWORK draw on top of BORDER
if C.appearance.worldmap.mapreveal == "1" then
local numH = math.ceil(textureWidth / 256) local numH = math.ceil(textureWidth / 256)
local numV = math.ceil(textureHeight / 256) local numV = math.ceil(textureHeight / 256)
local texPixW, texFileW, texPixH, texFileH local texPixW, texFileW, texPixH, texFileH
@@ -192,11 +193,7 @@ pfUI:RegisterModule("mapreveal", "vanilla:tbc", function ()
explorecaches[name] = explorecaches[name] or {} explorecaches[name] = explorecaches[name] or {}
explorecaches[name][tex] = true explorecaches[name][tex] = true
if not alreadyknown[textureName] then tex:SetVertexColor(r,g,b,a)
tex:SetVertexColor(r,g,b,a)
else
tex:SetVertexColor(1,1,1,1)
end
tex:Show() tex:Show()
end end
end end
@@ -212,4 +209,4 @@ pfUI:RegisterModule("mapreveal", "vanilla:tbc", function ()
origUpdate(unpack(arg)) origUpdate(unpack(arg))
pfWorldMapFrame_Update() pfWorldMapFrame_Update()
end end
end) end)