Thread Tools Display Modes
09/28/19, 11:37 AM   #1
Imiona
 
Imiona's Avatar
Join Date: Feb 2017
Posts: 16
pChat

Hello

I really need help with pChat.

I managed to seperate the Combat Log Window from the Chat Window, but pChat has an Option where it minimizes the Windows in Menus (this is good of course), but since it fades them to the left, everytime i open a Loot Window, the Combat Log Window (seperated to the right), fades all over the Screen to the left.

This is really annoying, so could someone with LUA knowledge tell me what Code i must add/remove, to tell pChat not to fade when Looting.

This would be really great, because i finally managed to setup my UI perfectly (at least for me), but this Problem frustrates me.

Thx

  Reply With Quote
09/29/19, 06:25 AM   #2
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,903
Isn't there a setting to prevent chat fading within pChat?

Edit:
Oh you do not mean the "fade of text inside the chat container" but you mean "it moves" to the left and minimizes?
Maybe there is an option to stop minimizing of chat containers as menus are shown?
  Reply With Quote
09/29/19, 07:15 AM   #3
Imiona
 
Imiona's Avatar
Join Date: Feb 2017
Posts: 16
I want to prevent the Window from minimizing to the left when i loot something.

pChat hides them in every Menu, and there is no Option to customize it. I found this Code in the pChat lua:

-- Minimize Chat in Menus
MinimizeChatInMenus()

but since i have no LUA knowledge at all, this doesnt help^^.

I know you can choose where to Minimize because i have other Addons who can do that, but pChat isnt one of them.
  Reply With Quote
09/29/19, 07:29 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,903
Inside this function there are checked 2 settings from the table db, which is the SavedVariables of pChat where your settings are stored:

Lua Code:
  1. local function MinimizeChatInMenus()
  2.  
  3.     -- RegisterCallback for Maximize/Minimize chat when entering/leaving scenes
  4.     -- "hud" is base scene (with "hudui")
  5.     local hudScene = SCENE_MANAGER:GetScene("hud")
  6.     hudScene:RegisterCallback("StateChange", function(oldState, newState)
  7.  
  8.         if db.chatMinimizedInMenus then
  9.             if newState == SCENE_HIDDEN and SCENE_MANAGER:GetNextScene():GetName() ~= "hudui" then
  10.                 CHAT_SYSTEM:Minimize()
  11.             end
  12.         end
  13.        
  14.         if db.chatMaximizedAfterMenus then
  15.             if newState == SCENE_SHOWING then
  16.                 CHAT_SYSTEM:Maximize()
  17.             end
  18.         end
  19.        
  20.     end)
  21.    
  22. end

They should be located somehwere below "new chat text color" and "transparency".

So there need to be at least the 2 settings chatMinimizedInMenus and chatMaximizedAfterMenus .
Search for them in the pChat settings please and if you set them to the way you like them your problems should be solved

If not - try to do the following:
Change the function MinimizeChatInMenus to this:

Lua Code:
  1. local function MinimizeChatInMenus()
  2. --[[
  3.     -- RegisterCallback for Maximize/Minimize chat when entering/leaving scenes
  4.     -- "hud" is base scene (with "hudui")
  5.     local hudScene = SCENE_MANAGER:GetScene("hud")
  6.     hudScene:RegisterCallback("StateChange", function(oldState, newState)
  7.  
  8.         if db.chatMinimizedInMenus then
  9.             if newState == SCENE_HIDDEN and SCENE_MANAGER:GetNextScene():GetName() ~= "hudui" then
  10.                 CHAT_SYSTEM:Minimize()
  11.             end
  12.         end
  13.        
  14.         if db.chatMaximizedAfterMenus then
  15.             if newState == SCENE_SHOWING then
  16.                 CHAT_SYSTEM:Maximize()
  17.             end
  18.         end
  19.        
  20.     end)
  21. ]]
  22.    
  23. end

Added --[[ at the beginning and the closing ]] at the end so this is only a comment and not run code! But the 2 settings should solve your problem and there should be no need to comment this function then.
  Reply With Quote
09/29/19, 07:55 AM   #5
Imiona
 
Imiona's Avatar
Join Date: Feb 2017
Posts: 16
I did what you say, but now the Chatwindows are enabled everywhere

Warning: Spoiler


But the Looting now works how i want it, so thats good

Warning: Spoiler


Again, i only want the Chat Windows to show when i loot something, not everywhere else.

But whe are getting somehwere here
  Reply With Quote
09/29/19, 10:19 AM   #6
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,903
I guess yo uneed another addon then which does this for you as the ones I know cannot.
  Reply With Quote
09/29/19, 01:46 PM   #7
Imiona
 
Imiona's Avatar
Join Date: Feb 2017
Posts: 16
Originally Posted by Baertram View Post
I guess yo uneed another addon then which does this for you as the ones I know cannot.
Thought so, thank you anyway
  Reply With Quote
