How to create a chat tab programmatically
Hi,
when I add a chat tab using function AddChatContainerTab() I notice that the new tab is NOT shown until the GUI is reloaded. How can I force its visibility? Regards, Klaro |
function SharedChatContainer:AddWindow(name)
This should create the tab and window controls, it also calls AddChatContainerTab. |
AddChatContainerTab(containerId, name, isCombatLog) is just one of the functions you have to call to make new chat window (tab) working. This will only create settings for the window, but it does not update chat system.
CHAT_SYSTEM itself uses CreateNewChatTab method, but it will also show options for the new window, so you might want to use just chatContainer:AddWindow, see examples below: Lua Code:
|
Thank you, that works perfectly!
|
All times are GMT -6. The time now is 08:11 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI