WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Hiding a Custom Chat Channel's Activity (https://www.wowinterface.com/forums/showthread.php?t=32621)

Daemios 05-20-10 02:36 PM

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?

markv 05-20-10 02:45 PM

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.

Daemios 05-20-10 03:01 PM

Quote:

Originally Posted by markv (Post 188645)
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.

Arrowmaster 05-22-10 04:58 AM

Create a filter using ChatFrame_AddMessageFilter() that hides all messages from that specific channel.

Foxlit 05-22-10 06:01 PM

Quote:

Originally Posted by Daemios (Post 188644)
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.


All times are GMT -6. The time now is 11:29 PM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI