/
"MiniMapChallengeMode", |
"GarrisonLandingPageMinimapButton", |
} |
--local stratae = {"BACKGROUND", "LOW", "MEDIUM", "HIGH", "DIALOG"} |
local stratae = {"BACKGROUND", "LOW", "MEDIUM", "HIGH", "DIALOG"} |
local allshapes = { "3-Corner BL", |
"3-Corner BR", |
"3-Corner TL", |
end, |
order = 6, |
}, |
--[[strata = { |
strata = { |
name = "Minimap Strata", |
desc = "Set the strata of the minimap and how it layers with other elements in your interface.", |
type = "select", |
Minimap:SetFrameStrata(db.strata) |
end, |
order = 7, |
},]] |
--[[level = { |
}, |
level = { |
name = "Strata Level", |
desc = "Nudge the minimap up and down different levels on its frame strata.", |
type = "range", |
Minimap:SetFrameLevel(db.level) |
end, |
order = 8, |
},]] |
}, |
battleHide = { |
name = "Hide in Pet Battle", |
desc = "Hide the minimap during pet battles.", |
PocketPlot.SetShape = function() |
Minimap:SetMaskTexture("Interface\\AddOns\\PocketPlot\\media\\"..db.shape) |
if HybridMinimap then |
HybridMinimap.MapCanvas:SetUseMaskTexture(false) |
HybridMinimap.CircleMask:SetTexture("Interface\\AddOns\\PocketPlot\\media\\"..db.shape) |
HybridMinimap.MapCanvas:SetUseMaskTexture(true) |
end |
if db.shape == "Faded Circle" then |
bgTex:SetTexture("Interface\\AddOns\\PocketPlot\\media\\Circle") |
elseif db.shape == "Faded Edges" or db.shape == "Faded Square" then |
local function MapSetup() |
Minimap:SetScale(db.scale) |
--Minimap:SetFrameStrata(db.strata) |
Minimap:SetFrameStrata("LOW") |
--Minimap:SetFrameLevel(db.level) |
Minimap:SetFrameLevel(101) |
Minimap:SetFrameStrata(db.strata) |
Minimap:SetFrameLevel(db.level) |
--ZONE TEXT |
MinimapZoneTextButton:SetParent("Minimap") |
MinimapZoneTextButton:ClearAllPoints() |
MinimapZoneTextButton:SetPoint("TOP", Minimap, "TOP", 0, -1 + db.zoneTextOffset) --where the zone text is located |
--MinimapZoneTextButton:SetFrameLevel(db.level + 2) |
MinimapZoneTextButton:SetFrameLevel(db.level + 2) |
MinimapZoneText:ClearAllPoints() |
MinimapZoneText:SetPoint("CENTER") |
if not db.zoneText then |
MinimapBorder:Hide() |
MinimapBorderTop:Hide() |
PocketPlot.SetShape() |
--bg:SetFrameLevel(db.level - 1) |
bg:SetFrameLevel(99) |
bg:SetFrameStrata("BACKGROUND") |
bg:SetFrameLevel(db.level - 1) |
bg:SetPoint("CENTER", Minimap, "CENTER") |
bgTex:SetAllPoints() |
local size = Minimap:GetWidth() + db.insets |
Minimap:SetScript("OnMouseUp", function(self, click) |
if click == "RightButton" then |
if IsShiftKeyDown() then |
--MiniMapTrackingButton:Click() |
MiniMapTracking_OnMouseDown() |
MiniMapTrackingButton:Click() |
else |
GameTimeFrame_OnClick(GameTimeFrame) |
end |
end |
f:RegisterEvent("PLAYER_LOGIN") |
f:RegisterEvent("ADDON_LOADED") |
f:SetScript("OnEvent", function(self, event, addon) |
f:SetScript("OnEvent", function(self, event) |
if event == "PLAYER_LOGIN" then |
PlayerLogin() |
elseif event == "ADDON_LOADED" and addon == "Blizzard_HybridMinimap" then |
PocketPlot.SetShape() |
f:UnregisterEvent("ADDON_LOADED") |
elseif event == "PLAYER_REGEN_DISABLED" or event == "PET_BATTLE_OPENING_START" then |
Minimap:Hide() |
elseif event == "PLAYER_REGEN_ENABLED" or event == "PET_BATTLE_CLOSE" then |
## Title: PocketPlot |
## Author: Seerah |
## Notes: Minimap customization |
## Version: 3.2 |
## Version: 3.1.3 |
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets |
## SavedVariables: PocketPlotDB |
## SavedVariablesPerCharacter: PocketPlotPCDB |