WoWInterface SVN PocketPlot

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 82 to Rev 83
    Reverse comparison

Rev 82 → Rev 83

trunk/PocketPlot/pocketplot.lua
16,6 → 16,7
PP_oldMinimap, PP_oldDurabilityFrame, PP_oldVehicleSeatIndicator = nil
local _G = _G
local mover, moverText
local wasIndoors
local coordframe = CreateFrame("Frame", nil, Minimap)
coordframe:SetHeight(28) --height of clock button
coordframe:SetWidth(100)
235,7 → 236,12
Minimap:SetScale(db.scale) --this says that the minimap is set to 90% scale
Minimap:SetFrameStrata(db.strata)
Minimap:SetFrameLevel(db.level)
Minimap:SetAlpha(db.mmAlpha)
if db.mmAlpha < 1 and IsIndoors() then
wasIndoors = true
else
--keep alpha of 1 while indoors - if mmAlpha is < 1, it will update when going outdoors
Minimap:SetAlpha(db.mmAlpha)
end
 
--ZONE TEXT
MinimapZoneTextButton:SetParent("Minimap")
512,7 → 518,7
},
mmAlpha = {
name = "Minimap Alpha",
desc = "Set the transparency of the minimap.",
desc = "Set the transparency of the minimap when outdoors. Does not take effect when indoors.",
type = "range",
min = 0.05,
max = 1,
520,7 → 526,18
get = function() return db.mmAlpha end,
set = function(_,value)
db.mmAlpha = value
Minimap:SetAlpha(value)
if not IsIndoors() then
Minimap:SetAlpha(value)
else
wasIndoors = true
end
if db.mmAlpha < 1 then
PocketPlot:RegisterEvent("ZONE_CHANGED_INDOORS")
PocketPlot:RegisterEvent("ZONE_CHANGED")
else
PocketPlot:RegisterEvent("ZONE_CHANGED_INDOORS")
PocketPlot:RegisterEvent("ZONE_CHANGED")
end
end,
order = 4,
},
1034,8 → 1051,13
 
MapSetup()
CoordPosition()
 
if db.mmAlpha < 1 then
PocketPlot:RegisterEvent("ZONE_CHANGED_INDOORS")
PocketPlot:RegisterEvent("ZONE_CHANGED")
end
 
PocketPlot:UnregisterEvent("PLAYER_LOGIN")
PlayerLogin = nil
end
 
--this is here instead of in the above function because Grid would throw some dumb error that shouldn't have been occuring, imo
1043,4 → 1065,20
 
 
PocketPlot:RegisterEvent("PLAYER_LOGIN")
PocketPlot:SetScript("OnEvent", PlayerLogin)
PocketPlot:SetScript("OnEvent", function(self,event)
if event == "PLAYER_LOGIN" then
PlayerLogin()
elseif event == "ZONE_CHANGED_INDOORS" then
Minimap:SetAlpha(1)
Minimap:SetZoom(1)
Minimap:SetZoom(0)
wasIndoors = true
else --"ZONE_CHANGED"
if wasIndoors then
if not IsIndoors() then
Minimap:SetAlpha(db.mmAlpha)
wasIndoors = false
end
end
end
end)
trunk/PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot
## Author: Seerah
## Notes: Minimap customization
## Version: 2.18.3
## Version: 2.18.4
## X-Category: Minimap
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: PocketPlotDB
trunk/PocketPlot/libs/AceGUI-3.0-SharedMediaWidgets/prototypes.lua
3,7 → 3,7
local DataVersion = 9001 -- dev version always overwrites everything else :)
--@end-debug@]===]
--@non-debug@
local DataVersion = 54
local DataVersion = 56
--@end-non-debug@
local AGSMW = LibStub:NewLibrary("AceGUISharedMediaWidgets-1.0", DataVersion)
 
11,7 → 11,6
return -- already loaded and no upgrade necessary
end
 
LoadAddOn("LibSharedMedia-3.0")
local AceGUI = LibStub("AceGUI-3.0")
local Media = LibStub("LibSharedMedia-3.0")