]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/menu/menu.qh
Rename defs to qh
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / menu.qh
1 #ifndef MENU_H
2 #define MENU_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6     #include "../common/util-pre.qh"
7     #include "sys-pre.qh"
8     #include "../dpdefs/menudefs.qh"
9     #include "../dpdefs/keycodes.qh"
10     #include "sys-post.qh"
11     #include "config.qh"
12     #include "../warpzonelib/mathlib.qh"
13     #include "../common/util.qh"
14     #include "../common/test.qh"
15     #include "oo/base.qh"
16     #include "../common/playerstats.qh"
17     #include "../common/teams.qh"
18     #include "../common/constants.qh"
19     #include "../common/mapinfo.qh"
20     #include "../common/campaign_common.qh"
21     #include "../common/weapons/weapons.qh"
22     #include "../common/counting.qh"
23     #include "../common/command/markup.qh"
24     #include "../common/command/rpn.qh"
25     #include "../common/command/generic.qh"
26     #include "../common/command/shared_defs.qh"
27     #include "../common/urllib.qh"
28     #include "../common/monsters/monsters.qh"
29     #include "command/menu_cmd.qh"
30 #elif defined(SVQC)
31 #endif
32
33 #define localcmd cmd
34
35 #define NULL (null_entity)
36 #define world NULL
37
38 // constants
39
40 const float GAME_ISSERVER       = 1;
41 const float GAME_CONNECTED      = 2;
42 const float GAME_DEVELOPER      = 4;
43
44 // prototypes
45
46 float Menu_Active;
47 float gamestatus;
48
49 const float S_SHIFT = 1;
50 const float S_CTRL = 2;
51 const float S_ALT = 4;
52
53 float frametime;
54 float time;
55
56 entity anim;
57 entity main;
58 void m_hide();
59 void m_display();
60 void m_goto(string name);
61 .string name;
62
63 entity keyGrabber;
64 .void(entity me, float key, float ascii) keyGrabbed;
65
66 float conwidth, conheight; // "virtual" conwidth/height values for other stuff to assume for scaling
67
68 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.
69 void preMenuDraw(); // this is run before the menu is drawn. You may put some stuff there that has to be done every frame.
70 void postMenuDraw(); // this is run just after the menu is drawn (or not). Useful to draw something over everything else.
71
72 void m_sync();
73 #endif