From 6ff7860b0fbfb5cf380007628d280e8b6fe247e2 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Sat, 16 Apr 2022 21:44:56 -0500 Subject: [PATCH] Fix chat input being reset when others send a msg --- scripts/client/chatbox.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/scripts/client/chatbox.js b/scripts/client/chatbox.js index ce5e6928..bc71ebf7 100644 --- a/scripts/client/chatbox.js +++ b/scripts/client/chatbox.js @@ -49,20 +49,20 @@ function unBindChatBoxKeys() { // =========================================================================== function receiveChatBoxMessageFromServer(messageString, colour) { - logToConsole(LOG_INFO, `[VRR.ChatBox]: Received chatbox message from server: ${messageString}`); + logToConsole(LOG_DEBUG, `[VRR.ChatBox]: Received chatbox message from server: ${messageString}`); // Just in case it's hidden by auto hide - setChatWindowEnabled(true); + //setChatWindowEnabled(true); let colouredString = replaceColoursInMessage(messageString); - logToConsole(LOG_INFO, `[VRR.ChatBox]: Changed colours in string: ${colouredString}`); + logToConsole(LOG_DEBUG, `[VRR.ChatBox]: Changed colours in string: ${colouredString}`); + addToChatBoxHistory(colouredString, colour); //if(bottomMessageIndex >= chatBoxHistory.length-1) { message(colouredString, colour); bottomMessageIndex = chatBoxHistory.length-1; //} - addToChatBoxHistory(colouredString, colour); chatLastUse = getCurrentUnixTimestamp(); } @@ -151,6 +151,8 @@ function processMouseWheelForChatBox(mouseId, deltaCoordinates, flipped) { // =========================================================================== function checkChatAutoHide() { + return false; + // Make sure chat input isn't active if(gui.cursorEnabled) { return false;