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
34 alignment 16 // TEXT_ALIGN_LEFTPOS
35 flag 256 // FLAG_AUTOSETCLICK
36 key nex_redirect_key // redirects input to the child
47 flag 260 // FLAG_AUTOSETCLICK | FLAG_NOSELECT
49 cvartype 1 // CVAR_INT
58 name ppp_nnn_slidertext
68 Text switch with text :
70 cccc - name of it (and caption of the text)
72 nnn - name of the object group
73 yypp - y position of the object group
74 ccvv - name of the cvar
75 ssss - switches 'No' 'Yes'
89 alignment 16 // TEXT_ALIGN_RIGHTPOS
90 flag 256 // FLAG_AUTOSETCLICK
100 //font_size "10 10 0"
101 flag 260 // FLAG_AUTOSETCLICK | FLAG_NOSELECT
104 cvartype 1 // CVAR_INT
105 reinit nex_cvar_slider // can use it also here
114 //.string cvarvalues;
116 const float CVAR_FLOAT = 0;
117 const float CVAR_INT = 1;
118 //const float CVAR_STRING = 2;
119 const float CVAR_STEP = 4;
122 //.float maxlen; // <- ITEM_EDITBOX
123 void(void) nex_cvar_slider; // set reinit to this
124 void(void) _nex_cvar_slider_refresh;
125 void(void) _nex_cvar_slider;
127 float(float keynr, float ascii) nex_redirect_key;
129 void(void) nex_slidertext;
130 void(void) _nex_slidertext_refresh;
133 void(void) nex_options_alwaysrun_switchchange;
134 void(void) nex_options_alwaysrun_refresh;
136 void(void) nex_options_invmouse_switchchange;
137 void(void) nex_options_invmouse_refresh;
139 // quit message stuff
140 const float DPMOD_QUIT_MSG_COUNT = 4;
142 string nex_quitmsg_0 = "'Tired of fragging''already ?'",
143 nex_quitmsg_1 = "'Quit now and forfeit''your bodycount ?'",
144 nex_quitmsg_2 = "'Are you sure you''want to quit ?'",
145 nex_quitmsg_3 = "'Off to do something''constructive ?'";
147 float nex_quitrequest;
149 void(void) nex_quit_choose;
151 void(void) nex_quit_yes;
152 void(void) nex_quit_no;
153 float(float keynr, float ascii) nex_quit_key;