32 void Console::messageLogged(
const Ogre::String& message, Ogre::LogMessageLevel lml,
bool maskDebug,
const Ogre::String& logName,
bool& skipThisMessage)
36 this->forwardLogMessage(CONSOLE_MSGTYPE_LOG, message, lml);
44 case Ogre::LML_WARNING:
48 case Ogre::LML_CRITICAL:
66 if (area != MessageArea::CONSOLE_MSGTYPE_LOG &&
67 type != MessageType::CONSOLE_SYSTEM_NETCHAT)
73 case MessageArea::CONSOLE_MSGTYPE_INFO: txt <<
"General";
break;
74 case MessageArea::CONSOLE_MSGTYPE_SCRIPT: txt <<
"Script";
break;
75 case MessageArea::CONSOLE_MSGTYPE_ACTOR: txt <<
"Actor";
break;
76 case MessageArea::CONSOLE_MSGTYPE_TERRN: txt <<
"Terrn";
break;
82 case MessageType::CONSOLE_SYSTEM_NOTICE: txt <<
"Notice";
break;
83 case MessageType::CONSOLE_SYSTEM_ERROR: txt <<
"Error";
break;
84 case MessageType::CONSOLE_SYSTEM_WARNING: txt <<
"Warning";
break;
85 case MessageType::CONSOLE_SYSTEM_REPLY: txt <<
"Success";
break;
93 std::lock_guard<std::mutex> lock(m_messages_mutex);
94 m_messages.emplace_back(area, type, msg, this->queryMessageTimer(), net_userid, icon);
99 this->handleMessage(area, type, msg, 0, icon);
104 this->handleMessage(CONSOLE_MSGTYPE_INFO, type, text, user_id);