Merge pull request #486 from testman42/patch-2

Use more descriptive terminology for chat modes
This commit is contained in:
David Cernat 2018-11-17 23:19:17 +02:00 committed by GitHub
commit ef80894c5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -162,9 +162,9 @@ namespace mwmp
windowState++; windowState++;
if (windowState == 3) windowState = 0; if (windowState == 3) windowState = 0;
std::string chatMode = windowState == CHAT_DISABLED ? "Chat disabled" : std::string chatMode = windowState == CHAT_DISABLED ? "Chat hidden" :
windowState == CHAT_ENABLED ? "Chat enabled" : windowState == CHAT_ENABLED ? "Chat visible" :
"Chat in hidden mode"; "Chat appearing when needed";
LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Switch chat mode to %s", chatMode.c_str()); LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Switch chat mode to %s", chatMode.c_str());
MWBase::Environment::get().getWindowManager()->messageBox(chatMode); MWBase::Environment::get().getWindowManager()->messageBox(chatMode);