/trunk
name = childname, |
desc = childname, |
type = "toggle", |
set = function(info,val) |
set = function(_,val) |
if val then |
MultiScreenSupport:setParentAnchor(child) |
else |
end |
_G['multiscreensupportsave']['standart'][childname] = val |
end, |
get = function(info) |
get = function(_) |
if _G['multiscreensupportsave']['standart'][childname] == nil then |
_G['multiscreensupportsave']['standart'][childname] = false |
end |
table.sort(allActiveFramesOrder) |
table.sort(allFramesOrder) |
j=2 |
table.foreach(allActiveFramesOrder, function(k,v) |
table.foreach(allActiveFramesOrder, function(_,v) |
setting[v].order = j |
j=j+1 |
end) |
} |
j=j+1 |
end |
table.foreach(allFramesOrder, function(k,v) |
table.foreach(allFramesOrder, function(_,v) |
setting[v].order = j |
j=j+1 |
end) |
} |
local childs = { WorldMapScreenAnchor, MinimapCluster } |
local childs = { WorldMapScreenAnchor } |
i = 2 |
for _, child in ipairs(childs) do |
if not child:IsForbidden() then |
name = childname, |
desc = childname, |
type = "toggle", |
set = function(info,val) |
set = function(_,val) |
if val then |
MultiScreenSupport:setSpecificParentAnchor(child) |
else |
end |
_G['multiscreensupportsave']['specific'][childname] = val |
end, |
get = function(info) |
get = function(_) |
if _G['multiscreensupportsave']['specific'][childname] == nil then |
_G['multiscreensupportsave']['specific'][childname] = false |
end |
MultiScreenSupport:RegisterEvent("ADDON_LOADED") |
end |
function MultiScreenSupport:ADDON_LOADED(event, addon) |
function MultiScreenSupport:ADDON_LOADED(_, addon) |
local allActiveFramesOrder = {} |
local allFramesOrder = {} |
local setting = {} |
name = childname, |
desc = childname, |
type = "toggle", |
set = function(info,val) |
set = function(_,val) |
if val then |
MultiScreenSupport:setParentAnchor(child) |
else |
end |
_G['multiscreensupportsave']['standart'][childname] = val |
end, |
get = function(info) |
get = function(_) |
if _G['multiscreensupportsave']['standart'][childname] == nil then |
_G['multiscreensupportsave']['standart'][childname] = false |
end |
table.sort(allActiveFramesOrder) |
table.sort(allFramesOrder) |
local j=2 |
table.foreach(allActiveFramesOrder, function(k,v) |
table.foreach(allActiveFramesOrder, function(_,v) |
setting[v].order = j |
j=j+1 |
end) |
} |
j=j+1 |
end |
table.foreach(allFramesOrder, function(k,v) |
table.foreach(allFramesOrder, function(_,v) |
setting[v].order = j |
j=j+1 |
end) |
_G['multiscreensupportsave']['standart'][rest2] = false |
end |
if command == 'frame' then |
local arg |
local arg = GetMouseFocus() |
if rest2 ~= "" then |
arg = _G[rest2] |
else |
arg = GetMouseFocus() |
end |
if arg ~= nil and arg:GetName() ~= nil then |
local point, relativeTo, relativePoint, xOfs, yOfs = arg:GetPoint() |