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