mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 23:34:37 +01:00
Refactor format tokens
This commit is contained in:
@@ -108,17 +108,17 @@ void StdInOutConsole::Close()
|
||||
openrct2_finish();
|
||||
}
|
||||
|
||||
void StdInOutConsole::WriteLine(const std::string& s, uint32_t colourFormat)
|
||||
void StdInOutConsole::WriteLine(const std::string& s, FormatToken colourFormat)
|
||||
{
|
||||
std::string formatBegin;
|
||||
if (colourFormat != FORMAT_WINDOW_COLOUR_2)
|
||||
if (colourFormat != FormatToken::ColourWindow2)
|
||||
{
|
||||
switch (colourFormat)
|
||||
{
|
||||
case FORMAT_RED:
|
||||
case FormatToken::ColourRed:
|
||||
formatBegin = "\033[31m";
|
||||
break;
|
||||
case FORMAT_YELLOW:
|
||||
case FormatToken::ColourYellow:
|
||||
formatBegin = "\033[33m";
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user