View Single Post
12/07/14, 09:26 AM   #3
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
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:
  1. local container = CHAT_SYSTEM.primaryContainer
  2.  
  3. --this command creates a new chat window and displays tab options:
  4. CHAT_SYSTEM:CreateNewChatTab(container)
  5.  
  6. --this command creates a new chat window but does not display options:
  7. local name = "New Tab"
  8. container:AddWindow(name)
  Reply With Quote