09/29/19, 05:06 PM   #8
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,903
Maybe ask in the pChat comments if he can add an option for the loot scebe/fragment state change.
  Reply With Quote
09/29/19, 06:48 PM   #9
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
Originally Posted by Baertram View Post
Maybe ask in the pChat comments if he can add an option for the loot scebe/fragment state change.
Unfortunatly the author who took the addon under his wings is away since 11/29/18. And none took the relay so far.

So i would not count on an answer for a new options

I managed to have Pchat works fine actually BUT only by updating the libs, and using only the non embedded libraries up to date.

But i am far far far from the lua atmosphere, i am absolutely not able to review any addon, and more this one which seems very complicated coding
  Reply With Quote
09/30/19, 03:32 AM   #10
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,903
I managed to have Pchat works fine actually BUT only by updating the libs, and using only the non embedded libraries up to date.
Seems to be a good example for the "do not include libraries loaded from pChat.txt":
https://wiki.esoui.com/Libraries#Pro..._but_how.3F.29


Change the pChat.txt from this:
Code:
## Title: pChat
## Description: pChat overhaul the way text is displayed in the chatbox
## Version: 9.3.11.25
## Author: DesertDwellers
## APIVersion: 100023 100024
## SavedVariables: PCHAT_OPTS
## AddOnVersion: 9031125
## OptionalDependsOn: LibAddonMenu-2.0

lib/libstub/libstub.lua
lib/LibAnnyoingUpdateNotificationInGame/LibAnnyoingUpdateNotificationInGame.lua
lib/LibMediaProvider-1.0/LibMediaProvider-1.0.lua
lib/LibMainMenu/LibMainMenu.lua
lib/LibCustomTitles/LibCustomTitles.lua

lib/LibAddonMenu-2.0/LibAddonMenu-2.0.lua
lib/LibAddonMenu-2.0/controls/button.lua
lib/LibAddonMenu-2.0/controls/custom.lua
lib/LibAddonMenu-2.0/controls/description.lua
lib/LibAddonMenu-2.0/controls/divider.lua
lib/LibAddonMenu-2.0/controls/editbox.lua
lib/LibAddonMenu-2.0/controls/iconpicker.lua
lib/LibAddonMenu-2.0/controls/submenu.lua
lib/LibAddonMenu-2.0/controls/texture.lua
lib/LibAddonMenu-2.0/controls/panel.lua
lib/LibAddonMenu-2.0/controls/checkbox.lua
lib/LibAddonMenu-2.0/controls/colorpicker.lua
lib/LibAddonMenu-2.0/controls/dropdown.lua
lib/LibAddonMenu-2.0/controls/header.lua
lib/LibAddonMenu-2.0/controls/slider.lua
lib/libChat2/libChat2.lua

i18n/en.lua
i18n/$(language).lua
fonts.lua
pChat.lua
pChat.xml
copyDialog.xml
bindings.xml
To this:
Code:
; This Add-on is not created by, affiliated with or sponsored by ZeniMax
; Media Inc. or its affiliates. The Elder Scrolls® and related logos are
; registered trademarks or trademarks of ZeniMax Media Inc. in the United
; States and/or other countries. All rights reserved.
; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms

## Title: pChat
## Description: pChat overhaul the way text is displayed in the chatbox
## Version: 9.3.11.25
## Author: DesertDwellers
## APIVersion: 100028 100029
## SavedVariables: PCHAT_OPTS
## AddOnVersion: 9031125
## DependsOn: LibAddonMenu-2.0 LibMediaProvider-1.0

lib/LibAnnyoingUpdateNotificationInGame/LibAnnyoingUpdateNotificationInGame.lua
lib/LibCustomTitles/LibCustomTitles.lua
lib/libChat2/libChat2.lua
lib/LibMainMenu/LibMainMenu.lua

i18n/en.lua
i18n/$(language).lua
fonts.lua
pChat.lua
pChat.xml
copyDialog.xml
bindings.xml
Delete the following subfolders:
Code:
libs/LibAddonMenu-2.0
Install the following libraries as standalones:
LibAddonMenu-2.0
LibMediaProvider-1.0

Last edited by Baertram : 10/01/19 at 07:32 AM.
  Reply With Quote
09/30/19, 10:18 AM   #11
Anceane
 
Anceane's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 306
wow!!! this is exactly what i did!! i was not certain i did it good, but well i did +1 for gran'ma Anceane +
  Reply With Quote
09/30/19, 11:55 AM   #12
NeuroticPixels
Addon Addict
 
NeuroticPixels's Avatar
Premium Member
Join Date: May 2019
Posts: 210
Originally Posted by Baertram View Post
Seems to be a good example for the "do not include libraries loaded from pChat.txt":
https://wiki.esoui.com/Libraries#Pro..._but_how.3F.29


