From 62a782750222d93c36f9353a0c2c64ce843efa46 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Sat, 30 Jun 2012 12:06:14 +0400 Subject: [PATCH] Renaming stuff. part 3 --- ElvUI_SLE/config/profile.lua | 2 +- ElvUI_SLE/config/sle_global.lua | 2 +- ElvUI_SLE/core/options.lua | 12 ++++++------ ElvUI_SLE/layout/layout.lua | 20 ++++++++++---------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/ElvUI_SLE/config/profile.lua b/ElvUI_SLE/config/profile.lua index 0981d5a..7d63ea1 100644 --- a/ElvUI_SLE/config/profile.lua +++ b/ElvUI_SLE/config/profile.lua @@ -1,6 +1,6 @@ local E, L, V, P, G = unpack(ElvUI); --Inport: Engine, Locales, PrivateDB, ProfileDB, GlobalDB -P['dpe'] = { +P['sle'] = { --Background frames ['backgrounds'] = { ['bottom'] = { diff --git a/ElvUI_SLE/config/sle_global.lua b/ElvUI_SLE/config/sle_global.lua index b9a1d99..c9d006d 100644 --- a/ElvUI_SLE/config/sle_global.lua +++ b/ElvUI_SLE/config/sle_global.lua @@ -18,7 +18,7 @@ V['channelcheck'] = { ['time'] = 3, } -V['dpe'] = { +V['sle'] = { --Auras Frame ['auras'] = { ['size'] = 30, diff --git a/ElvUI_SLE/core/options.lua b/ElvUI_SLE/core/options.lua index 9c51354..fbb2147 100644 --- a/ElvUI_SLE/core/options.lua +++ b/ElvUI_SLE/core/options.lua @@ -4,7 +4,7 @@ local AB = E:GetModule('ActionBars') local CH = E:GetModule('Chat') --Main options group -E.Options.args.dpe = { +E.Options.args.sle = { type = "group", name = L["Shadow & Light Edit"], order = 50, @@ -39,16 +39,16 @@ E.Options.args.dpe = { name = L["Aura Size"], desc = L["Sets size of auras. This setting is character based."], min = 20, max = 50, step = 1, - get = function(info) return E.private.dpe.auras.size end, - set = function(info, value) E.private.dpe.auras.size = value; StaticPopup_Show("PRIVATE_RL") end, + get = function(info) return E.private.sle.auras.size end, + set = function(info, value) E.private.sle.auras.size = value; StaticPopup_Show("PRIVATE_RL") end, }, petautocast = { order = 5, type = "toggle", name = L["Pet autocast corners"], desc = L["Show/hide tringles in corners of autocastable buttons."], - get = function(info) return E.db.dpe.petbar.autocast end, - set = function(info, value) E.db.dpe.petbar.autocast = value; AB:UpdatePet() end + get = function(info) return E.db.sle.petbar.autocast end, + set = function(info, value) E.db.sle.petbar.autocast = value; AB:UpdatePet() end }, }, }, @@ -56,7 +56,7 @@ E.Options.args.dpe = { } --Credits -E.Options.args.dpe.args.credits = { +E.Options.args.sle.args.credits = { order = 200, type = 'group', name = L["Credits"], diff --git a/ElvUI_SLE/layout/layout.lua b/ElvUI_SLE/layout/layout.lua index 88af016..2b3f327 100644 --- a/ElvUI_SLE/layout/layout.lua +++ b/ElvUI_SLE/layout/layout.lua @@ -5,9 +5,9 @@ local DTP = E:GetModule('DTPanels'); local PANEL_HEIGHT = 22; local SIDE_BUTTON_WIDTH = 16; -LO.ToggleChatPanelsDPE = LO.ToggleChatPanels +LO.ToggleChatPanelsSLE = LO.ToggleChatPanels function LO:ToggleChatPanels() - LO.ToggleChatPanelsDPE(self) + LO.ToggleChatPanelsSLE(self) --I've made replacement only for show both setting. I'm using only those atm. will do more later if E.db.general.panelBackdrop == 'SHOWBOTH' then @@ -17,8 +17,8 @@ function LO:ToggleChatPanels() RightChatTab:Show() LeftChatDataPanel:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', SIDE_BUTTON_WIDTH, -21) --lower line of datapanel - LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.dpe.datatext.chatleft.width, -1) --upper line of datapanel - RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.dpe.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel + LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.sle.datatext.chatleft.width, -1) --upper line of datapanel + RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.sle.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel RightChatDataPanel:Point('TOPRIGHT', RightChatPanel, 'BOTTOMRIGHT', -SIDE_BUTTON_WIDTH, -1) --upper-right corner of right datapanel LeftChatToggleButton:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', 0, -21) RightChatToggleButton:Point('BOTTOMRIGHT', RightChatPanel, 'BOTTOMRIGHT', 0, -21) @@ -29,8 +29,8 @@ function LO:ToggleChatPanels() RightChatTab:Hide() LeftChatDataPanel:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', SIDE_BUTTON_WIDTH, -21) --lower line of datapanel - LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.dpe.datatext.chatleft.width, -1) --upper line of datapanel - RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.dpe.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel + LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.sle.datatext.chatleft.width, -1) --upper line of datapanel + RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.sle.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel RightChatDataPanel:Point('TOPRIGHT', RightChatPanel, 'BOTTOMRIGHT', -SIDE_BUTTON_WIDTH, -1) --upper-right corner of right datapanel LeftChatToggleButton:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', 0, -21) RightChatToggleButton:Point('BOTTOMRIGHT', RightChatPanel, 'BOTTOMRIGHT', 0, -21) @@ -41,8 +41,8 @@ function LO:ToggleChatPanels() RightChatTab:Hide() LeftChatDataPanel:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', SIDE_BUTTON_WIDTH, -21) --lower line of datapanel - LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.dpe.datatext.chatleft.width, -1) --upper line of datapanel - RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.dpe.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel + LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.sle.datatext.chatleft.width, -1) --upper line of datapanel + RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.sle.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel RightChatDataPanel:Point('TOPRIGHT', RightChatPanel, 'BOTTOMRIGHT', -SIDE_BUTTON_WIDTH, -1) --upper-right corner of right datapanel LeftChatToggleButton:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', 0, -21) RightChatToggleButton:Point('BOTTOMRIGHT', RightChatPanel, 'BOTTOMRIGHT', 0, -21) @@ -53,8 +53,8 @@ function LO:ToggleChatPanels() RightChatTab:Show() LeftChatDataPanel:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', SIDE_BUTTON_WIDTH, -21) --lower line of datapanel - LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.dpe.datatext.chatleft.width, -1) --upper line of datapanel - RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.dpe.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel + LeftChatDataPanel:Point('TOPRIGHT', LeftChatPanel, 'BOTTOMLEFT', 16 + E.db.sle.datatext.chatleft.width, -1) --upper line of datapanel + RightChatDataPanel:Point('BOTTOMLEFT', RightChatPanel, 'BOTTOMRIGHT', - E.db.sle.datatext.chatright.width - 16, -21) --lower-left corner of right datapanel RightChatDataPanel:Point('TOPRIGHT', RightChatPanel, 'BOTTOMRIGHT', -SIDE_BUTTON_WIDTH, -1) --upper-right corner of right datapanel LeftChatToggleButton:Point('BOTTOMLEFT', LeftChatPanel, 'BOTTOMLEFT', 0, -21) RightChatToggleButton:Point('BOTTOMRIGHT', RightChatPanel, 'BOTTOMRIGHT', 0, -21) -- 1.7.9.5