update tables

This commit is contained in:
Crum
2018-12-06 19:55:03 -06:00
parent cb90d0f1e5
commit 4d0cc6c85c
68 changed files with 705 additions and 597 deletions
+6 -6
View File
@@ -306,9 +306,9 @@ function E:CalculateMoverPoints(mover, nudgeX, nudgeY)
end
function E:UpdatePositionOverride(name)
if _G[name] and _G[name]:GetScript("OnDragStop") then
_G[name]:GetScript("OnDragStop")(_G[name])
end
local frame = _G[name]
local OnDragStop = frame and frame.GetScript and frame:GetScript("OnDragStop")
if OnDragStop then OnDragStop(frame) end
end
function E:HasMoverBeenMoved(name)
@@ -371,7 +371,7 @@ end
function E:ToggleMovers(show, moverType)
self.configMode = show
for name, _ in pairs(E.CreatedMovers) do
for name in pairs(E.CreatedMovers) do
if not show then
_G[name]:Hide()
else
@@ -430,7 +430,7 @@ end
function E:ResetMovers(arg)
if arg == "" or arg == nil then
for name, _ in pairs(E.CreatedMovers) do
for name in pairs(E.CreatedMovers) do
local f = _G[name]
local point, anchor, secondaryPoint, x, y = split(",", E.CreatedMovers[name].point)
f:ClearAllPoints()
@@ -444,7 +444,7 @@ function E:ResetMovers(arg)
end
self.db.movers = nil
else
for name, _ in pairs(E.CreatedMovers) do
for name in pairs(E.CreatedMovers) do
for key, value in pairs(E.CreatedMovers[name]) do
if key == "text" then
if arg == value then