Quantcast

I believe that's all for editbox positioning

Darthpred [10-30-12 - 06:05]
I believe that's all for editbox positioning
Filename
ElvUI_SLE/config/profile.lua
ElvUI_SLE/layout/layout.lua
ElvUI_SLE/locales/english.lua
ElvUI_SLE/locales/german.lua
ElvUI_SLE/locales/russian.lua
ElvUI_SLE/modules/chat/options.lua
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"],
-					},
-				},
 			},
 		},
 	},