Download
(2 Kb)
Download
Updated: 05/02/14 01:30 PM
Pictures
File Info
Compatibility:
Live (1.0)
Updated:05/02/14 01:30 PM
Created:04/13/14 08:23 PM
Monthly downloads:28
Total downloads:11,188
Favorites:43
MD5:
ChatMultiWindow  Popular! (More than 5000 hits)
Version: 1.2
by: Dyster2000 [More]
Allows creating multiple chat windows, not just a single window with multiple tabs. Each window can have multiple tabs if desired.

To create a new window, simply drag the desired tab off and a new window will be created for it. You can move the current window by dragging the first (left most) tab.

Disclaimer: Most of this functionality is actually already in the game, it just wasn't fully finished and had some bugs. I just finished it and got it working.

v1.1 UPDATE:
During startup it will now remove empty chat windows that may have been created avoiding mouseover warnings.

No Fade option: You can now control fading through a cmd line option (I will add it to the options dialog when I have more time).
/chat_fade 0 (Turn fading off - chat windows are always visible)
/chat_fade 1 (Turn fading on - default behavior)

v1.2 UPDATE:
This build just fixes a couple bugs that would cause occasional errors to show up.
Optional Files (1)
File Name
Version
Size
Author
Date
Type
1.8c
2kB
11/03/14 01:14 PM
Patch


Archived Files (2)
File Name
Version
Size
Uploader
Date
1.1
2kB
Dyster2000
04/25/14 09:13 AM
1.0.0
1kB
04/13/14 08:23 PM


Post A Reply Comment Options
Unread 05/04/14, 09:55 AM  
Tamha

Forum posts: 0
File comments: 10
Uploads: 0
While I am not getting the loading errors anymore, I am getting the fading issues. While I appreciate the efforts to make text non-fading, linking it to the fade of the chat box background was clearly not the solution. I will be commenting out your fading functions again. (I do not use the toggle command you added because it does not fix the problem.)
Last edited by Tamha : 05/04/14 at 09:56 AM.
Report comment to moderator  
Reply With Quote
Unread 05/03/14, 11:56 AM  
Kuvu

Forum posts: 11
File comments: 41
Uploads: 0
Re: Temporary Fix

Originally Posted by Durr
Since the dev hasn't updated it yet, here's a temporary fix. All I did was remove any function and reference to a function for changing the fade effects. I haven't gotten any errors or had the chat fade while I was typing since I changed it.

Find the LUA file for this add-on, open it in notepad, and paste the following code over the existing code.
You can also manually delete any functions and calls for the fade effects, like I did.
Code:
-----------------------------------------
--                                     --
--            ChatMultiWindow          --
--                                     --
-----------------------------------------

ChatMultiWindow = {
    ["name"] = "ChatMultiWindow",
    ["version"] = 1.1,
}
local ChatMultiWindow = ChatMultiWindow

local Defaults =
{
  NoFade = false,
}

function ChatMultiWindow.FixContainerAnchor(container)
	  container.windowContainer:ClearAnchors()
	  container.windowContainer:SetAnchor(TOPRIGHT, container.scrollUpButton, TOPLEFT, 0, 0)
	  container.windowContainer:SetAnchor(BOTTOMLEFT, container.windowContainer:GetParent(), BOTTOMLEFT, 20, -20)
end

local ChatEventFormatters = ZO_ChatSystem_GetEventHandlers()

function ChatMultiWindow.OnChatEvent(event, ...)
  -- Fix any windows that were loaded on startup
  for i=2, #CHAT_SYSTEM.containers do
    ChatMultiWindow.FixContainerAnchor(CHAT_SYSTEM.containers[i])
  end
  

	-- We don't need these anymore, so clear them
  for event in pairs(ChatEventFormatters) do
    EVENT_MANAGER:UnregisterForEvent(ChatMultiWindow.name.."_OnEventId" .. event)
  end
end

function ChatMultiWindow.FixEmptyContainers()
  if GetNumChatContainers() > 1 then
	  for i=GetNumChatContainers(), 2, -1  do
	      local numContainerTabs = GetNumChatContainerTabs(i)
	      if numContainerTabs == 0 then
	        DestroyContainer(CHAT_SYSTEM.containers[i])
	      end
	  end
  end
end

