chat: add option to hide combatlog

This commit is contained in:
shagu
2017-08-17 22:19:17 +02:00
parent c4996bc35b
commit 77d357ea06
3 changed files with 12 additions and 0 deletions
+10
View File
@@ -313,12 +313,22 @@ pfUI:RegisterModule("chat", function ()
end
if i == 1 then
-- General
tab:SetParent(pfUI.chat.left.panelTop)
frame:SetParent(pfUI.chat.left)
frame.isDocked = true
frame:SetPoint("TOPLEFT", pfUI.chat.left ,"TOPLEFT", default_border, -panelheight)
frame:SetPoint("BOTTOMRIGHT", pfUI.chat.left ,"BOTTOMRIGHT", -default_border, panelheight)
elseif i == 2 then
-- Combat Log
if C.chat.global.combathide == "1" then
FCF_UnDockFrame(frame)
FCF_Close(frame)
elseif not frame.isDocked and not frame:IsVisible() then
FCF_DockFrame(frame)
end
elseif i == 3 and C.chat.right.enable == "1" then
-- Loot & Spam
tab:SetParent(pfUI.chat.right.panelTop)
frame:SetParent(pfUI.chat.right)
frame:ClearAllPoints()