MCPcopy Create free account
hub / github.com/crossuo/crossuo / SetConsoleTypePrefix

Method SetConsoleTypePrefix

src/TextEngine/GameConsole.cpp:478–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476}
477
478void CGameConsole::SetConsoleTypePrefix(GAME_CONSOLE_TEXT_TYPE type)
479{
480 const wstr_t prefix = wstr_from(s_ConsolePrefix[type]);
481 switch (type)
482 {
483 case GCTT_YELL:
484 case GCTT_WHISPER:
485 case GCTT_EMOTE:
486 case GCTT_C:
487 case GCTT_BROADCAST:
488 case GCTT_PARTY:
489 {
490 auto str = prefix + g_GameConsole.GetTextW();
491 g_GameConsole.SetTextW(str);
492 break;
493 }
494 default:
495 break;
496 }
497}
498
499const char *CGameConsole::GetConsoleTypePrefix(GAME_CONSOLE_TEXT_TYPE type)
500{

Callers

nothing calls this directly

Calls 3

wstr_fromFunction · 0.85
GetTextWMethod · 0.80
SetTextWMethod · 0.45

Tested by

no test coverage detected