Fixes to compensate for resent elvui changes
Darthpred [03-20-15 - 14:31]
Fixes to compensate for resent elvui changes
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