applied a patch by Duong-Khang NGUYEN <neoneurone@users.sf.net> and fixed it. ;)...
[supertux.git] / src / menu.h
1 /*
2   menu.h
3   
4   Super Tux - Menu
5   
6   by Tobias Glaesser
7   tobi.web@gmx.de
8   http://www.newbreedsoftware.com/supertux/
9   
10   December 20, 2003
11 */
12
13 #ifndef SUPERTUX_MENU_H
14 #define SUPERTUX_MENU_H
15
16 #include <SDL.h>
17
18 /* (global) menu variables */
19 int menuaction;
20 int menuitem;
21 int menumenu;
22 int show_menu;
23 int menu_change;
24
25 #define MENU_MAIN_ITEM_MAX 3
26 #define MENU_OPTIONS_ITEM_MAX 4
27
28 /* Action done on the menu */
29 enum {
30   MN_UP,
31   MN_DOWN,
32   MN_HIT
33 };
34
35 /* Menus */
36 enum {
37   MENU_MAIN,
38   MENU_OPTIONS
39 };
40
41 /* Initialize the menu variables */
42 void initmenu(void);
43
44 /* "Calculate" and draw the menu */
45 int drawmenu(void);
46
47 /* Check for a menu event */
48 void menu_event(SDLKey key);
49
50 #endif /*SUPERTUX_MENU_H*/
51