]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/menu.qh
Merge branch 'master' of git://de.git.xonotic.org/xonotic/xonotic-data.pk3dir
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / menu.qh
1 #define localcmd cmd
2
3 #define NULL (null_entity)
4 #define world NULL
5
6 // constants
7
8 const float GAME_ISSERVER       = 1;
9 const float GAME_CONNECTED      = 2;
10 const float GAME_DEVELOPER      = 4;
11
12 // prototypes
13
14 float Menu_Active;
15 float gamestatus;
16
17 const float S_SHIFT = 1;
18 const float S_CTRL = 2;
19 const float S_ALT = 4;
20
21 float frametime;
22 float time;
23
24 entity anim;
25 entity main;
26 void m_hide();
27 void m_display();
28 void m_goto(string name);
29 void m_goto_skin_selector();
30 void m_goto_language_selector();
31 void m_goto_video_settings();
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 void SUB_Null();
40
41 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.
42 void preMenuDraw(); // this is run before the menu is drawn. You may put some stuff there that has to be done every frame.
43 void postMenuDraw(); // this is run just after the menu is drawn (or not). Useful to draw something over everything else.