From 28018a28598a4ff95e022967e0aa73cf24edde30 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 22 Aug 2006 21:46:38 +0000 Subject: [PATCH] Added PCD_PRINTCOLOR support to ACC. SVN r305 (trunk) --- parse.c | 3 +++ pcode.c | 3 ++- pcode.h | 1 + zdefs.acs | 12 +++++++++++- 4 files changed, 17 insertions(+), 2 deletions(-) diff --git a/parse.c b/parse.c index 045ecce..2bb1068 100644 --- a/parse.c +++ b/parse.c @@ -2039,6 +2039,9 @@ static void BuildPrintString(void) case 'c': // character printCmd = PCD_PRINTCHARACTER; break; + case 'r': // color range + printCmd = PCD_PRINTCOLOR; + break; case 'n': // [BC] name printCmd = PCD_PRINTNAME; break; diff --git a/pcode.c b/pcode.c index def1871..8f2f26d 100644 --- a/pcode.c +++ b/pcode.c @@ -387,7 +387,7 @@ static char *PCDNames[PCODE_COMMAND_COUNT] = "PCD_SETACTORANGLE", "PCD_GRABINPUT", "PCD_SETMOUSEPOINTER", - "PCD_MOVEMOUSEPOINTER" + "PCD_MOVEMOUSEPOINTER", "PCD_SPAWNPROJECTILE", "PCD_GETSECTORLIGHTLEVEL", "PCD_GETACTORCEILINGZ", @@ -440,6 +440,7 @@ static char *PCDNames[PCODE_COMMAND_COUNT] = "PCD_CHANGELEVEL", "PCD_SECTORDAMAGE", "PCD_REPLACETEXTURES", + "PCD_PRINTCOLOR", }; diff --git a/pcode.h b/pcode.h index 5c15a28..f9ad7b0 100644 --- a/pcode.h +++ b/pcode.h @@ -390,6 +390,7 @@ typedef enum PCD_CHANGELEVEL, PCD_SECTORDAMAGE, PCD_REPLACETEXTURES, + PCD_PRINTCOLOR, PCODE_COMMAND_COUNT } pcd_t; diff --git a/zdefs.acs b/zdefs.acs index fb4967f..5a1c992 100644 --- a/zdefs.acs +++ b/zdefs.acs @@ -103,7 +103,7 @@ #define PROP_FLIGHT 12 #define PROP_SPEED 15 -// Text colors for hudmessage ----------------------------------------------- +// Text colors -------------------------------------------------------------- #define CR_UNTRANSLATED -1 #define CR_BRICK 0 @@ -118,6 +118,16 @@ #define CR_ORANGE 8 #define CR_WHITE 9 #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 --------------------------------------------------------