chat: force chat positions on reconf

This commit is contained in:
shagu
2016-09-18 22:57:35 +02:00
parent 0c83f4600e
commit 730545624a
+16 -8
View File
@@ -187,22 +187,30 @@ pfUI:RegisterModule("chat", function ()
end
function pfUI.chat.SetupPositions()
-- set position of Main Window
ChatFrame1:ClearAllPoints()
ChatFrame1:SetPoint("TOPLEFT", pfUI.chat.left ,"TOPLEFT", 5, -25)
ChatFrame1:SetPoint("BOTTOMRIGHT", pfUI.chat.left ,"BOTTOMRIGHT", -5, 25)
FCF_SetLocked(ChatFrame1, 1)
FCF_SetWindowColor(ChatFrame1, 0, 0, 0);
FCF_SetWindowAlpha(ChatFrame1, 0);
FCF_SetChatWindowFontSize(ChatFrame1, 12)
FCF_SetLocked(ChatFrame3, 1)
FCF_SetWindowColor(ChatFrame3, 0, 0, 0);
FCF_SetWindowAlpha(ChatFrame3, 0);
FCF_SetChatWindowFontSize(ChatFrame3, 12)
FCF_SetWindowName(ChatFrame3, "Loot & Spam", 1 )
FCF_UnDockFrame(ChatFrame3)
-- set position of Loot & Spam
if not ChatFrame3.isDocked == 1 or not ChatFrame3:IsShown() then
FCF_OpenNewWindow("Loot & Spam")
end
FCF_SetWindowColor(ChatFrame3, 0, 0, 0);
FCF_SetWindowAlpha(ChatFrame3, 0);
FCF_SetChatWindowFontSize(ChatFrame3, 12)
FCF_SetWindowName(ChatFrame3, "Loot & Spam", 1 )
FCF_UnDockFrame(ChatFrame3)
ChatFrame3:ClearAllPoints()
ChatFrame3:SetPoint("TOPLEFT", pfUI.chat.right ,"TOPLEFT", 5, -25)
ChatFrame3:SetPoint("BOTTOMRIGHT", pfUI.chat.right ,"BOTTOMRIGHT", -5, 25)
FCF_SetLocked(ChatFrame3, 1)
-- save positions on logout
ChatFrame1:SetUserPlaced(1);
ChatFrame3:SetUserPlaced(1);
end