Created
October 20, 2013 22:16
-
-
Save nihilistzsche/7076049 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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