View Single Post
02-05-13, 05:51 PM   #2
Haleth
This Space For Rent
 
Haleth's Avatar
Featured
Join Date: Sep 2008
Posts: 1,173
ScrollingMessageFrame:AddMessage() has an 'addToTop' argument which ignores the frame's insert mode. This is used in the combat log. Perhaps you should look into that.

http://wowprogramming.com/docs/widge...ame/AddMessage

You could do something like:

Code:
local oldAddMessage = ChatFrame1.AddMessage

ChatFrame1.AddMessage = function(frame, text, red, green, blue, lineID, addToTop, accessID, extraData)
	return oldAddMessage(frame, text, red, green, blue, lineID, true, accessID, extraData)
end

Last edited by Haleth : 02-05-13 at 05:57 PM.
  Reply With Quote