mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-25 21:40:49 +00:00
fixed mapreveal "cluttering"
Mapreveal is showing always the proper grey areas now
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user