mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-24 13:01:48 +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 = "";
|
||||
FConsoleCommand* ccmd;
|
||||
if (FindCVar (TabCommands[i].TabName, NULL))
|
||||
colorcode = "\\c[Green]";
|
||||
colorcode = TEXTCOLOR_GREEN;
|
||||
else if ((ccmd = FConsoleCommand::FindByName (TabCommands[i].TabName)) != NULL)
|
||||
{
|
||||
if (ccmd->IsAlias())
|
||||
colorcode = "\\c[Red]";
|
||||
colorcode = TEXTCOLOR_RED;
|
||||
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;
|
||||
if (x > ConCols - maxwidth)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue