mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-22 03:52:00 -04:00
FIX(Client): Allow Colors to be input from chat window (#69)
* Fix(Client): Proper fix for not showing text colors in chat
This commit is contained in:
parent
3c9fe54282
commit
ecb053863b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user