Change the pChat.txt from this:
Code:
## Title: pChat
## Description: pChat overhaul the way text is displayed in the chatbox
## Version: 9.3.11.25
## Author: DesertDwellers
## APIVersion: 100023 100024
## SavedVariables: PCHAT_OPTS
## AddOnVersion: 9031125
## OptionalDependsOn: LibAddonMenu-2.0

lib/libstub/libstub.lua
lib/LibAnnyoingUpdateNotificationInGame/LibAnnyoingUpdateNotificationInGame.lua
lib/LibMediaProvider-1.0/LibMediaProvider-1.0.lua
lib/LibMainMenu/LibMainMenu.lua
lib/LibCustomTitles/LibCustomTitles.lua

lib/LibAddonMenu-2.0/LibAddonMenu-2.0.lua
lib/LibAddonMenu-2.0/controls/button.lua
lib/LibAddonMenu-2.0/controls/custom.lua
lib/LibAddonMenu-2.0/controls/description.lua
lib/LibAddonMenu-2.0/controls/divider.lua
lib/LibAddonMenu-2.0/controls/editbox.lua
lib/LibAddonMenu-2.0/controls/iconpicker.lua
lib/LibAddonMenu-2.0/controls/submenu.lua
lib/LibAddonMenu-2.0/controls/texture.lua
lib/LibAddonMenu-2.0/controls/panel.lua
lib/LibAddonMenu-2.0/controls/checkbox.lua
lib/LibAddonMenu-2.0/controls/colorpicker.lua
lib/LibAddonMenu-2.0/controls/dropdown.lua
lib/LibAddonMenu-2.0/controls/header.lua
lib/LibAddonMenu-2.0/controls/slider.lua
lib/libChat2/libChat2.lua

i18n/en.lua
i18n/$(language).lua
fonts.lua
pChat.lua
pChat.xml
copyDialog.xml
bindings.xml
To this:
Code:
; This Add-on is not created by, affiliated with or sponsored by ZeniMax
; Media Inc. or its affiliates. The Elder Scrolls® and related logos are
; registered trademarks or trademarks of ZeniMax Media Inc. in the United
; States and/or other countries. All rights reserved.
; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms

## Title: pChat
## Description: pChat overhaul the way text is displayed in the chatbox
## Version: 9.3.11.25
## Author: DesertDwellers
## APIVersion: 100028 100029
## SavedVariables: PCHAT_OPTS
## AddOnVersion: 9031125
## DependsOn: LibAddonMenu-2.0 LibMediaProvider-1.0 LibMainMenu libChat2

lib/LibAnnyoingUpdateNotificationInGame/LibAnnyoingUpdateNotificationInGame.lua
lib/LibCustomTitles/LibCustomTitles.lua

lib/libChat2/libChat2.lua

i18n/en.lua
i18n/$(language).lua
fonts.lua
pChat.lua
pChat.xml
copyDialog.xml
bindings.xml
Delete the following subfolders:
Code:
libs/LibAddonMenu-2.0
Install the following libraries as standalones:
LibAddonMenu-2.0
LibMediaProvider-1.0
Baertram, you're the neatest. <3
Should all pChat users do this? I'd like to get this done for my S.O. and me if so.
  Reply With Quote
10/01/19, 07:31 AM   #13
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,903
It's up to you and makes no big difference as most libraries (except LibAddonMenu-2.0 and LibMediaProvider) are only used in this addon pChat (or another few Ayantir addons).

Edit:
The following libraries can be downloaded and installed as standalone versions with their own txt file now too, so you can remove them from pChats subfolder "libs" and from the pChat.txt file "hardcoded lines" as well:

libChat2
LibAnnyoingUpdateNotificationInGame
LibMainMenu2

I hope the authors/maintainers of LibMediaProvider will do this as well soon.

Code:
; This Add-on is not created by, affiliated with or sponsored by ZeniMax
; Media Inc. or its affiliates. The Elder Scrolls® and related logos are
; registered trademarks or trademarks of ZeniMax Media Inc. in the United
; States and/or other countries. All rights reserved.
; You can read the full terms at https://account.elderscrollsonline.com/add-on-terms

## Title: pChat
## Description: pChat overhaul the way text is displayed in the chatbox
## Version: 9.3.11.25
## Author: Ayantir, modified by DesertDwellers
## APIVersion: 100028 100029
## SavedVariables: PCHAT_OPTS
## AddOnVersion: 9031125
## DependsOn: LibAddonMenu-2.0 libChat2 LibMainMenu
## OptionalDependsOn: LibAnnyoingUpdateNotificationInGame

lib/LibMediaProvider-1.0/LibMediaProvider-1.0.lua
lib/LibCustomTitles/LibCustomTitles.lua

i18n/en.lua
i18n/$(language).lua
fonts.lua
pChat.lua
pChat.xml
copyDialog.xml
bindings.xml

Last edited by Baertram : 10/01/19 at 10:06 AM.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » pChat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off