Commit a3b876c3 authored by Simpy's avatar Simpy 🐹

the core for frame settings

parent 5c8a1300
......@@ -13,13 +13,23 @@ local version = format("[v|cFF508cf7%s|r]", Version)
local title = '|cfffe7b2cElvUI|r: |cFFF76ADBFCT|r'
local by = 'by |cFF8866ccSimpy|r and |cFF34dd61Lightspark|r (ls-)'
FCT.frameOptions = {
enable = {
order = 1,
type = "toggle",
name = L["Enable"],
},
}
function FCT.AddOptions(arg1, arg2)
if E.Options.args.ElvFCT.args[arg1].args[arg2] then return end
E.Options.args.ElvFCT.args[arg1].args[arg2] = {
order = FCT.OptionsTable[arg2][1],
name = L[FCT.OptionsTable[arg2][2]],
type = "group",
args = {}
get = function(info) return FCT.db[arg1].frames[arg2][ info[#info] ] end,
set = function(info, value) FCT.db[arg1].frames[arg2][ info[#info] ] = value end,
args = FCT.frameOptions
}
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment