Skip to content

Instantly share code, notes, and snippets.

@nihilistzsche
Created October 20, 2013 22:16
Show Gist options
  • Save nihilistzsche/7076049 to your computer and use it in GitHub Desktop.
Save nihilistzsche/7076049 to your computer and use it in GitHub Desktop.
local profile=ElvDB.profiles["Celenii - Lightbringer"]
local E=ElvUI[1]
function deepcopy(t)
if type(t) ~= 'table' then return t end
local mt = getmetatable(t)
local res = {}
for k,v in pairs(t) do
if type(v) == 'table' then
v = deepcopy(v)
end
res[k] = v
end
setmetatable(res,mt)
return res
end
E.db.unitframe = deepcopy(profile.unitframe);
local keys = { "Party", "Raid10", "Raid25", "Raid40" }
for _, key in pairs(keys) do
local fkey = "ElvUF_"..key.."Mover";
E.db.movers[fkey] = profile.movers[fkey]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment