1 ///////////////////////////////////////////////
2 // Custom Menu Header File
3 ///////////////////////
4 // This file belongs to dpmod/darkplaces
5 // AK contains menu specific stuff that is made especially for dpmod
6 // AK this file is used e.g. for defining some special event functions
7 ///////////////////////////////////////////////
11 Sliders with text and description:
12 ----------------------------------
16 cccc - Name of the text (on the left of the menu)
17 nnn - Name of the object group
18 ppp - Parent of the object group
19 ccvv - Name of the cvar
33 alignment 16 // TEXT_ALIGN_LEFTPOS
34 flag 256 // FLAG_AUTOSETCLICK
35 key nex_redirect_key // redirects input to the child
45 flag 260 // FLAG_AUTOSETCLICK | FLAG_NOSELECT
47 cvartype 1 // CVAR_INT
56 name ppp_nnn_slidertext
65 Text switch with text :
67 cccc - name of it (and caption of the text)
69 nnn - name of the object group
70 yypp - y position of the object group
71 ccvv - name of the cvar
72 ssss - switches 'No' 'Yes'
85 alignment 16 // TEXT_ALIGN_RIGHTPOS
86 flag 256 // FLAG_AUTOSETCLICK
96 flag 260 // FLAG_AUTOSETCLICK | FLAG_NOSELECT
99 cvartype 1 // CVAR_INT
100 reinit nex_cvar_slider // can use it also here
109 //.string cvarvalues;
111 const float CVAR_FLOAT = 0;
112 const float CVAR_INT = 1;
113 //const float CVAR_STRING = 2;
114 const float CVAR_STEP = 4;
118 void(void) nex_cvar_slider; // set reinit to this
119 void(void) _nex_cvar_slider_refresh;
120 void(void) _nex_cvar_slider;
122 float(float keynr, float ascii) nex_redirect_key;
124 void(void) nex_slidertext;
125 void(void) _nex_slidertext_refresh;
128 void(void) nex_options_alwaysrun_switchchange;
129 void(void) nex_options_alwaysrun_refresh;
131 void(void) nex_options_invmouse_switchchange;
132 void(void) nex_options_invmouse_refresh;
134 // quit message stuff
135 const float DPMOD_QUIT_MSG_COUNT = 4;
137 string[4] nex_quitmsg =
138 "'Tired of fragging''already ?'",
139 "'Quit now and forfeit''your bodycount ?'",
140 "'Are you sure you''want to quit ?'",
141 "'Off to do something''constructive ?'";
143 float nex_quitrequest;
145 void(void) nex_quit_choose;
147 void(void) nex_quit_yes;
148 void(void) nex_quit_no;
149 float(float keynr, float ascii) nex_quit_key;