mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 13:10:00 +00:00
chat: force chat positions on reconf
This commit is contained in:
+16
-8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user