View Single Post
09/26/15, 02:39 PM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Why don't you simply just use

Lua Code:
  1. d(message)
  2. --
  3. CHAT_SYSTEM:AddMessage(message)

? and let the chat addons doing their job ? ^^^^^^^^


For your question, it's :

Lua Code:
  1. CHAT_SYSTEM.containers[1]:GetTabName(numTab)

For interested people, send a (fake) message to a category : will display the message where the category is enabled in tab options categories are : http://wiki.esoui.com/Globals#ChatChannelCategories
This exemple is nice when dislpaying messages for a specific guild per exemple (or the party).


Lua Code:
  1. -- Can occur if event is before EVENT_PLAYER_ACTIVATED
  2.     if CHAT_SYSTEM then
  3.         if CHAT_SYSTEM.primaryContainer then
  4.             CHAT_SYSTEM.primaryContainer:OnChatEvent(nil, displayedMessage, category)
  5.         end
  6.     end

Writing directly to textbuffer is not a good practice
  Reply With Quote