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