From ac591fb42aad3eeea4722bcd7e88043ee118ce2e Mon Sep 17 00:00:00 2001 From: Darthpred Date: Fri, 20 Mar 2015 18:31:19 +0400 Subject: [PATCH] Fixes to compensate for resent elvui changes --- ElvUI_SLE/modules/chat.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ElvUI_SLE/modules/chat.lua b/ElvUI_SLE/modules/chat.lua index 0803a69..620b22f 100644 --- a/ElvUI_SLE/modules/chat.lua +++ b/ElvUI_SLE/modules/chat.lua @@ -83,12 +83,12 @@ end local PixelOff = E.PixelMode and 31 or 27 function CH:PositionChat(override) - if not self.db.lockPositions or ((InCombatLockdown() and not override and self.initialMove) or (IsMouseButtonDown("LeftButton") and not override)) then return end + if ((InCombatLockdown() and not override and self.initialMove) or (IsMouseButtonDown("LeftButton") and not override)) then return end if not RightChatPanel or not LeftChatPanel then return; end RightChatPanel:SetSize(E.db.chat.separateSizes and E.db.chat.panelWidthRight or E.db.chat.panelWidth, E.db.chat.separateSizes and E.db.chat.panelHeightRight or E.db.chat.panelHeight) LeftChatPanel:SetSize(E.db.chat.panelWidth, E.db.chat.panelHeight) - if E.private.chat.enable ~= true then return end + if not self.db.lockPositions or E.private.chat.enable ~= true then return end local chat, chatbg, tab, id, point, button, isDocked, chatFound for _, frameName in pairs(CHAT_FRAMES) do @@ -175,7 +175,8 @@ function CH:PositionChat(override) tab:SetParent(UIParent) chat:SetParent(UIParent) - CH:SetupChatTabs(tab, true) + local fade = E.db["chat"].fadeUndockedTabs + CH:SetupChatTabs(tab, fade and true or false) else if E.db.sle.datatext.chathandle then if id ~= 2 and not (id > NUM_CHAT_WINDOWS) then -- 1.7.9.5