function ChatMultiWindow.AddonLoaded(event, name)
  if name ~= "ChatMultiWindow" then
	  return
	end
  CHAT_SYSTEM:SetAllowMultipleContainers(true)

  ChatMultiWindow.SavedVars = ZO_SavedVars:NewAccountWide(ChatMultiWindow.name.."_SavedVariables", 1, "internal", Defaults)

  ChatMultiWindow.FixEmptyContainers();

	-- Need to anchor the existing windows after everything is active, so use the first chat event
  for event in pairs(ChatEventFormatters) do
    EVENT_MANAGER:RegisterForEvent(ChatMultiWindow.name.."_OnEventId" .. event, event, ChatMultiWindow.OnChatEvent)
  end
end


-- Register addon
EVENT_MANAGER:RegisterForEvent(ChatMultiWindow.name.."_OnAddOnLoaded", EVENT_ADD_ON_LOADED, ChatMultiWindow.AddonLoaded)
Why not just do what this guy did and push the update out. I do this and i dont get errors and my chat doesn't fade.
Report comment to moderator  
Reply With Quote
Unread 05/03/14, 11:55 AM  
Kuvu

Forum posts: 11
File comments: 41
Uploads: 0
the update didnt fix any of the chat fade issue.
Report comment to moderator  
Reply With Quote
Unread 05/03/14, 11:10 AM  
reduL

Forum posts: 0
File comments: 3
Uploads: 0
Originally Posted by Aryslan
Getting the same type of error the last days

Originally Posted by Kuvu


Error this morning.
Just installed this addon. Still get this error. I also noticed another thing.
If i have one tab at lower right and one at lower left i can't interact with about half of my bag or any other window that opens there. The chat window overlaps those and takes precedence. Is there any way to fix this?

Otherwise i love your addon been looking for one of these since beta
Report comment to moderator  
Reply With Quote
Unread 05/02/14, 01:39 PM  
Dyster2000
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 2
Uploads: 1
bug fixes

Sorry for the delay in fixing the dialog errors, I've been on vacation. I just submitted v1.2 to fix the errors.
Report comment to moderator  
Reply With Quote
Unread 04/28/14, 06:55 PM  
Tamha

Forum posts: 0
File comments: 10
Uploads: 0
Thanks for the suggestion, Durr. I went through and commented out all the lines referring to fading. Looking forward to loading up without errors or bugs.
Report comment to moderator  
Reply With Quote
Unread 04/28/14, 12:08 PM  
Durr

Forum posts: 0
File comments: 1
Uploads: 0
Temporary Fix

Since the dev hasn't updated it yet, here's a temporary fix. All I did was remove any function and reference to a function for changing the fade effects. I haven't gotten any errors or had the chat fade while I was typing since I changed it.

Find the LUA file for this add-on, open it in notepad, and paste the following code over the existing code.
You can also manually delete any functions and calls for the fade effects, like I did.
Code:
-----------------------------------------
--                                     --
--            ChatMultiWindow          --
--                                     --
-----------------------------------------

ChatMultiWindow = {
    ["name"] = "ChatMultiWindow",
    ["version"] = 1.1,
}
local ChatMultiWindow = ChatMultiWindow

local Defaults =
{
  NoFade = false,
}

function ChatMultiWindow.FixContainerAnchor(container)
	  container.windowContainer:ClearAnchors()
	  container.windowContainer:SetAnchor(TOPRIGHT, container.scrollUpButton, TOPLEFT, 0, 0)
	  container.windowContainer:SetAnchor(BOTTOMLEFT, container.windowContainer:GetParent(), BOTTOMLEFT, 20, -20)
end

local ChatEventFormatters = ZO_ChatSystem_GetEventHandlers()

function ChatMultiWindow.OnChatEvent(event, ...)
  -- Fix any windows that were loaded on startup
  for i=2, #CHAT_SYSTEM.containers do
    ChatMultiWindow.FixContainerAnchor(CHAT_SYSTEM.containers[i])
  end
  

	-- We don't need these anymore, so clear them
  for event in pairs(ChatEventFormatters) do
    EVENT_MANAGER:UnregisterForEvent(ChatMultiWindow.name.."_OnEventId" .. event)
  end
end

function ChatMultiWindow.FixEmptyContainers()
  if GetNumChatContainers() > 1 then
	  for i=GetNumChatContainers(), 2, -1  do
	      local numContainerTabs = GetNumChatContainerTabs(i)
	      if numContainerTabs == 0 then
	        DestroyContainer(CHAT_SYSTEM.containers[i])
	      end
	  end
  end
end

function ChatMultiWindow.AddonLoaded(event, name)
  if name ~= "ChatMultiWindow" then
	  return
	end
  CHAT_SYSTEM:SetAllowMultipleContainers(true)

  ChatMultiWindow.SavedVars = ZO_SavedVars:NewAccountWide(ChatMultiWindow.name.."_SavedVariables", 1, "internal", Defaults)

  ChatMultiWindow.FixEmptyContainers();

	-- Need to anchor the existing windows after everything is active, so use the first chat event
  for event in pairs(ChatEventFormatters) do
    EVENT_MANAGER:RegisterForEvent(ChatMultiWindow.name.."_OnEventId" .. event, event, ChatMultiWindow.OnChatEvent)
  end
end


-- Register addon
EVENT_MANAGER:RegisterForEvent(ChatMultiWindow.name.."_OnAddOnLoaded", EVENT_ADD_ON_LOADED, ChatMultiWindow.AddonLoaded)
Report comment to moderator  
Reply With Quote
Unread 04/27/14, 03:37 PM  
Aryslan

Forum posts: 0
File comments: 10
Uploads: 0
Getting the same type of error the last days

Originally Posted by Kuvu


Error this morning.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 05:18 PM  
Kuvu

Forum posts: 11
File comments: 41
Uploads: 0
Everytime i log out and back in i get the stupid error box. Would be appreciated if you took a look at fixing this.
Last edited by Kuvu : 04/27/14 at 02:38 PM.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 09:36 AM  
Tamha

Forum posts: 0
File comments: 10
Uploads: 0
Since you don't have a bug report portal, I'll post here another report about the chat fading. You seem to have linked chat fading to the background fade, requiring turning the background fade to 100 (ie, doesn't fade) in order to keep the text from fading. However, your change also allows the background to fade (and now all your text) when the input box is actively being used. It didn't used to do this. This is what is causing the issues reported by other players. For now, deactivating your no fading functionality. Even partial support from another mod is preferable to this bug.

I'm also getting the UI error from the report just prior to mine.

(Besides these bugs, though, very grateful for your mod and all your hard work. Having two windows makes a huge difference for me. )
Last edited by Tamha : 04/26/14 at 09:37 AM.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 09:30 AM  
Kuvu

Forum posts: 11
File comments: 41
Uploads: 0


Error this morning.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 08:46 AM  
Kuvu

Forum posts: 11
File comments: 41
Uploads: 0
Originally Posted by Aryslan
Originally Posted by Kuvu
Chat is fading now while i am typing and i am not able to see what i am typing. I can disable the mod and its fine. I have tried both of the setting /chat_fade 0 and 1. Of course when the fade it turned of it does not do this. This is something that has just happened recently. I dont believe it was like that last night but it is today. I removed the addon then reinstalled it and i still get this issue.
Same issue, also (duno if it's your addon), the last line of my chat is overlapping the space I'm typing, and can't scroll it away.
Should have your messages go out in reverse lol. Sometimes the order of what i type is reversed. Say the sentences are 1 2 3 in order but they appear when they hit the chat as 3 2 1, total reverse.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 04:56 AM  
Aryslan

Forum posts: 0
File comments: 10
Uploads: 0
Originally Posted by Kuvu
Chat is fading now while i am typing and i am not able to see what i am typing. I can disable the mod and its fine. I have tried both of the setting /chat_fade 0 and 1. Of course when the fade it turned of it does not do this. This is something that has just happened recently. I dont believe it was like that last night but it is today. I removed the addon then reinstalled it and i still get this issue.
Same issue, also (duno if it's your addon), the last line of my chat is overlapping the space I'm typing, and can't scroll it away.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 01:06 AM  
Pure_Decimation
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 9
Uploads: 1
Really need to fix the fact that the chat will fade out while you're typing. It's quite annoying and I don't want it always up. A fix for that would be amazing. Thank you
Last edited by Pure_Decimation : 04/26/14 at 01:12 AM.
Report comment to moderator  
Reply With Quote
Unread 04/26/14, 01:02 AM  
Kuvu

Forum posts: 11
File comments: 41
Uploads: 0
Chat is fading now while i am typing and i am not able to see what i am typing. I can disable the mod and its fine. I have tried both of the setting /chat_fade 0 and 1. Of course when the fade it turned of it does not do this. This is something that has just happened recently. I dont believe it was like that last night but it is today. I removed the addon then reinstalled it and i still get this issue.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: