mirror of
https://github.com/ZDoom/acc.git
synced 2024-11-15 00:41:30 +00:00
Added PCD_PRINTCOLOR support to ACC.
SVN r305 (trunk)
This commit is contained in:
parent
911d10c48d
commit
28018a2859
4 changed files with 17 additions and 2 deletions
3
parse.c
3
parse.c
|
@ -2039,6 +2039,9 @@ static void BuildPrintString(void)
|
||||||
case 'c': // character
|
case 'c': // character
|
||||||
printCmd = PCD_PRINTCHARACTER;
|
printCmd = PCD_PRINTCHARACTER;
|
||||||
break;
|
break;
|
||||||
|
case 'r': // color range
|
||||||
|
printCmd = PCD_PRINTCOLOR;
|
||||||
|
break;
|
||||||
case 'n': // [BC] name
|
case 'n': // [BC] name
|
||||||
printCmd = PCD_PRINTNAME;
|
printCmd = PCD_PRINTNAME;
|
||||||
break;
|
break;
|
||||||
|
|
3
pcode.c
3
pcode.c
|
@ -387,7 +387,7 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
|
||||||
"PCD_SETACTORANGLE",
|
"PCD_SETACTORANGLE",
|
||||||
"PCD_GRABINPUT",
|
"PCD_GRABINPUT",
|
||||||
"PCD_SETMOUSEPOINTER",
|
"PCD_SETMOUSEPOINTER",
|
||||||
"PCD_MOVEMOUSEPOINTER"
|
"PCD_MOVEMOUSEPOINTER",
|
||||||
"PCD_SPAWNPROJECTILE",
|
"PCD_SPAWNPROJECTILE",
|
||||||
"PCD_GETSECTORLIGHTLEVEL",
|
"PCD_GETSECTORLIGHTLEVEL",
|
||||||
"PCD_GETACTORCEILINGZ",
|
"PCD_GETACTORCEILINGZ",
|
||||||
|
@ -440,6 +440,7 @@ static char *PCDNames[PCODE_COMMAND_COUNT] =
|
||||||
"PCD_CHANGELEVEL",
|
"PCD_CHANGELEVEL",
|
||||||
"PCD_SECTORDAMAGE",
|
"PCD_SECTORDAMAGE",
|
||||||
"PCD_REPLACETEXTURES",
|
"PCD_REPLACETEXTURES",
|
||||||
|
"PCD_PRINTCOLOR",
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
1
pcode.h
1
pcode.h
|
@ -390,6 +390,7 @@ typedef enum
|
||||||
PCD_CHANGELEVEL,
|
PCD_CHANGELEVEL,
|
||||||
PCD_SECTORDAMAGE,
|
PCD_SECTORDAMAGE,
|
||||||
PCD_REPLACETEXTURES,
|
PCD_REPLACETEXTURES,
|
||||||
|
PCD_PRINTCOLOR,
|
||||||
|
|
||||||
PCODE_COMMAND_COUNT
|
PCODE_COMMAND_COUNT
|
||||||
} pcd_t;
|
} pcd_t;
|
||||||
|
|
12
zdefs.acs
12
zdefs.acs
|
@ -103,7 +103,7 @@
|
||||||
#define PROP_FLIGHT 12
|
#define PROP_FLIGHT 12
|
||||||
#define PROP_SPEED 15
|
#define PROP_SPEED 15
|
||||||
|
|
||||||
// Text colors for hudmessage -----------------------------------------------
|
// Text colors --------------------------------------------------------------
|
||||||
|
|
||||||
#define CR_UNTRANSLATED -1
|
#define CR_UNTRANSLATED -1
|
||||||
#define CR_BRICK 0
|
#define CR_BRICK 0
|
||||||
|
@ -118,6 +118,16 @@
|
||||||
#define CR_ORANGE 8
|
#define CR_ORANGE 8
|
||||||
#define CR_WHITE 9
|
#define CR_WHITE 9
|
||||||
#define CR_YELLOW 10
|
#define CR_YELLOW 10
|
||||||
|
#define CR_BLACK 12
|
||||||
|
#define CR_LIGHTBLUE 13
|
||||||
|
#define CR_CREAM 14
|
||||||
|
#define CR_OLIVE 15
|
||||||
|
#define CR_DARKGREEN 16
|
||||||
|
#define CR_DARKRED 17
|
||||||
|
#define CR_DARKBROWN 18
|
||||||
|
#define CR_PURPLE 19
|
||||||
|
#define CR_DARKGRAY 20
|
||||||
|
#define CR_DARKGREY 20
|
||||||
|
|
||||||
// HUD message types --------------------------------------------------------
|
// HUD message types --------------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue