From 70b9e0afd480a0d495d89e6d0fc353e5010b3ce2 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Tue, 30 Oct 2012 10:05:37 +0400 Subject: [PATCH] I believe that's all for editbox positioning --- ElvUI_SLE/config/profile.lua | 5 ----- ElvUI_SLE/layout/layout.lua | 17 ----------------- ElvUI_SLE/locales/english.lua | 2 -- ElvUI_SLE/locales/german.lua | 2 -- ElvUI_SLE/locales/russian.lua | 2 -- ElvUI_SLE/modules/chat/options.lua | 13 ------------- 6 files changed, 41 deletions(-) diff --git a/ElvUI_SLE/config/profile.lua b/ElvUI_SLE/config/profile.lua index 76a44f6..0e7e763 100644 --- a/ElvUI_SLE/config/profile.lua +++ b/ElvUI_SLE/config/profile.lua @@ -133,11 +133,6 @@ P['sle'] = { ['position'] = "uib_vert", }, - --Chat - ['chat'] = { - ['editbox'] = "Down", - }, - ['vengeance'] = { ['enable'] = true, ['width'] = 408, diff --git a/ElvUI_SLE/layout/layout.lua b/ElvUI_SLE/layout/layout.lua index e7af1db..a4a0e58 100644 --- a/ElvUI_SLE/layout/layout.lua +++ b/ElvUI_SLE/layout/layout.lua @@ -75,20 +75,3 @@ function LO:CreateChatPanels() RightChatTab:Point('TOPRIGHT', RightChatPanel, 'TOPRIGHT', -2, -2) RightChatTab:Point('BOTTOMLEFT', RightChatPanel, 'TOPLEFT', 2, -PANEL_HEIGHT) end - ---Repositioning function for editbox -function LO:EditboxPos() - if not E.private.chat.enable then return end - for i = 1, NUM_CHAT_WINDOWS do - local editbox = _G["ChatFrame"..i.."EditBox"] - local parent - if E.db.sle.chat.editbox == "Down" then - parent = LeftChatDataPanel - else - parent = LeftChatTab - end - editbox:ClearAllPoints() - editbox:SetPoint("TOPLEFT", parent, "TOPLEFT") - editbox:SetPoint("BOTTOMRIGHT", parent, "BOTTOMRIGHT") - end -end diff --git a/ElvUI_SLE/locales/english.lua b/ElvUI_SLE/locales/english.lua index cfbb1b2..b946d1a 100644 --- a/ElvUI_SLE/locales/english.lua +++ b/ElvUI_SLE/locales/english.lua @@ -69,8 +69,6 @@ L["Show/Hide this frame during Pet Battles."] = true L["Chat Options"] = true L["Chat Editbox History"] = true L["Amount of messages to save. Set to 0 to disable."] = true -L["Editbox Position"] = true -L["Select if the editbox will be above or below chat."] = true --Datatexts-- L["LFR Dragon Soul"] = true diff --git a/ElvUI_SLE/locales/german.lua b/ElvUI_SLE/locales/german.lua index 13c645d..482b827 100644 --- a/ElvUI_SLE/locales/german.lua +++ b/ElvUI_SLE/locales/german.lua @@ -62,8 +62,6 @@ L["Transparent"] = "Transparent" L["Chat Options"] = "Chat Optionen" L["Chat Editbox History"] = "Chat Editbox History" L["Amount of messages to save. Set to 0 to disable."] = "Anzahl der Nachrichten die gespeichert werden. Wähle 0 zum deaktivieren." -L["Editbox Position"] = "Editbox Position" -L["Select if the editbox will be above or below chat."] = "Wähle ob die Editbox über oder unter dem Chat angezeigt wird." --Datatexts-- L["LFR Dragon Soul"] = "LFR Drachenseele" diff --git a/ElvUI_SLE/locales/russian.lua b/ElvUI_SLE/locales/russian.lua index e183e9b..9ace401 100644 --- a/ElvUI_SLE/locales/russian.lua +++ b/ElvUI_SLE/locales/russian.lua @@ -69,8 +69,6 @@ L["Show/Hide this frame during Pet Battles."] = "Показать/скрыть L["Chat Options"] = "Настройки чата" L["Chat Editbox History"] = "История чата" L["Amount of messages to save. Set to 0 to disable."] = "Количество сообщений, введенных вами, которое будет сохранено между сеансами" -L["Editbox Position"] = "Позиция поля ввода" -L["Select if the editbox will be above or below chat."] = "Определяет будет ли поле ввода отображаться над или под чатом." --Datatexts-- L["LFR Dragon Soul"] = "Душа Дракона ЛФР" diff --git a/ElvUI_SLE/modules/chat/options.lua b/ElvUI_SLE/modules/chat/options.lua index 7fbc642..5ca6515 100644 --- a/ElvUI_SLE/modules/chat/options.lua +++ b/ElvUI_SLE/modules/chat/options.lua @@ -25,19 +25,6 @@ E.Options.args.sle.args.chat = { get = function(info) return E.db.chat.editboxhistory end, set = function(info, value) E.db.chat.editboxhistory = value; end, }, - position = { - order = 3, - type = "select", - name = L["Editbox Position"], - desc = L["Select if the editbox will be above or below chat."], - disabled = function() return not E.private.chat.enable end, - get = function(info) return E.db.sle.chat.editbox end, - set = function(info, value) E.db.sle.chat.editbox = value; E:GetModule('Layout'):EditboxPos() end, - values = { - ['Down'] = L["Below"], - ['Up'] = L["Above"], - }, - }, }, }, }, -- 1.7.9.5