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:
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user