From 3178444469a04136bf5cb9e067ff54acfa8f8a69 Mon Sep 17 00:00:00 2001 From: Darthpred Date: Thu, 30 Aug 2012 08:55:47 +0400 Subject: [PATCH] Disable editbox positioning when ElvUI chat module is disabled --- ElvUI_SLE/layout/layout.lua | 1 + ElvUI_SLE/modules/chat/options.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/ElvUI_SLE/layout/layout.lua b/ElvUI_SLE/layout/layout.lua index f6fe6a0..7dbe2a6 100644 --- a/ElvUI_SLE/layout/layout.lua +++ b/ElvUI_SLE/layout/layout.lua @@ -83,6 +83,7 @@ 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 diff --git a/ElvUI_SLE/modules/chat/options.lua b/ElvUI_SLE/modules/chat/options.lua index 9251243..a24e4ba 100644 --- a/ElvUI_SLE/modules/chat/options.lua +++ b/ElvUI_SLE/modules/chat/options.lua @@ -38,6 +38,7 @@ E.Options.args.sle.args.chat = { 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 = { -- 1.7.9.5