mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-25 05:31:00 +00:00
- used TEXTCOLOR_ #defines for colorizing CCMD list, remove use of strbin1.
This commit is contained in:
parent
0c850e8ddd
commit
6dee878b2e
1 changed files with 4 additions and 4 deletions
|
@ -2125,16 +2125,16 @@ static bool C_TabCompleteList ()
|
||||||
const char* colorcode = "";
|
const char* colorcode = "";
|
||||||
FConsoleCommand* ccmd;
|
FConsoleCommand* ccmd;
|
||||||
if (FindCVar (TabCommands[i].TabName, NULL))
|
if (FindCVar (TabCommands[i].TabName, NULL))
|
||||||
colorcode = "\\c[Green]";
|
colorcode = TEXTCOLOR_GREEN;
|
||||||
else if ((ccmd = FConsoleCommand::FindByName (TabCommands[i].TabName)) != NULL)
|
else if ((ccmd = FConsoleCommand::FindByName (TabCommands[i].TabName)) != NULL)
|
||||||
{
|
{
|
||||||
if (ccmd->IsAlias())
|
if (ccmd->IsAlias())
|
||||||
colorcode = "\\c[Red]";
|
colorcode = TEXTCOLOR_RED;
|
||||||
else
|
else
|
||||||
colorcode = "\\c[Light Blue]";
|
colorcode = TEXTCOLOR_LIGHTBLUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
Printf ("%s%-*s", strbin1 (colorcode).GetChars(), int(maxwidth), TabCommands[i].TabName.GetChars());
|
Printf ("%s%-*s", colorcode, int(maxwidth), TabCommands[i].TabName.GetChars());
|
||||||
x += maxwidth;
|
x += maxwidth;
|
||||||
if (x > ConCols - maxwidth)
|
if (x > ConCols - maxwidth)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue