]> icculus.org git repositories - divverent/nexuiz.git/blob - data/qcsrc/menu/menu.qh
(untested) make rain and snow client side entities
[divverent/nexuiz.git] / data / qcsrc / menu / menu.qh
1 #define localcmd cmd
2
3 #define NULL (null_entity)
4
5 #define MAPINFO
6
7 // constants
8
9 const string string_null;
10 const vector eX = '1 0 0';
11 const vector eY = '0 1 0';
12 const vector eZ = '0 0 1';
13
14 const float GAME_ISSERVER       = 1;
15 const float GAME_CONNECTED      = 2;
16 const float GAME_DEVELOPER      = 4;
17
18 // prototypes
19
20 float Menu_Active;
21 float gamestatus;
22
23 const float S_SHIFT = 1;
24 const float S_CTRL = 2;
25 const float S_ALT = 4;
26
27 float frametime;
28 float time;
29
30 entity main;
31 void m_hide();
32 void m_display();
33 void m_goto(string name);
34 .string name;
35
36 entity keyGrabber;
37 .void(entity me, float key, float ascii) keyGrabbed;
38
39 float conwidth, conheight; // "virtual" conwidth/height values for other stuff to assume for scaling
40
41 void SUB_Null();
42
43 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.
44 void preMenuDraw(); // this is run before the menu is drawn. You may put some stuff there that has to be done every frame.
45 void postMenuDraw(); // this is run just after the menu is drawn (or not). Useful to draw something over everything else.