mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Use % and °
This commit is contained in:
parent
b059ac256e
commit
82e6d180e4
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue