View Single Post
07/08/14, 05:16 AM   #5
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
I have just a quick look to the addon code and there is virtually nothing to fix, it should be working just fine. I will check it in game.

Only thing I do not like is replacing of the original function of CHAT_SYSTEM instead of hooking it.
Instead of the last function in the code. I'd rather use this hook (but it is matter of personal preference):
lua Code:
  1. -- Hook the original function so we can fix the anchors
  2. local TransferWindow = CHAT_SYSTEM.TransferWindow
  3. function CHAT_SYSTEM.TransferWindow(...)
  4.     -- First, do what the original function did...
  5.     TransferWindow(...)
  6.  
  7.     -- Second, fix the anchors so the text is visible
  8.     if container ~= CHAT_SYSTEM.containers[1] then
  9.         ChatMultiWindow.FixContainerAnchor(container)
  10.     end
  11. end

Last edited by Garkin : 07/08/14 at 07:59 AM.
  Reply With Quote