3 #define NULL (null_entity)
8 const float GAME_ISSERVER = 1;
9 const float GAME_CONNECTED = 2;
10 const float GAME_DEVELOPER = 4;
17 const float S_SHIFT = 1;
18 const float S_CTRL = 2;
19 const float S_ALT = 4;
28 void m_goto(string name);
32 .void(entity me, float key, float ascii) keyGrabbed;
34 float conwidth, conheight; // "virtual" conwidth/height values for other stuff to assume for scaling
36 float preMenuInit(); // you have to define this for pre-menu initialization. Return 0 if initialization needs to be retried a frame later, 1 if it succeeded.
37 void preMenuDraw(); // this is run before the menu is drawn. You may put some stuff there that has to be done every frame.
38 void postMenuDraw(); // this is run just after the menu is drawn (or not). Useful to draw something over everything else.
44 const string MENU_SOUND_CLEAR = "sound/menu/clear.wav";
45 const string MENU_SOUND_CLOSE = "sound/menu/close.wav";
46 const string MENU_SOUND_EXECUTE = "sound/menu/execute.wav";
47 const string MENU_SOUND_FOCUS = "sound/menu/focus.wav";
48 const string MENU_SOUND_OPEN = "sound/menu/open.wav";
49 const string MENU_SOUND_SELECT = "sound/menu/select.wav";
50 const string MENU_SOUND_SLIDE = "sound/menu/slide.wav";
51 const string MENU_SOUND_WINNER = "sound/menu/winner.wav";
53 void m_play_focus_sound();
54 void m_play_click_sound(string soundfile);