]> icculus.org git repositories - divverent/darkplaces.git/blob - menu.h
rtlights were crashing when there's no vis in a q3bsp
[divverent/darkplaces.git] / menu.h
1 /*
2 Copyright (C) 1996-1997 Id Software, Inc.
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.
12
13 See the GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18
19 */
20
21 #ifndef MENU_H
22 #define MENU_H
23
24 #define M_PROG_FILENAME "menu.dat"
25 #define M_NAME  "menu"
26 #define M_MAX_EDICTS    (1 << 11) // should be enough for a menu
27
28 enum m_state_e {
29         m_none,
30         m_main,
31         m_demo,
32         m_singleplayer,
33         m_load,
34         m_save,
35         m_multiplayer,
36         m_setup,
37         m_options,
38         m_video,
39         m_keys,
40         m_help,
41         m_quit,
42         m_lanconfig,
43         m_gameoptions,
44         m_slist,
45         m_options_effects,
46         m_options_colorcontrol
47 };
48
49 extern enum m_state_e m_state;
50 extern char m_return_reason[32];
51
52 /*
53 // hard-coded menus
54 //
55 void M_Init (void);
56 void M_Keydown (int key);
57 void M_Draw (void);
58 void M_ToggleMenu_f (void);
59
60 //
61 // menu prog menu
62 //
63 void MP_Init (void);
64 void MP_Keydown (int key);
65 void MP_Draw (void);
66 void MP_ToggleMenu_f (void);
67 void MP_Shutdown (void);*/
68
69 //
70 // menu router
71 //
72 void MR_Init (void);
73 void MR_Restart (void);
74 void (*MR_Keydown) (int key, char ascii);
75 void (*MR_Draw) (void);
76 void (*MR_ToggleMenu_f) (void);
77 void (*MR_Shutdown) (void);
78 #endif
79