WoWInterface SVN PocketPlot

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 89 to Rev 90
    Reverse comparison

Rev 89 → Rev 90

trunk/PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot
## Author: Seerah
## Notes: Minimap customization
## Version: 3.1.3
## Version: 3.2
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: PocketPlotDB
## SavedVariablesPerCharacter: PocketPlotPCDB
trunk/PocketPlot/pocketplot_options.lua
13,7 → 13,7
"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",
234,7 → 234,7
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",
251,8 → 251,8
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",
265,7 → 265,7
Minimap:SetFrameLevel(db.level)
end,
order = 8,
},
},]]
battleHide = {
name = "Hide in Pet Battle",
desc = "Hide the minimap during pet battles.",
trunk/PocketPlot/pocketplot.lua
16,6 → 16,11
 
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
144,14 → 149,16
 
local function MapSetup()
Minimap:SetScale(db.scale)
Minimap:SetFrameStrata(db.strata)
Minimap:SetFrameLevel(db.level)
--Minimap:SetFrameStrata(db.strata)
Minimap:SetFrameStrata("LOW")
--Minimap:SetFrameLevel(db.level)
Minimap:SetFrameLevel(101)
 
--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
162,7 → 169,9
MinimapBorder:Hide()
MinimapBorderTop:Hide()
PocketPlot.SetShape()
bg:SetFrameLevel(db.level - 1)
--bg:SetFrameLevel(db.level - 1)
bg:SetFrameLevel(99)
bg:SetFrameStrata("BACKGROUND")
bg:SetPoint("CENTER", Minimap, "CENTER")
bgTex:SetAllPoints()
local size = Minimap:GetWidth() + db.insets
249,7 → 258,8
Minimap:SetScript("OnMouseUp", function(self, click)
if click == "RightButton" then
if IsShiftKeyDown() then
MiniMapTrackingButton:Click()
--MiniMapTrackingButton:Click()
MiniMapTracking_OnMouseDown()
else
GameTimeFrame_OnClick(GameTimeFrame)
end
291,9 → 301,13
end
 
f:RegisterEvent("PLAYER_LOGIN")
f:SetScript("OnEvent", function(self, event)
f:RegisterEvent("ADDON_LOADED")
f:SetScript("OnEvent", function(self, event, addon)
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