From 01f81b03b7c0df2bdc3a0d4e6ed5d7f4b00e405d Mon Sep 17 00:00:00 2001 From: Beherith Date: Fri, 6 Nov 2020 12:34:49 +0100 Subject: [PATCH] SAIDPRIVATE can activate chat panel and tab on gameConfig.sayPrivateSelectAndActivateChatTab --- LuaMenu/widgets/chobby/components/chat_windows.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/LuaMenu/widgets/chobby/components/chat_windows.lua b/LuaMenu/widgets/chobby/components/chat_windows.lua index ecb1bf624..e009ba422 100644 --- a/LuaMenu/widgets/chobby/components/chat_windows.lua +++ b/LuaMenu/widgets/chobby/components/chat_windows.lua @@ -544,6 +544,10 @@ end function ChatWindows:_NotifyTab(tabName, userName, chanName, nameMentioned, message, sound, popupDuration) if tabName ~= self.currentTab then -- TODO: Fix naming of self.tabbars (these are consoles) + if WG.Chobby.Configuration.gameConfig.sayPrivateSelectAndActivateChatTab then + WG.Chobby.interfaceRoot.OpenRightPanelTab("chat") + self.tabPanel.tabBar:Select(tabName) + end local console = self.tabbars[tabName] local oldMessages = console.unreadMessages console.unreadMessages = console.unreadMessages + 1