Showing results 1 to 15 of 15
Search took 0.00 seconds.
Search: Posts Made By: Aanson
Forum: General Authoring Discussion 02-17-14, 04:28 PM
Replies: 27
Views: 17,269
Posted By Aanson
Yeah, that was my concern when I initially dealt...

Yeah, that was my concern when I initially dealt with it via filters. My other concern was that filters are checked quite early on in CF_MEH and the message could potentially (albeit a slim chance)...
Forum: General Authoring Discussion 02-14-14, 09:12 PM
Replies: 27
Views: 17,269
Posted By Aanson
Gotcha, sorry. local filterFunc = function(self,...

Gotcha, sorry.

local filterFunc = function(self, event, ...)
-- do stuff;
end
ChatFrame_AddMessageEventFilter("AN_EVENT", filterFunc);

Back to the drawing board for me, I guess.
Forum: General Authoring Discussion 02-14-14, 09:04 PM
Replies: 27
Views: 17,269
Posted By Aanson
I'm not sure what it would default to...

I'm not sure what it would default to actually.

I'd just assumed that Phanx had written it that way to avoid global table lookups all the time.
Forum: General Authoring Discussion 02-14-14, 08:59 PM
Replies: 27
Views: 17,269
Posted By Aanson
Oooof. I see your point about not getting the...

Oooof.

I see your point about not getting the event until all of the ChatFrame's OnEvent code has already run. Should be easily fixed though ty.
Forum: General Authoring Discussion 02-14-14, 06:47 PM
Replies: 27
Views: 17,269
Posted By Aanson
I think there's been some confusion. Blizzard...

I think there's been some confusion. Blizzard set up channel colouring precisely so that people would associate colours with channels, so I'm not really sure what you mean. The channel the message...
Forum: General Authoring Discussion 02-14-14, 06:44 PM
Replies: 27
Views: 17,269
Posted By Aanson
I'm pretty sure that I've found a good way of...

I'm pretty sure that I've found a good way of getting everything I need now, using Ravagernl's suggestion.


local frame;
for i = 1, NUM_CHAT_FRAMES do
frame = _G["ChatFrame"..i];
...
Forum: General Authoring Discussion 02-14-14, 06:25 PM
Replies: 27
Views: 17,269
Posted By Aanson
But that points to CF_MEH which is where 'self'...

But that points to CF_MEH which is where 'self' is coming from. I know that MessageEventHandler is passed with chat frame as it's 1st arg. Filters don't. If you check out...
Forum: General Authoring Discussion 02-14-14, 05:04 PM
Replies: 27
Views: 17,269
Posted By Aanson
What's "right" is whatever colour has been chosen...

What's "right" is whatever colour has been chosen for any given message type. Eg for vanilla, guild chat is green, party blue, whisper pink etc etc. The function I've written provides a visual...
Forum: General Authoring Discussion 02-14-14, 05:02 PM
Replies: 27
Views: 17,269
Posted By Aanson
MessageEventFilters have nothing to do with...

MessageEventFilters have nothing to do with frames, so the chat frame isn't it's first argument (event is). The filter doesn't need to know which frame (if any) a message will be displayed on. It...
Forum: General Authoring Discussion 02-11-14, 01:05 AM
Replies: 27
Views: 17,269
Posted By Aanson
I implemented a function using event filters very...

I implemented a function using event filters very much like the one suggested in your first post. It worked well, but like you'd said in that post, I still needed to get round the issue of working...
Forum: General Authoring Discussion 02-09-14, 02:36 PM
Replies: 27
Views: 17,269
Posted By Aanson
Yeah, I like the idea of simply hooking...

Yeah, I like the idea of simply hooking ChatFrame_MessageEventHandler too. I think I may be able to accomplish everything with that one hook. I'll put something together and find out.
Forum: General Authoring Discussion 02-08-14, 01:12 PM
Replies: 27
Views: 17,269
Posted By Aanson
That's great to know, thanks. I need to know the...

That's great to know, thanks.

I need to know the message type (ChatTypeInfo) and the Chat Frame it was posted to.

I can hook the AddMessage function of each ChatFrame to establish the...
Forum: General Authoring Discussion 02-06-14, 07:36 PM
Replies: 27
Views: 17,269
Posted By Aanson
Out of interest, see if I was just looking for...

Out of interest, see if I was just looking for the colour used for the last message, is there a simple way of going about that?
Forum: General Authoring Discussion 12-30-13, 08:46 AM
Replies: 27
Views: 17,269
Posted By Aanson
Thanks very much. The event filtering function is...

Thanks very much. The event filtering function is just what I'm after.
Forum: General Authoring Discussion 12-25-13, 10:13 PM
Replies: 27
Views: 17,269
Posted By Aanson
Chat message colours

Hey all, Happy Christmas!

Just a quick question...

Does anyone know of a simple way to obtain the colour of the most recently shown text in the ChatFrames?

I have a function in my addon which...
Showing results 1 to 15 of 15