From c78ab11f7ba0f73a4d4c1907d83dca401fb438a7 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sun, 10 Feb 2013 13:31:45 +0400 Subject: [PATCH] revert stuff --- ElvUI_SLE/config/sle_private.lua | 4 ---- ElvUI_SLE/modules/backgrounds/backgrounds.lua | 1 - ElvUI_SLE/modules/backgrounds/options.lua | 27 ++++++++----------------- 3 files changed, 8 insertions(+), 24 deletions(-) diff --git a/ElvUI_SLE/config/sle_private.lua b/ElvUI_SLE/config/sle_private.lua index 729fe4f..5be6f9d 100644 --- a/ElvUI_SLE/config/sle_private.lua +++ b/ElvUI_SLE/config/sle_private.lua @@ -1,10 +1,6 @@ local E, L, V, P, G, _ = unpack(ElvUI); --Inport: Engine, Locales, ProfileDB, GlobalDB V['sle'] = { - ['module'] = { - ['backgrounds'] = false, - - }, ['dbm'] = { ['size'] = 10, }, diff --git a/ElvUI_SLE/modules/backgrounds/backgrounds.lua b/ElvUI_SLE/modules/backgrounds/backgrounds.lua index bd8a029..4aba735 100644 --- a/ElvUI_SLE/modules/backgrounds/backgrounds.lua +++ b/ElvUI_SLE/modules/backgrounds/backgrounds.lua @@ -94,7 +94,6 @@ function BG:RegisterHide() end function BG:Initialize() - if not E.private.sle.module.backgrounds then return end BG:FramesCreate() BG:UpdateFrames() BG:RegisterHide() diff --git a/ElvUI_SLE/modules/backgrounds/options.lua b/ElvUI_SLE/modules/backgrounds/options.lua index 8d02c59..3cb9ae7 100644 --- a/ElvUI_SLE/modules/backgrounds/options.lua +++ b/ElvUI_SLE/modules/backgrounds/options.lua @@ -26,63 +26,52 @@ E.Options.args.sle.args.backgrounds = { type = "description", name = L["BG_DESC"] }, - enabled = { - order = 3, - type = "toggle", - name = L["Enable"], - get = function(info) return E.private.sle.module.backgrounds end, - set = function(info, value) E.private.sle.module.backgrounds = value; E:StaticPopup_Show("PRIVATE_RL") end - }, Reset = { - order = 4, + order = 3, type = 'execute', name = L['Restore Defaults'], desc = L["Reset these options to defaults"], func = function() E:GetModule('SLE'):Reset(nil, nil, nil, true) end, }, spacerreset = { - order = 5, + order = 4, type = 'description', name = "", }, bottom_enabled = { - order = 6, + order = 5, type = "toggle", name = L["Bottom BG"], desc = L["Show/Hide this frame."], - disabled = function() return not E.private.sle.module.backgrounds end, get = function(info) return E.db.sle.backgrounds.bottom.enabled end, set = function(info, value) E.db.sle.backgrounds.bottom.enabled = value; BG:FramesVisibility() end }, left_enabled = { - order = 7, + order = 6, type = "toggle", name = L["Left BG"], desc = L["Show/Hide this frame."], - disabled = function() return not E.private.sle.module.backgrounds end, get = function(info) return E.db.sle.backgrounds.left.enabled end, set = function(info, value) E.db.sle.backgrounds.left.enabled = value; BG:FramesVisibility() end }, spacer = { - order = 8, + order = 7, type = "description", name = "", }, right_enabled = { - order = 9, + order = 8, type = "toggle", name = L["Right BG"], desc = L["Show/Hide this frame."], - disabled = function() return not E.private.sle.module.backgrounds end, get = function(info) return E.db.sle.backgrounds.right.enabled end, set = function(info, value) E.db.sle.backgrounds.right.enabled = value; BG:FramesVisibility() end }, action_enabled = { - order = 10, + order = 9, type = "toggle", name = L["Actionbar BG"], desc = L["Show/Hide this frame."], - disabled = function() return not E.private.sle.module.backgrounds end, get = function(info) return E.db.sle.backgrounds.action.enabled end, set = function(info, value) E.db.sle.backgrounds.action.enabled = value; BG:FramesVisibility() end }, @@ -96,7 +85,7 @@ for k,v in pairs(drop) do name = L[k], order = v[2], get = function(info) return E.db.sle.backgrounds[v[1]][ info[#info] ] end, - disabled = function() return (not E.private.sle.module.backgrounds or not E.db.sle.backgrounds[v[1]].enabled) end, + disabled = function() return not E.db.sle.backgrounds[v[1]].enabled end, args = { width = { --setting width (obviously) order = 1, -- 1.7.9.5