Thread Tools Display Modes
Prev Previous Post   Next Post Next
07-05-21, 09:51 AM   #1
Zax
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 147
Undocking ChatFrame?

Hello,

As often Shadowlands loose my chat windows configuration, I'm trying to write a little LUA script to rebuild my chat frames.
I'm creating a new chat frame, say for example "Guild" and I would like this new chat frame to be undocked. I have the following code:
Code:
local frame = FCF_OpenNewWindow("Guild")

FCF_UnDockFrame(frame)
frame:ClearAllPoints()
frame:SetPoint("TOPLEFT", ChatFrame1, "TOPRIGHT", 60, 0)--***
frame:SetWidth(ChatFrame1:GetWidth())
frame:SetHeight(ChatFrame1:GetHeight())
FCF_UpdateButtonSide(frame)-- ???
FCF_SavePositionAndDimensions(frame)
The chat frame is well created at the right of the ChatFrame1, but its tab stays docked.




Another question: is there a way to reset all chats without the confirmation alert showned by FCF_ResetAllWindows()?

Thank you.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Undocking ChatFrame?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off