Thread Tools Display Modes
05-20-10, 02:36 PM   #1
Daemios
A Defias Bandit
Join Date: May 2010
Posts: 2
Hiding a Custom Chat Channel's Activity

Currently, I'm working on an addon called Trade Chat Champion, and what this addon does is respond to certain triggers in trade or battleground chat. However, the need for communication between multiple instances of the addon has become more and more apparent.

Now, after researching the topic, and laying out the logic of the function I'm looking to create, I'm stuck at the actual sending of messages. The SendAddonMessage API doesn't seem to fit my needs, as I need to communicate server-wide.

I have resigned myself to figure out a way to have the addons communicate over a custom channel, however, clearly such a communication would need to be hidden, as to not be disruptive.

My question is, how can I accomplish something like that?
  Reply With Quote
05-20-10, 02:45 PM   #2
markv
A Fallenroot Satyr
AddOn Compiler - Click to view compilations
Join Date: Dec 2006
Posts: 27
You might want to see what's out there for libraries that have these functions already done for you. I believe what you're looking for can be found in in the AceComm's library, not sure what else might provide the same functions.
  Reply With Quote
05-20-10, 03:01 PM   #3
Daemios
A Defias Bandit
Join Date: May 2010
Posts: 2
Originally Posted by markv View Post
You might want to see what's out there for libraries that have these functions already done for you. I believe what you're looking for can be found in in the AceComm's library, not sure what else might provide the same functions.
I thought it didn't, so I made sure, and the description reads: **AceComm-3.0** allows you to send messages of unlimited length over the addon comm channels.
It'll automatically split the messages into multiple parts and rebuild them on the receiving end.

What I need is a way to communicate faction-wide, over what I assume has to be a custom chat channel, with some sort of function that hides the text.
  Reply With Quote
05-22-10, 04:58 AM   #4
Arrowmaster
An Aku'mai Servant
Join Date: Dec 2006
Posts: 32
Create a filter using ChatFrame_AddMessageFilter() that hides all messages from that specific channel.
  Reply With Quote
05-22-10, 06:01 PM   #5
Foxlit
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 91
Originally Posted by Daemios View Post
I have resigned myself to figure out a way to have the addons communicate over a custom channel, however, clearly such a communication would need to be hidden, as to not be disruptive.

My question is, how can I accomplish something like that?
Don't do anything special.

Simply joining a channel (JoinChannelByName) does not add it to any chat frames, so no messages in the channel will ever be shown to the users without explicit action on their part.
__________________
... and you do get used to it, after a while.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Hiding a Custom Chat Channel's Activity

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