WoWInterface SVN PocketPlot

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 65 to Rev 66
    Reverse comparison

Rev 65 → Rev 66

PocketPlot/pocketplot.lua
132,6 → 132,28
end
end
 
local function SetPosition(frame)
if mover and mover:IsShown() then
local r,_,a,x,y = mover:GetPoint()
--frames lose their reference anchor frame when dragging... :/
if movershown == "Minimap" then
p = "UIParent"
else
p = "MinimapCluster"
end
db[frame] = {["r"]=r, ["p"]="UIParent",["a"]=a,["x"]=x,["y"]=y}
end
_G[frame]:ClearAllPoints()
_G[frame]:SetPoint(db[frame].r, _G[db[frame].p], db[frame].a, db[frame].x, db[frame].y)
if not _G["PP_old"..frame] then
_G["PP_old"..frame] = _G[frame].SetPoint
_G[frame].SetPoint = function(self, a,b,c,d,e, ...)
local a,b,c,d,e = db[frame].r, _G[db[frame].p], db[frame].a, db[frame].x, db[frame].y
return _G["PP_old"..frame](self, a,b,c,d,e, ...)
end
end
end
 
local function MoveFrames(frame)
local moverText
if not mover then
161,28 → 183,6
end
end
 
local function SetPosition(frame)
if mover and mover:IsShown() then
local r,_,a,x,y = mover:GetPoint()
--frames lose their reference anchor frame when dragging... :/
if movershown == "Minimap" then
p = "UIParent"
else
p = "MinimapCluster"
end
db[frame] = {["r"]=r, ["p"]="UIParent",["a"]=a,["x"]=x,["y"]=y}
end
_G[frame]:ClearAllPoints()
_G[frame]:SetPoint(db[frame].r, _G[db[frame].p], db[frame].a, db[frame].x, db[frame].y)
if not _G["PP_old"..frame] then
_G["PP_old"..frame] = _G[frame].SetPoint
_G[frame].SetPoint = function(self, a,b,c,d,e, ...)
local a,b,c,d,e = db[frame].r, _G[db[frame].p], db[frame].a, db[frame].x, db[frame].y
return _G["PP_old"..frame](self, a,b,c,d,e, ...)
end
end
end
 
local function MapSetup()
--restore moved frame positions--
for i=1, #frames do
PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot
## Author: Seerah
## Notes: Minimap customization
## Version: 2.11.1
## Version: 2.11.2
## X-Category: Minimap
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: PocketPlotDB