6 #include "xonotic/util.qh"
8 #include <common/constants.qh>
9 #include <common/util.qh>
11 const int GAME_ISSERVER = BIT(0);
12 const int GAME_CONNECTED = BIT(1);
13 const int GAME_DEVELOPER = BIT(2);
18 const int S_SHIFT = 1;
29 void m_goto(string name);
33 .void(entity this, float key, float ascii) keyGrabbed;
35 // "virtual" conwidth/height values for other stuff to assume for scaling
36 float conwidth, conheight;
38 /** you have to define this for pre-menu initialization. Return 0 if initialization needs to be retried a frame later, 1 if it succeeded. */
40 /** this is run before the menu is drawn. You may put some stuff there that has to be done every frame. */
42 /** this is run just after the menu is drawn (or not). Useful to draw something over everything else. */
47 void draw_reset_cropped();
49 const string MENU_SOUND_CLEAR = "sound/menu/clear.wav";
50 const string MENU_SOUND_CLOSE = "sound/menu/close.wav";
51 const string MENU_SOUND_EXECUTE = "sound/menu/execute.wav";
52 const string MENU_SOUND_FOCUS = "sound/menu/focus.wav";
53 const string MENU_SOUND_OPEN = "sound/menu/open.wav";
54 const string MENU_SOUND_SELECT = "sound/menu/select.wav";
55 const string MENU_SOUND_SLIDE = "sound/menu/slide.wav";
56 const string MENU_SOUND_WINNER = "sound/menu/winner.wav";
58 void m_play_focus_sound();
59 void m_play_click_sound(string soundfile);