forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor.cpp
46 lines (40 loc) · 1.48 KB
/
color.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include <curses.h>
#include "color.h"
#define HILIGHT COLOR_BLUE
void init_colors()
{
start_color();
init_pair( 1, COLOR_WHITE, COLOR_BLACK );
init_pair( 2, COLOR_RED, COLOR_BLACK );
init_pair( 3, COLOR_GREEN, COLOR_BLACK );
init_pair( 4, COLOR_BLUE, COLOR_BLACK );
init_pair( 5, COLOR_CYAN, COLOR_BLACK );
init_pair( 6, COLOR_MAGENTA, COLOR_BLACK );
init_pair( 7, COLOR_YELLOW, COLOR_BLACK );
// Inverted Colors
init_pair( 8, COLOR_BLACK, COLOR_WHITE );
init_pair( 9, COLOR_BLACK, COLOR_RED );
init_pair(10, COLOR_BLACK, COLOR_GREEN );
init_pair(11, COLOR_BLACK, COLOR_BLUE );
init_pair(12, COLOR_BLACK, COLOR_CYAN );
init_pair(13, COLOR_BLACK, COLOR_MAGENTA);
init_pair(14, COLOR_BLACK, COLOR_YELLOW );
// Highlighted - blue background
init_pair(15, COLOR_WHITE, HILIGHT);
init_pair(16, COLOR_RED, HILIGHT);
init_pair(17, COLOR_GREEN, HILIGHT);
init_pair(18, COLOR_BLUE, HILIGHT);
init_pair(19, COLOR_CYAN, HILIGHT);
init_pair(20, COLOR_BLACK, HILIGHT);
init_pair(21, COLOR_MAGENTA, HILIGHT);
init_pair(22, COLOR_YELLOW, HILIGHT);
// Red background - for monsters on fire
init_pair(23, COLOR_WHITE, COLOR_RED);
init_pair(24, COLOR_RED, COLOR_RED);
init_pair(25, COLOR_GREEN, COLOR_RED);
init_pair(26, COLOR_BLUE, COLOR_RED);
init_pair(27, COLOR_CYAN, COLOR_RED);
init_pair(28, COLOR_MAGENTA, COLOR_RED);
init_pair(29, COLOR_YELLOW, COLOR_RED);
init_pair(30, COLOR_BLACK, COLOR_BLACK );
}