forked from teamnwah/openmw-tes3coop
[Client] Allow colors in the chat window
This commit is contained in:
parent
6ff9091afd
commit
db0e25cb6c
1 changed files with 4 additions and 2 deletions
|
@ -38,6 +38,8 @@ namespace mwmp
|
||||||
|
|
||||||
mHistory->setOverflowToTheLeft(true);
|
mHistory->setOverflowToTheLeft(true);
|
||||||
mHistory->setEditWordWrap(true);
|
mHistory->setEditWordWrap(true);
|
||||||
|
mHistory->setTextShadow(true);
|
||||||
|
mHistory->setTextShadowColour(MyGUI::Colour::Black);
|
||||||
|
|
||||||
windowState = 0;
|
windowState = 0;
|
||||||
mCommandLine->setVisible(0);
|
mCommandLine->setVisible(0);
|
||||||
|
@ -67,7 +69,7 @@ namespace mwmp
|
||||||
|
|
||||||
void GUIChat::acceptCommand(MyGUI::EditBox *_sender)
|
void GUIChat::acceptCommand(MyGUI::EditBox *_sender)
|
||||||
{
|
{
|
||||||
const std::string &cm = mCommandLine->getOnlyText();
|
const std::string &cm = MyGUI::TextIterator::toTagsString(mCommandLine->getCaption());
|
||||||
|
|
||||||
// If they enter nothing, then it should be canceled.
|
// If they enter nothing, then it should be canceled.
|
||||||
// Otherwise, there's no way of closing without having text.
|
// Otherwise, there's no way of closing without having text.
|
||||||
|
@ -112,7 +114,7 @@ namespace mwmp
|
||||||
{
|
{
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
}
|
}
|
||||||
mHistory->addText(color + MyGUI::TextIterator::toTagsString(msg));
|
mHistory->addText(color+msg);
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, msg.c_str());
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, msg.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue