]> icculus.org git repositories - divverent/nexuiz.git/blob - scmenu/source/system/debug.qh
Adding my current version of the scmenu to the nexuiz cvs.
[divverent/nexuiz.git] / scmenu / source / system / debug.qh
1 // SCMenu
2 // system/debug.qh
3
4 // system cvars
5
6 // 0 or 1
7 const string    SYSTEM_CVAR_DEBUG               = "scmenu_debug";
8 const string    SYSTEM_CVAR_DEBUG_REF           = "scmenu_debug_ref";
9 const string    SYSTEM_CVAR_DEBUG_SOUND         = "scmenu_debug_sound";
10 const string    SYSTEM_CVAR_DEBUG_AREA          = "scmenu_debug_area";
11 const string    SYSTEM_CVAR_DEBUG_STEP          = "scmenu_debug_step";
12
13 // 0 for no info, 1 for local position, 2 for absolute position
14 const string    SYSTEM_CVAR_DEBUG_MOUSE         = "scmenu_debug_mouse";
15
16 // 0 for no output, 1 for medium output, 2 for extensive output
17 const string    SYSTEM_CVAR_DEBUG_STRUCTURE     = "scmenu_debug_structure";
18
19 // NOTE: set it to 1 to make it display the data for one frame, set it to 2 to display it always
20 const string    SYSTEM_CVAR_DEBUG_RUNFLAG       = "scmenu_debug_runflag";
21 const string    SYSTEM_CVAR_DEBUG_PROCESS       = "scmenu_debug_process";
22 const string    SYSTEM_CVAR_DEBUG_MGFX          = "scmenu_debug_mgfx";
23
24 // parser filter, possible values: info high low
25 const string    SYSTEM_CVAR_DEBUG_PARSER        = "scmenu_debug_parser";
26
27 // process_filter, possible values: runflag update draw mouse key
28 const string    SYSTEM_CVAR_DEBUG_PROCESS_FILTER = "scmenu_debug_process_filter";
29
30 // dump item names
31 const string    SYSTEM_CVAR_DEBUG_DUMP_NAMES = "scmenu_dumpnames";
32
33 const float     SYSTEM_CVAR_DEBUG_DEFAULT               = 0;
34 const float     SYSTEM_CVAR_DEBUG_REF_DEFAULT           = 0;
35 const float     SYSTEM_CVAR_DEBUG_RUNFLAG_DEFAULT       = 0;
36 const float     SYSTEM_CVAR_DEBUG_PROCESS_DEFAULT       = 0;
37 const float     SYSTEM_CVAR_DEBUG_MGFX_DEFAULT          = 0;
38 const float     SYSTEM_CVAR_DEBUG_STRUCTURE_DEFAULT     = 0;
39 const string    SYSTEM_CVAR_DEBUG_PARSER_DEFAULT        = "";
40 const string    SYSTEM_CVAR_DEBUG_PROCESS_FILTER_DEFAULT= "";
41 const float     SYSTEM_CVAR_DEBUG_SOUND_DEFAULT         = 0;
42 const float     SYSTEM_CVAR_DEBUG_AREA_DEFAULT          = 0;
43 const float     SYSTEM_CVAR_DEBUG_STEP_DEFAULT          = 0;
44 const float     SYSTEM_CVAR_DEBUG_MOUSE_DEFAULT         = 0;
45
46 bool sys_debug;
47 bool sys_debug_sound;
48 bool sys_debug_ref;
49 bool sys_debug_area;
50 bool sys_debug_runflag;
51 bool sys_debug_process;
52 bool sys_debug_mgfx;
53 float sys_debug_mouse;
54 float sys_debug_structure;
55 float sys_debug_parser;
56
57 float sys_debug_process_filter;
58
59 vector sys_debug_cursor_localpos;
60
61 void() Sys_Debug_Init;
62 void() Sys_Debug_Frame;
63 void() Sys_Debug_Draw;
64
65 void() Sys_Debug_DumpNames;
66
67