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") Another question: is there a way to reset all chats without the confirmation alert showned by FCF_ResetAllWindows()? Thank you. |
Quote:
Code:
FCF_ResetChatWindows() Lua Code:
But I'm not sure if the tab manager might not try to re-aquire it at some point so... |
Seems to work :) (though I was afraid it was just a cosmetic trick).
Thanks Fizzlemizz. Still another question: I'm unable to check with LUA the following checked channels (sorry, my UI is french localized): I tried ChatFrame_AddMessageGroup(frame, value) with following values "BG_SYSTEM_NEUTRAL", "BG_SYSTEM_ALLIANCE", "BG_SYSTEM_HORDE" and "BN_ALERT" without success. |
You need to use the ChatTypeGroups, which are the table keys that include the message types themselves.
https://www.townlong-yak.com/framexm...tFrame.lua#131 If you want to add a single message type, use ChatFrame_AddSingleMessageType. There is no remove single message type function. As for your code that enforces a chatframe, here's what I use if you want to pick it apart: Standard docked creation: Lua Code:
Standard undocked creation: Lua Code:
Along with some other code, including my own border and background, in tandem with Prat, this is what my chat looks like: Some notes:
|
Great ! Thank you very much Kanegasi :)
After some quick tests, FCF_UnDockFrame(frame) doesn't seem to be called for a docked frame. Concerning "Blizzard Alerts" channel, its real name is in fact "BN_INLINE_TOAST_ALERT". |
All times are GMT -6. The time now is 11:07 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI