Debian Codegraph @

prboom2/src/dsda/text_color.h

raw
1 //
2 // Copyright(C) 2023 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // DESCRIPTION:
15 // DSDA Text Color
16 //
17
18 #ifndef __DSDA_TEXT_COLOR__
19 #define __DSDA_TEXT_COLOR__
20
21 typedef enum {
22 dsda_tc_exhud_time_label,
23 dsda_tc_exhud_level_time,
24 dsda_tc_exhud_total_time,
25 dsda_tc_exhud_demo_length,
26 dsda_tc_exhud_armor_zero,
27 dsda_tc_exhud_armor_one,
28 dsda_tc_exhud_armor_two,
29 dsda_tc_exhud_command_entry,
30 dsda_tc_exhud_command_queue,
31 dsda_tc_exhud_coords_base,
32 dsda_tc_exhud_coords_mf50,
33 dsda_tc_exhud_coords_sr40,
34 dsda_tc_exhud_coords_sr50,
35 dsda_tc_exhud_coords_fast,
36 dsda_tc_exhud_fps_bad,
37 dsda_tc_exhud_fps_fine,
38 dsda_tc_exhud_health_bad,
39 dsda_tc_exhud_health_warning,
40 dsda_tc_exhud_health_ok,
41 dsda_tc_exhud_health_super,
42 dsda_tc_exhud_line_close,
43 dsda_tc_exhud_line_far,
44 dsda_tc_exhud_line_special,
45 dsda_tc_exhud_line_normal,
46 dsda_tc_exhud_mobj_alive,
47 dsda_tc_exhud_mobj_dead,
48 dsda_tc_exhud_player_damage,
49 dsda_tc_exhud_player_neutral,
50 dsda_tc_exhud_ammo_label,
51 dsda_tc_exhud_ammo_mana1,
52 dsda_tc_exhud_ammo_mana2,
53 dsda_tc_exhud_ammo_value,
54 dsda_tc_exhud_ammo_bad,
55 dsda_tc_exhud_ammo_warning,
56 dsda_tc_exhud_ammo_ok,
57 dsda_tc_exhud_ammo_full,
58 dsda_tc_exhud_render_label,
59 dsda_tc_exhud_render_good,
60 dsda_tc_exhud_render_bad,
61 dsda_tc_exhud_sector_active,
62 dsda_tc_exhud_sector_special,
63 dsda_tc_exhud_sector_normal,
64 dsda_tc_exhud_speed_label,
65 dsda_tc_exhud_speed_slow,
66 dsda_tc_exhud_speed_normal,
67 dsda_tc_exhud_speed_fast,
68 dsda_tc_exhud_totals_label,
69 dsda_tc_exhud_totals_value,
70 dsda_tc_exhud_totals_max,
71 dsda_tc_exhud_weapon_label,
72 dsda_tc_exhud_weapon_owned,
73 dsda_tc_exhud_weapon_berserk,
74 dsda_tc_exhud_attempts,
75 dsda_tc_exhud_event_split,
76 dsda_tc_exhud_line_activation,
77 dsda_tc_exhud_local_time,
78 dsda_tc_exhud_free_text,
79 dsda_tc_hud_message,
80 dsda_tc_hud_secret_message,
81 dsda_tc_map_coords,
82 dsda_tc_map_time_level,
83 dsda_tc_map_time_total,
84 dsda_tc_map_title,
85 dsda_tc_map_totals_label,
86 dsda_tc_map_totals_value,
87 dsda_tc_map_totals_max,
88 dsda_tc_inter_split_normal,
89 dsda_tc_inter_split_good,
90 dsda_tc_inter_split_best,
91 dsda_tc_menu_title,
92 dsda_tc_menu_tab,
93 dsda_tc_menu_tab_highlight,
94 dsda_tc_menu_label,
95 dsda_tc_menu_label_highlight,
96 dsda_tc_menu_label_edit,
97 dsda_tc_menu_value,
98 dsda_tc_menu_value_highlight,
99 dsda_tc_menu_value_edit,
100 dsda_tc_menu_info_highlight,
101 dsda_tc_menu_info_edit,
102 dsda_tc_menu_warning,
103 dsda_tc_menu_scrollbar,
104 dsda_tc_stbar_health_bad,
105 dsda_tc_stbar_health_warning,
106 dsda_tc_stbar_health_ok,
107 dsda_tc_stbar_health_super,
108 dsda_tc_stbar_armor_zero,
109 dsda_tc_stbar_armor_one,
110 dsda_tc_stbar_armor_two,
111 dsda_tc_stbar_ammo_bad,
112 dsda_tc_stbar_ammo_warning,
113 dsda_tc_stbar_ammo_ok,
114 dsda_tc_stbar_ammo_full,
115 } dsda_text_color_index_t;
116
117 void dsda_LoadTextColor(void);
118 const char* dsda_TextColor(dsda_text_color_index_t i);
119 int dsda_TextCR(dsda_text_color_index_t i);
120 int dsda_ColorNameToIndex(const char* name);
121
122 #endif