Hide chat in menu
I'm looking for an addon that automatically hides the chat window when I open a menu or use the bank or a crafting station.
|
could add this into pChat .. will have a look on it.
|
Maybe this helps. Taken from the gamemenu scene source code "here"
Lua Code:
Too bad it is local :-( But maybe you can use this code of CHAT_SYSTEM to simply hide (Minimize) /show (Maximize) the chat. |
Quote:
xml Code:
Lua Code:
Lua Code:
You can see, that there is a global reference to those functions: Code:
ZO_GameMenu_InGame:OnShow() |
Yes, I saw this before, thanks Garkin.
The OnHide function should be fine. But the OnShow function of the "game menu ingame" in total isn't the thing needed here as it would also rebuild the game menu tree. I think you could simply use the CHAT_SYSTEM:Maximize() and CHAT_SYSTEM:Minimize() functions here to show/hide the chat as a bank/crafting station/etc. scene gets to the state OnShown e.g. |
I'm already working on this. I prehook SCENE_MANAGER:SetState() and use CHAT_SYSTEM:Minimize() and :Maximize() for my part.
Just need to disable it at 1st state (when addon loads) and check if scene manager is on "hudui" or not. |
Quote:
Lua Code:
|
Quote:
SetState triggers too often and SetBaseScene get a little bug when prehooking. So I used your method : Lua Code:
Thank you :) Anyway, option asked added in pChat 1.17 :) |
Thanks for adding this :).
|
All times are GMT -6. The time now is 02:17 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI