shorten options.c a little by moving some color stuff out of it

creates new coloratt.c file

Also, this attempts to fulfill a wish-list item by paxed, to
allow naming colors in symbols file by name as an alternative
to using r-g-b values.  The basic color names as well as html
color names are supported.
This commit is contained in:
nhmall
2024-03-03 14:11:17 -05:00
parent fb353fff6c
commit dbea5d8684
8 changed files with 807 additions and 573 deletions

View File

@@ -54,4 +54,21 @@
#define DRAGON_SILVER CLR_BRIGHT_CYAN
#define HI_ZAP CLR_BRIGHT_BLUE
enum nhcolortype { no_color, nh_color, rgb_color };
struct nethack_color {
enum nhcolortype colortyp;
int tableindex;
int rgbindex;
const char *name;
const char *hexval;
long r, g, b;
};
typedef struct color_and_attr {
int color, attr;
} color_attr;
#endif /* COLOR_H */
/*color.h*/