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