WoWInterface SVN PocketPlot

Compare Revisions

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

Rev 90 → Rev 89

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,11 → 16,6
 
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
149,16 → 144,14
 
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
169,9 → 162,7
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
258,8 → 249,7
Minimap:SetScript("OnMouseUp", function(self, click)
if click == "RightButton" then
if IsShiftKeyDown() then
--MiniMapTrackingButton:Click()
MiniMapTracking_OnMouseDown()
MiniMapTrackingButton:Click()
else
GameTimeFrame_OnClick(GameTimeFrame)
end
301,13 → 291,9
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
trunk/PocketPlot/PocketPlot.toc
2,7 → 2,7
## 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