worldmap-reveal: add option to hide exploration point
This commit is contained in:
@@ -8,6 +8,9 @@ local module = ShaguTweaks:register({
|
|||||||
expansions = { ["vanilla"] = true, ["tbc"] = false },
|
expansions = { ["vanilla"] = true, ["tbc"] = false },
|
||||||
maintainer = "@shagu (GitHub)",
|
maintainer = "@shagu (GitHub)",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
config = {
|
||||||
|
["map.reveal.marker"] = "on",
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Vanilla WoW MapOverlayData
|
-- Vanilla WoW MapOverlayData
|
||||||
@@ -239,7 +242,7 @@ module.enable = function(self)
|
|||||||
explore.tex:SetAllPoints()
|
explore.tex:SetAllPoints()
|
||||||
|
|
||||||
-- show exploration points
|
-- show exploration points
|
||||||
if enabled and not alreadyknown[textureName] then
|
if self.config["map.reveal.marker"] == "on" and enabled and not alreadyknown[textureName] then
|
||||||
explore.tex:SetTexture("Interface\\WorldMap\\WorldMap-MagnifyingGlass")
|
explore.tex:SetTexture("Interface\\WorldMap\\WorldMap-MagnifyingGlass")
|
||||||
explore:Show()
|
explore:Show()
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user