]> icculus.org git repositories - divverent/darkplaces.git/blob - menu.h
custom branding:
[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
27 enum m_state_e {
28         m_none,
29         m_main,
30         m_demo,
31         m_singleplayer,
32         m_transfusion_episode,
33         m_transfusion_skill,
34         m_load,
35         m_save,
36         m_multiplayer,
37         m_setup,
38         m_options,
39         m_video,
40         m_keys,
41         m_help,
42         m_credits,
43         m_quit,
44         m_lanconfig,
45         m_gameoptions,
46         m_slist,
47         m_options_effects,
48         m_options_graphics,
49         m_options_colorcontrol,
50         m_reset,
51         m_modlist
52 };
53
54 extern enum m_state_e m_state;
55 extern char m_return_reason[32];
56 void M_Update_Return_Reason(char *s);
57
58 /*
59 // hard-coded menus
60 //
61 void M_Init (void);
62 void M_KeyEvent (int key);
63 void M_Draw (void);
64 void M_ToggleMenu (int mode);
65
66 //
67 // menu prog menu
68 //
69 void MP_Init (void);
70 void MP_KeyEvent (int key);
71 void MP_Draw (void);
72 void MP_ToggleMenu (int mode);
73 void MP_Shutdown (void);*/
74
75 //
76 // menu router
77 //
78
79 void MR_Init_Commands (void);
80 void MR_Init (void);
81 void MR_Restart (void);
82 extern void (*MR_KeyEvent) (int key, int ascii, qboolean downevent);
83 extern void (*MR_Draw) (void);
84 extern void (*MR_ToggleMenu) (int mode);
85 extern void (*MR_Shutdown) (void);
86
87 typedef struct video_resolution_s
88 {
89         const char *type;
90         int width, height;
91         int conwidth, conheight;
92         double pixelheight; ///< pixel aspect
93 }
94 video_resolution_t;
95 extern video_resolution_t *video_resolutions;
96 extern int video_resolutions_count;
97 extern video_resolution_t video_resolutions_hardcoded[];
98 extern int video_resolutions_hardcoded_count;
99 #endif
100