Use % and °

This commit is contained in:
Learath2 2019-05-11 02:11:18 +02:00
parent b059ac256e
commit 82e6d180e4

View file

@ -768,7 +768,7 @@ static void ColVariableCommand(IConsole::IResult *pResult, void *pUserData)
pData->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", aBuf);
ColorHSLA hsl(*(pData->m_pVariable), true);
str_format(aBuf, sizeof(aBuf), "H: %d deg, S: %d, L: %d", round_truncate(hsl.h * 360), round_truncate(hsl.s * 100), round_truncate(hsl.l * 100));
str_format(aBuf, sizeof(aBuf), "H: %d°, S: %d%%, L: %d%%", round_truncate(hsl.h * 360), round_truncate(hsl.s * 100), round_truncate(hsl.l * 100));
pData->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", aBuf);
ColorRGBA rgb = color_cast<ColorRGBA>(hsl);
@ -777,7 +777,7 @@ static void ColVariableCommand(IConsole::IResult *pResult, void *pUserData)
if(pData->m_Alpha)
{
str_format(aBuf, sizeof(aBuf), "Alpha: %d", round_truncate(hsl.a * 100));
str_format(aBuf, sizeof(aBuf), "Alpha: %d%%", round_truncate(hsl.a * 100));
pData->m_pConsole->Print(IConsole::OUTPUT_LEVEL_STANDARD, "console", aBuf);
}
}