From 4a0e16ba06405ff06e8e33f35804d125036f2f46 Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 20 Aug 2017 23:46:18 +0200 Subject: [PATCH] chat: rework combatlog parenting --- modules/chat.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/chat.lua b/modules/chat.lua index 9ea6d2a4..a565be52 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -314,9 +314,9 @@ pfUI:RegisterModule("chat", function () if i == 1 then -- General + FCF_DockFrame(frame) 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 @@ -324,8 +324,12 @@ pfUI:RegisterModule("chat", function () if C.chat.global.combathide == "1" then FCF_UnDockFrame(frame) FCF_Close(frame) - elseif not frame.isDocked and not frame:IsVisible() then + elseif frame.isDocked then FCF_DockFrame(frame) + tab:SetParent(pfUI.chat.left.panelTop) + frame:SetParent(pfUI.chat.left) + frame:SetPoint("TOPLEFT", pfUI.chat.left ,"TOPLEFT", default_border, -panelheight) + frame:SetPoint("BOTTOMRIGHT", pfUI.chat.left ,"BOTTOMRIGHT", -default_border, panelheight) end elseif i == 3 and C.chat.right.enable == "1" then -- Loot & Spam @@ -337,6 +341,8 @@ pfUI:RegisterModule("chat", function () frame:Show() end + FCF_DockUpdate() + -- hide textures for j,v in ipairs({tab:GetRegions()}) do if j==5 then v:SetTexture(0,0,0,0) end