From ecb053863b76e28971bbe7f8a81e746e92b75460 Mon Sep 17 00:00:00 2001 From: Dave Corley <73663882+magicaldave@users.noreply.github.com> Date: Wed, 11 Oct 2023 14:07:18 -0500 Subject: [PATCH] FIX(Client): Allow Colors to be input from chat window (#69) * Fix(Client): Proper fix for not showing text colors in chat --- apps/openmw/mwmp/GUI/GUIChat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/openmw/mwmp/GUI/GUIChat.cpp b/apps/openmw/mwmp/GUI/GUIChat.cpp index 9cfa44482..2019dde7b 100644 --- a/apps/openmw/mwmp/GUI/GUIChat.cpp +++ b/apps/openmw/mwmp/GUI/GUIChat.cpp @@ -72,8 +72,8 @@ namespace mwmp void GUIChat::acceptCommand(MyGUI::EditBox *_sender) { - const std::string &cm = MyGUI::TextIterator::toTagsString(mCommandLine->getCaption()); - + const std::string &cm = mCommandLine->getOnlyText(); + // If they enter nothing, then it should be canceled. // Otherwise, there's no way of closing without having text. if (cm.empty()) @@ -97,7 +97,7 @@ namespace mwmp // during the actual command execution mCommandLine->setCaption(""); setEditState(false); - send (cm); + send(cm); } void GUIChat::onResChange(int width, int height)