WoWInterface SVN PocketPlot

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 84 to Rev 85
    Reverse comparison

Rev 84 → Rev 85

trunk/PocketPlot/PocketPlot.toc
2,7 → 2,7
## Title: PocketPlot
## Author: Seerah
## Notes: Minimap customization
## Version: 3.0.0
## Version: 3.0.1
## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets
## SavedVariables: PocketPlotDB
## SavedVariablesPerCharacter: PocketPlotPCDB
trunk/PocketPlot/pocketplot_options.lua
76,7 → 76,6
 
local defaults = {
shape = "Square",
blips = "PPblips",
lsmfont = "Negotiate Free",
fontFlag = "Outline",
zoneText = true,
99,22 → 98,23
insets = 4,
strata = "BACKGROUND",
level = 2,
--hideTracking = false,
}
 
local function SetPosition(frame)
local f, fname, fdata = _G[frame], frame, db[frame]
local f = _G[frame]
if mover and mover:IsShown() then
local r,_,a,x,y = mover:GetPoint()
fdata = {["r"]=r, ["p"]=UIParent,["a"]=a,["x"]=x,["y"]=y}
db[frame] = {["r"]=r, --["p"]=UIParent,
["a"]=a,["x"]=x,["y"]=y}
end
local fdata = db[frame]
f:ClearAllPoints()
f:SetPoint(fdata.r, fdata.p, fdata.a, fdata.x, fdata.y)
if not oldSetPoint[fname] then --prehook
oldSetPoint[fname] = f.SetPoint
f:SetPoint(fdata.r, UIParent, fdata.a, fdata.x, fdata.y)
if not oldSetPoint[frame] then --prehook
oldSetPoint[frame] = f.SetPoint
f.SetPoint = function(self, a,b,c,d,e, ...)
local a,b,c,d,e = fdata.r, fdata.p, fdata.a, fdata.x, fdata.y
return oldSetPoint[fname](self, a,b,c,d,e, ...)
local a,b,c,d,e = db[frame].r, UIParent, db[frame].a, db[frame].x, db[frame].y
return oldSetPoint[frame](self, a,b,c,d,e, ...)
end
end
end
132,7 → 132,7
moverText:SetParent(mover)
moverText:SetPoint("CENTER")
mover:SetScript("OnMouseDown", function() mover:StartMoving() end)
mover:SetScript("OnMouseUp", function() mover:StopMovingOrSizing() SetPosition(movershown) end)
mover:SetScript("OnMouseUp", function() mover:StopMovingOrSizing() print(movershown) SetPosition(movershown) end)
end
if frame == "None" then
mover:SetScale(1)