diff --git a/ElvUI_SLE/modules/backgrounds/options.lua b/ElvUI_SLE/modules/backgrounds/options.lua index 88732c5..d88ba9f 100644 --- a/ElvUI_SLE/modules/backgrounds/options.lua +++ b/ElvUI_SLE/modules/backgrounds/options.lua @@ -220,6 +220,7 @@ E.Options.args.sle.args.backgrounds.args.right = { order = 2, type = "group", name = L["Right BG"], + get = function(info) return E.db.sle.backgrounds.right[ info[#info] ] end, disabled = function() return not E.db.sle.backgrounds.right.enabled end, args = { width = { @@ -228,7 +229,6 @@ E.Options.args.sle.args.backgrounds.args.right = { name = L['Width'], desc = L["Sets width of the frame"], min = 150, max = E.screenwidth, step = 1, - get = function(info) return E.db.sle.backgrounds.right.width end, set = function(info, value) E.db.sle.backgrounds.right.width = value; BG:FramesSize() end, }, height = { @@ -237,7 +237,6 @@ E.Options.args.sle.args.backgrounds.args.right = { name = L['Height'], desc = L["Sets height of the frame"], min = 50, max = E.screenheight/2, step = 1, - get = function(info) return E.db.sle.backgrounds.right.height end, set = function(info, value) E.db.sle.backgrounds.right.height = value; BG:FramesSize() end, }, spacer = { @@ -251,7 +250,6 @@ E.Options.args.sle.args.backgrounds.args.right = { name = L['X Offset'], desc = L["Sets X offset of the frame"], min = -E.screenwidth/2, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.sle.backgrounds.right.xoffset end, set = function(info, value) E.db.sle.backgrounds.right.xoffset = value; BG:FramesPositions() end, }, yoffset = { @@ -260,7 +258,6 @@ E.Options.args.sle.args.backgrounds.args.right = { name = L['Y Offset'], desc = L["Sets Y offset of the frame"], min = -21, max = E.screenheight, step = 1, - get = function(info) return E.db.sle.backgrounds.right.yoffset end, set = function(info, value) E.db.sle.backgrounds.right.yoffset = value; BG:FramesPositions() end, }, texture = { @@ -269,7 +266,6 @@ E.Options.args.sle.args.backgrounds.args.right = { width = 'full', name = L["Texture"], desc = L["Set the texture to use in this frame. Requirements are the same as the chat textures."], - get = function(info) return E.db.sle.backgrounds.right.texture end, set = function(info, value) E.db.sle.backgrounds.right.texture = value E:UpdateMedia() @@ -293,7 +289,6 @@ E.Options.args.sle.args.backgrounds.args.right = { type = "toggle", name = L["Hide in Pet Batlle"], desc = L["Show/Hide this frame during Pet Battles."], - get = function(info) return E.db.sle.backgrounds.right.pethide end, set = function(info, value) E.db.sle.backgrounds.right.pethide = value; BG:RegisterHide() end }, }, @@ -303,6 +298,7 @@ E.Options.args.sle.args.backgrounds.args.action = { order = 4, type = "group", name = L["Actionbar BG"], + get = function(info) return E.db.sle.backgrounds.action[ info[#info] ] end, disabled = function() return not E.db.sle.backgrounds.action.enabled end, args = { width = { @@ -311,7 +307,6 @@ E.Options.args.sle.args.backgrounds.args.action = { name = L['Width'], desc = L["Sets width of the frame"], min = 200, max = E.screenwidth, step = 1, - get = function(info) return E.db.sle.backgrounds.action.width end, set = function(info, value) E.db.sle.backgrounds.action.width = value; BG:FramesSize() end, }, height = { @@ -320,7 +315,6 @@ E.Options.args.sle.args.backgrounds.args.action = { name = L['Height'], desc = L["Sets height of the frame"], min = 50, max = E.screenheight/2, step = 1, - get = function(info) return E.db.sle.backgrounds.action.height end, set = function(info, value) E.db.sle.backgrounds.action.height = value; BG:FramesSize() end, }, spacer = { @@ -334,7 +328,6 @@ E.Options.args.sle.args.backgrounds.args.action = { name = L['X Offset'], desc = L["Sets X offset of the frame"], min = -E.screenwidth/2, max = E.screenwidth/2, step = 1, - get = function(info) return E.db.sle.backgrounds.action.xoffset end, set = function(info, value) E.db.sle.backgrounds.action.xoffset = value; BG:FramesPositions() end, }, yoffset = { @@ -343,7 +336,6 @@ E.Options.args.sle.args.backgrounds.args.action = { name = L['Y Offset'], desc = L["Sets Y offset of the frame"], min = -21, max = E.screenheight, step = 1, - get = function(info) return E.db.sle.backgrounds.action.yoffset end, set = function(info, value) E.db.sle.backgrounds.action.yoffset = value; BG:FramesPositions() end, }, texture = { @@ -376,7 +368,6 @@ E.Options.args.sle.args.backgrounds.args.action = { type = "toggle", name = L["Hide in Pet Batlle"], desc = L["Show/Hide this frame during Pet Battles."], - get = function(info) return E.db.sle.backgrounds.action.pethide end, set = function(info, value) E.db.sle.backgrounds.action.pethide = value; BG:RegisterHide() end }, },