]> icculus.org git repositories - divverent/nexuiz.git/blob - menusrc/options.menu
Added some new controls
[divverent/nexuiz.git] / menusrc / options.menu
1 /*
2 Property of Alientrap
3
4 Option menus
5 */
6 {
7         type    ITEM_WINDOW
8         name    options
9 }
10 // std menu stuff
11 {
12         type    ITEM_REFERENCE
13         name    options_bg_ref
14         parent  options
15         link    background
16 }
17 {
18         type    ITEM_REFERENCE
19         name    options_mainframe
20         parent  options
21         link    mainframe
22         orderpos 1000
23 }
24 {
25         type    ITEM_REFERENCE
26         name    options_panel_ref
27         parent  options
28         link    opt_panel
29         origin  "200 145"
30 }
31 // side panel
32 {
33         type    ITEM_WINDOW
34         name    opt_panel
35 }
36 // side panel entries
37 {
38         type    ITEM_TEXTBUTTON
39         name    opt_panel_game
40         parent  opt_panel
41         text    "Game"
42         pos             "0 0"
43 }
44 {
45         type    ITEM_TEXTBUTTON
46         name    opt_panel_controls
47         parent  opt_panel
48         text    "Controls"
49         pos             "0 15"
50         action  nex_cntrl
51 }{
52         type    ITEM_TEXTBUTTON
53         name    opt_panel_sound
54         parent  opt_panel
55         text    "Sound"
56         pos             "0 30"
57         action  nex_snd
58 }
59 {
60         type    ITEM_TEXTBUTTON
61         name    opt_panel_effects
62         parent  opt_panel
63         text    "Effects"
64         pos             "0 45"
65 }
66 {
67         type    ITEM_TEXTBUTTON
68         name    opt_panel_colctrl
69         parent  opt_panel
70         text    "Color Control"
71         pos             "0 60"
72         action  nex_cc
73 }
74 // ref for the 'working' window
75 {
76         type    ITEM_REFERENCE
77         name    options_settings_ref
78         parent  options
79         link    options_game
80         origin  "600 175"
81 }
82 // sub windows
83 // game
84 {
85         type    ITEM_WINDOW
86         name    options_game
87 }
88 // sound
89 {
90         type    ITEM_WINDOW
91         name    options_sound
92 }
93 //controls
94 {
95         type    ITEM_WINDOW
96         name    options_control
97 }
98 //////
99 // CD Music Volume
100 ////
101 // Menu Button
102 {
103         type            ITEM_TEXTBUTTON
104         name            options_sound_cdvolume_text
105         parent          options_sound
106         text            "CD Music Volume"
107         pos                     "0 0 0"
108         //font_size     "10 10 0"
109         alignment       16              // TEXT_ALIGN_LEFTPOS
110         flag            256             // FLAG_AUTOSETCLICK
111         key                     nex_redirect_key        // redirects input to the child
112         reinit          nex_snd_cd_init
113         refresh         nex_snd_cd_init
114 }
115 // Slider
116 {
117         type            ITEM_SLIDER
118         name            options_sound_cdvolume_slider
119         parent          options_sound_cdvolume_text
120         pos                     "10 0 0"
121         size            "100 8 0"
122         //size          "100 10 0"
123         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
124         cvarname        "bgmvolume"
125         cvartype        4               // CVAR_STEP
126         min_value       0
127         max_value       1
128         step            0.1
129         init            nex_cvar_slider
130 }
131 // Text
132 {
133         type            ITEM_TEXT
134         name            options_sound_cdvolume_slidertext
135         parent          options_sound_cdvolume_text
136         link            options_sound_cdvolume_slider
137         pos                     "120 0 0"
138         //font_size "10 10 0"
139         maxlen          4
140         init            nex_slidertext
141 }
142 //////
143 // Sound Volume
144 ////
145 // Menu Button
146 {
147         type            ITEM_TEXTBUTTON
148         name            options_sound_svolume_text
149         parent          options_sound
150         text            "Sound Volume"
151         pos                     "0 15 0"
152         //font_size     "10 10 0"
153         alignment       16              // TEXT_ALIGN_LEFTPOS
154         flag            256             // FLAG_AUTOSETCLICK
155         key                     nex_redirect_key        // redirects input to the child
156         refresh         nex_snd_snd_init
157 }
158 // Slider
159 {
160         type            ITEM_SLIDER
161         name            options_sound_svolume_slider
162         parent          options_sound_svolume_text
163         pos                     "10 15 0"
164         size            "100 8 0"
165         //size          "100 10 0"
166         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
167         cvarname        "volume"
168         cvartype        4               // CVAR_STEP
169         min_value       0
170         max_value       1
171         step            0.1
172         init            nex_cvar_slider
173 }
174 // Text
175 {
176         type            ITEM_TEXT
177         name            options_sound_svolume_slidertext
178         parent          options_sound_svolume_text
179         link            options_sound_svolume_slider
180         pos                     "120 15 0"
181         //font_size "10 10 0"
182         maxlen          4
183         init            nex_slidertext
184 }
185 //////
186 // Ambient Volume
187 ////
188 // Menu Button
189 {
190         type            ITEM_TEXTBUTTON
191         name            options_sound_avolume_text
192         parent          options_sound
193         text            "Ambient Volume"
194         pos                     "0 30 0"
195         //font_size     "10 10 0"
196         alignment       16              // TEXT_ALIGN_LEFTPOS
197         flag            256             // FLAG_AUTOSETCLICK
198         key                     nex_redirect_key        // redirects input to the child
199         refresh         nex_snd_snd_init
200 }
201 // Slider
202 {
203         type            ITEM_SLIDER
204         name            options_sound_avolume_slider
205         parent          options_sound_avolume_text
206         pos                     "10 30 0"
207         size            "100 8 0"
208         //size          "100 10 0"
209         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
210         cvarname        "snd_staticvolume"
211         cvartype        4               // CVAR_STEP
212         min_value       0
213         max_value       1
214         step            0.1
215         init            nex_cvar_slider
216 }
217 // Text
218 {
219         type            ITEM_TEXT
220         name            options_sound_avolume_slidertext
221         parent          options_sound_avolume_text
222         link            options_sound_avolume_slider
223         pos                     "120 30 0"
224         //font_size "10 10 0"
225         maxlen          4
226         init            nex_slidertext
227 }
228
229 // color control
230 {
231         type    ITEM_WINDOW
232         name    options_cc
233 }
234 {
235         type    ITEM_TEXTBUTTON
236         name    options_cc_reset
237         parent  options_cc
238         text    "Reset to defaults"
239         pos             "0 0"
240         alignment       16
241         action  nex_cc_reset
242 }
243 //////
244 // Hardware Gamma Control
245 ////
246 // Text
247 {
248         type    ITEM_TEXTBUTTON
249         name            options_cc_hwgamma_text
250         parent          options_cc
251         text            "Hardware Gamma Control"
252         pos                     "0 15 0"
253         //font_size     "10 10 0"
254         alignment       16              // TEXT_ALIGN_RIGHTPOS
255         flag            256             // FLAG_AUTOSETCLICK
256         key                     nex_redirect_key
257         reinit          nex_cc_check_hwgamma
258 }
259 // Switch
260 {
261         type    ITEM_TEXTSWITCH
262         name            options_cc_hwgamma_switch
263         parent          options_cc_hwgamma_text
264         pos                     "10 15 0"
265         //font_size     "10 10 0"
266         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
267         text            "'Off''On'"
268         cvarname        "v_hwgamma"
269         cvartype        1               // CVAR_INT
270         reinit          nex_cvar_slider // can use it also here
271 }
272 //////
273 // Gamma
274 ////
275 // Menu Button
276 {
277         type            ITEM_TEXTBUTTON
278         name            options_cc_gamma_text
279         parent          options_cc
280         text            "Gamma"
281         pos                     "0 30 0"
282         //font_size     "10 10 0"
283         alignment       16              // TEXT_ALIGN_LEFTPOS
284         flag            256             // FLAG_AUTOSETCLICK
285         key                     nex_redirect_key        // redirects input to the child
286         refresh         nex_cc_check_gamma
287 }
288 // Slider
289 {
290         type            ITEM_SLIDER
291         name            options_cc_gamma_slider
292         parent          options_cc_gamma_text
293         pos                     "10 30 0"
294         size            "100 10 0"
295         //size          "100 10 0"
296         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
297         cvarname        "v_gamma"
298         cvartype        4               // CVAR_STEP
299         min_value       1
300         max_value       5
301         step            0.125
302         init            nex_cvar_slider
303         action          nex_cc_ncolor_enable
304 }
305 // Text
306 {
307         type            ITEM_TEXT
308         name            options_cc_gamma_slidertext
309         parent          options_cc_gamma_text
310         link            options_cc_gamma_slider
311         pos                     "120 30 0"
312         //font_size "10 10 0"
313         maxlen          4
314         init            nex_slidertext
315 }
316 //////
317 // Contrast
318 ////
319 // Menu Button
320 {
321         type            ITEM_TEXTBUTTON
322         name            options_cc_contrast_text
323         parent          options_cc
324         text            "Contrast"
325         pos                     "0 45 0"
326         //font_size     "10 10 0"
327         alignment       16              // TEXT_ALIGN_LEFTPOS
328         flag            256             // FLAG_AUTOSETCLICK
329         key                     nex_redirect_key        // redirects input to the child
330         refresh         nex_cc_check_ncolor_enable
331 }
332 // Slider
333 {
334         type            ITEM_SLIDER
335         name            options_cc_contrast_slider
336         parent          options_cc_contrast_text
337         pos                     "10 45 0"
338         size            "100 8 0"
339         //size          "100 10 0"
340         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
341         cvarname        "v_contrast"
342         cvartype        4               // CVAR_STEP
343         min_value       1
344         max_value       5
345         step            0.125
346         init            nex_cvar_slider
347         action          nex_cc_ncolor_enable
348 }
349 // Text
350 {
351         type            ITEM_TEXT
352         name            options_cc_contrast_slidertext
353         parent          options_cc_contrast_text
354         link            options_cc_contrast_slider
355         pos                     "120 45 0"
356         //font_size "10 10 0"
357         maxlen          4
358         init            nex_slidertext
359 }
360 //////
361 // Brightness
362 ////
363 // Menu Button
364 {
365         type            ITEM_TEXTBUTTON
366         name            options_cc_brightness_text
367         parent          options_cc
368         text            "Brightness"
369         pos                     "0 60 0"
370         //font_size     "10 10 0"
371         alignment       16              // TEXT_ALIGN_LEFTPOS
372         flag            256             // FLAG_AUTOSETCLICK
373         key                     nex_redirect_key        // redirects input to the child
374         refresh         nex_cc_check_ncolor_enable
375 }
376 // Slider
377 {
378         type            ITEM_SLIDER
379         name            options_cc_brightness_slider
380         parent          options_cc_brightness_text
381         pos                     "10 60 0"
382         size            "100 8 0"
383         //size          "100 10 0"
384         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
385         cvarname        "v_brightness"
386         cvartype        4               // CVAR_STEP
387         min_value       0
388         max_value       0.8
389         step            0.05
390         init            nex_cvar_slider
391         action          nex_cc_ncolor_enable
392 }
393 // Text
394 {
395         type            ITEM_TEXT
396         name            options_cc_brightness_slidertext
397         parent          options_cc_brightness_text
398         link            options_cc_brightness_slider
399         pos                     "120 60 0"
400         //font_size "10 10 0"
401         maxlen          4
402         init            nex_slidertext
403 }
404 //////
405 // Color Level Controls
406 ////
407 // Text
408 {
409         type    ITEM_TEXTBUTTON
410         name            options_cc_color_level_controls_text
411         parent          options_cc
412         text            "Color Level Controls"
413         pos                     "0 75 0"
414         //font_size     "10 10 0"
415         alignment       16              // TEXT_ALIGN_RIGHTPOS
416         flag            256             // FLAG_AUTOSETCLICK
417         key                     nex_redirect_key
418 }
419 // Switch
420 {
421         type    ITEM_TEXTSWITCH
422         name            options_cc_color_level_controls_switch
423         parent          options_cc_color_level_controls_text
424         pos                     "10 75 0"
425         //font_size     "10 10 0"
426         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
427         text            "'Off''On'"
428         cvarname        "v_color_enable"
429         cvartype        1               // CVAR_INT
430         reinit          nex_cvar_slider // can use it also here
431 }
432 //////
433 // Black: Red
434 ////
435 // Menu Button
436 {
437         type            ITEM_TEXTBUTTON
438         name            options_cc_black_red_text
439         parent          options_cc
440         text            "Black: Red  "
441         pos                     "0 90 0"
442         //font_size     "10 10 0"
443         alignment       16              // TEXT_ALIGN_LEFTPOS
444         flag            256             // FLAG_AUTOSETCLICK
445         key                     nex_redirect_key        // redirects input to the child
446         refresh         nex_cc_check_color_enable
447 }
448 // Slider
449 {
450         type            ITEM_SLIDER
451         name            options_cc_black_red_slider
452         parent          options_cc_black_red_text
453         pos                     "10 90 0"
454         size            "100 8 0"
455         //size          "100 10 0"
456         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
457         cvarname        "v_color_black_r"
458         cvartype        4               // CVAR_STEP
459         min_value       0
460         max_value       0.80
461         step            0.125
462         init            nex_cvar_slider
463         action          nex_cc_color_enable
464 }
465 // Text
466 {
467         type            ITEM_TEXT
468         name            options_cc_black_red_slidertext
469         parent          options_cc_black_red_text
470         link            options_cc_black_red_slider
471         pos                     "120 90 0"
472         //font_size "10 10 0"
473         maxlen          4
474         init            nex_slidertext
475 }
476 //////
477 // Black: Green
478 ////
479 // Menu Button
480 {
481         type            ITEM_TEXTBUTTON
482         name            options_cc_black_green_text
483         parent          options_cc
484         text            "Black: Green"
485         pos                     "0 105 0"
486         //font_size     "10 10 0"
487         alignment       16              // TEXT_ALIGN_LEFTPOS
488         flag            256             // FLAG_AUTOSETCLICK
489         key                     nex_redirect_key        // redirects input to the child
490         refresh         nex_cc_check_color_enable
491 }
492 // Slider
493 {
494         type            ITEM_SLIDER
495         name            options_cc_black_green_slider
496         parent          options_cc_black_green_text
497         pos                     "10 105 0"
498         size            "100 8 0"
499         //size          "100 10 0"
500         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
501         cvarname        "v_color_black_g"
502         cvartype        4               // CVAR_STEO
503         min_value       0
504         max_value       0.80
505         step            0.125
506         init            nex_cvar_slider
507         action          nex_cc_color_enable
508 }
509 // Text
510 {
511         type            ITEM_TEXT
512         name            options_cc_black_green_slidertext
513         parent          options_cc_black_green_text
514         link            options_cc_black_green_slider
515         pos                     "120 105 0"
516         //font_size "10 10 0"
517         maxlen          4
518         init            nex_slidertext
519 }
520 //////
521 // Black: Blue
522 ////
523 // Menu Button
524 {
525         type            ITEM_TEXTBUTTON
526         name            options_cc_black_blue_text
527         parent          options_cc
528         text            "Black: Blue "
529         pos                     "0 120 0"
530         //font_size     "10 10 0"
531         alignment       16              // TEXT_ALIGN_LEFTPOS
532         flag            256             // FLAG_AUTOSETCLICK
533         key                     nex_redirect_key        // redirects input to the child
534         refresh         nex_cc_check_color_enable
535 }
536 // Slider
537 {
538         type            ITEM_SLIDER
539         name            options_cc_black_blue_slider
540         parent          options_cc_black_blue_text
541         pos                     "10 120 0"
542         size            "100 8 0"
543         //size          "100 10 0"
544         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
545         cvarname        "v_color_black_b"
546         cvartype        4               // CVAR_STEP
547         min_value       0
548         max_value       0.80
549         step            0.125
550         init            nex_cvar_slider
551         action          nex_cc_color_enable
552 }
553 // Text
554 {
555         type            ITEM_TEXT
556         name            options_cc_black_blue_slidertext
557         parent          options_cc_black_blue_text
558         link            options_cc_black_blue_slider
559         pos                     "120 120 0"
560         //font_size "10 10 0"
561         maxlen          4
562         init            nex_slidertext
563 }
564 //////
565 // Black: Grey
566 ////
567 // Menu Button
568 {
569         type            ITEM_TEXTBUTTON
570         name            options_cc_black_grey_text
571         parent          options_cc
572         text            "Black: Grey "
573         pos                     "0 135 0"
574         //font_size     "10 10 0"
575         alignment       16              // TEXT_ALIGN_LEFTPOS
576         flag            256             // FLAG_AUTOSETCLICK
577         key                     nex_redirect_key        // redirects input to the child
578         refresh         nex_cc_check_color_enable
579 }
580 // Slider
581 {
582         type            ITEM_SLIDER
583         name            options_cc_black_grey_slider
584         parent          options_cc_black_grey_text
585         pos                     "10 135 0"
586         size            "100 8 0"
587         //size          "100 10 0"
588         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
589         cvarname        "v_color_black"
590         cvartype        1               // CVAR_INT
591         min_value       0
592         max_value       0.8
593         step            0.125
594         init            nex_cc_grey
595         action          nex_cc_color_enable
596 }
597 // Text
598 {
599         type            ITEM_TEXT
600         name            options_cc_black_grey_slidertext
601         parent          options_cc_black_grey_text
602         link            options_cc_black_grey_slider
603         pos                     "120 135 0"
604         //font_size "10 10 0"
605         maxlen          4
606         init            nex_slidertext
607 }
608 //////
609 // Grey: Red
610 ////
611 // Menu Button
612 {
613         type            ITEM_TEXTBUTTON
614         name            options_cc_grey_red_text
615         parent          options_cc
616         text            "Grey: Red  "
617         pos                     "0 150 0"
618         //font_size     "10 10 0"
619         alignment       16              // TEXT_ALIGN_LEFTPOS
620         flag            256             // FLAG_AUTOSETCLICK
621         key                     nex_redirect_key        // redirects input to the child
622         refresh         nex_cc_check_grey
623 }
624 // Slider
625 {
626         type            ITEM_SLIDER
627         name            options_cc_grey_red_slider
628         parent          options_cc_grey_red_text
629         pos                     "10 150 0"
630         size            "100 8 0"
631         //size          "100 10 0"
632         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
633         cvarname        "v_color_grey_r"
634         cvartype        4               // CVAR_STEP
635         min_value       0
636         max_value       0.80
637         step            0.125
638         init            nex_cvar_slider
639         action          nex_cc_color_enable
640 }
641 // Text
642 {
643         type            ITEM_TEXT
644         name            options_cc_grey_red_slidertext
645         parent          options_cc_grey_red_text
646         link            options_cc_grey_red_slider
647         pos                     "120 150 0"
648         //font_size "10 10 0"
649         maxlen          4
650         init            nex_slidertext
651 }
652 //////
653 // Grey: Green
654 ////
655 // Menu Button
656 {
657         type            ITEM_TEXTBUTTON
658         name            options_cc_grey_green_text
659         parent          options_cc
660         text            "Grey: Green"
661         pos                     "0 165 0"
662         //font_size     "10 10 0"
663         alignment       16              // TEXT_ALIGN_LEFTPOS
664         flag            256             // FLAG_AUTOSETCLICK
665         key                     nex_redirect_key        // redirects input to the child
666         refresh         nex_cc_check_grey
667 }
668 // Slider
669 {
670         type            ITEM_SLIDER
671         name            options_cc_grey_green_slider
672         parent          options_cc_grey_green_text
673         pos                     "10 165 0"
674         size            "100 8 0"
675         //size          "100 10 0"
676         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
677         cvarname        "v_color_grey_g"
678         cvartype        4               // CVAR_STEO
679         min_value       0
680         max_value       0.80
681         step            0.125
682         init            nex_cvar_slider
683         action          nex_cc_color_enable
684 }
685 // Text
686 {
687         type            ITEM_TEXT
688         name            options_cc_grey_green_slidertext
689         parent          options_cc_grey_green_text
690         link            options_cc_grey_green_slider
691         pos                     "120 165 0"
692         //font_size "10 10 0"
693         maxlen          4
694         init            nex_slidertext
695 }
696 //////
697 // Grey: Blue
698 ////
699 // Menu Button
700 {
701         type            ITEM_TEXTBUTTON
702         name            options_cc_grey_blue_text
703         parent          options_cc
704         text            "Grey: Blue "
705         pos                     "0 180 0"
706         //font_size     "10 10 0"
707         alignment       16              // TEXT_ALIGN_LEFTPOS
708         flag            256             // FLAG_AUTOSETCLICK
709         key                     nex_redirect_key        // redirects input to the child
710         refresh         nex_cc_check_grey
711 }
712 // Slider
713 {
714         type            ITEM_SLIDER
715         name            options_cc_grey_blue_slider
716         parent          options_cc_grey_blue_text
717         pos                     "10 180 0"
718         size            "100 8 0"
719         //size          "100 10 0"
720         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
721         cvarname        "v_color_grey_b"
722         cvartype        4               // CVAR_STEP
723         min_value       0
724         max_value       0.80
725         step            0.125
726         init            nex_cvar_slider
727         action          nex_cc_color_enable
728 }
729 // Text
730 {
731         type            ITEM_TEXT
732         name            options_cc_grey_blue_slidertext
733         parent          options_cc_grey_blue_text
734         link            options_cc_grey_blue_slider
735         pos                     "120 180 0"
736         //font_size "10 10 0"
737         maxlen          4
738         init            nex_slidertext
739 }
740 //////
741 // Grey: Grey
742 ////
743 // Menu Button
744 {
745         type            ITEM_TEXTBUTTON
746         name            options_cc_grey_grey_text
747         parent          options_cc
748         text            "Grey: Grey "
749         pos                     "0 195 0"
750         //font_size     "10 10 0"
751         alignment       16              // TEXT_ALIGN_LEFTPOS
752         flag            256             // FLAG_AUTOSETCLICK
753         key                     nex_redirect_key        // redirects input to the child
754         refresh         nex_cc_check_grey
755 }
756 // Slider
757 {
758         type            ITEM_SLIDER
759         name            options_cc_grey_grey_slider
760         parent          options_cc_grey_grey_text
761         pos                     "10 195 0"
762         size            "100 8 0"
763         //size          "100 10 0"
764         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
765         cvarname        "v_color_grey"
766         cvartype        1               // CVAR_INT
767         min_value       0
768         max_value       0.8
769         step            0.125
770         init            nex_cc_grey
771         action          nex_cc_color_enable
772 }
773 // Text
774 {
775         type            ITEM_TEXT
776         name            options_cc_grey_grey_slidertext
777         parent          options_cc_grey_grey_text
778         link            options_cc_grey_grey_slider
779         pos                     "120 195 0"
780         //font_size "10 10 0"
781         maxlen          4
782         init            nex_slidertext
783 }
784 //////
785 // White: Red
786 ////
787 // Menu Button
788 {
789         type            ITEM_TEXTBUTTON
790         name            options_cc_white_red_text
791         parent          options_cc
792         text            "White: Red  "
793         pos                     "0 210 0"
794         //font_size     "10 10 0"
795         alignment       16              // TEXT_ALIGN_LEFTPOS
796         flag            256             // FLAG_AUTOSETCLICK
797         key                     nex_redirect_key        // redirects input to the child
798         refresh         nex_cc_check_color_enable
799 }
800 // Slider
801 {
802         type            ITEM_SLIDER
803         name            options_cc_white_red_slider
804         parent          options_cc_white_red_text
805         pos                     "10 210 0"
806         size            "100 8 0"
807         //size          "100 10 0"
808         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
809         cvarname        "v_color_white_r"
810         cvartype        4               // CVAR_STEP
811         min_value       0
812         max_value       0.80
813         step            0.125
814         init            nex_cvar_slider
815         action          nex_cc_color_enable
816 }
817 // Text
818 {
819         type            ITEM_TEXT
820         name            options_cc_white_red_slidertext
821         parent          options_cc_white_red_text
822         link            options_cc_white_red_slider
823         pos                     "120 210 0"
824         //font_size "10 10 0"
825         maxlen          4
826         init            nex_slidertext
827 }
828 //////
829 // White: Green
830 ////
831 // Menu Button
832 {
833         type            ITEM_TEXTBUTTON
834         name            options_cc_white_green_text
835         parent          options_cc
836         text            "White: Green"
837         pos                     "0 225 0"
838         //font_size     "10 10 0"
839         alignment       16              // TEXT_ALIGN_LEFTPOS
840         flag            256             // FLAG_AUTOSETCLICK
841         key                     nex_redirect_key        // redirects input to the child
842         refresh         nex_cc_check_color_enable
843 }
844 // Slider
845 {
846         type            ITEM_SLIDER
847         name            options_cc_white_green_slider
848         parent          options_cc_white_green_text
849         pos                     "10 225 0"
850         size            "100 8 0"
851         //size          "100 10 0"
852         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
853         cvarname        "v_color_white_g"
854         cvartype        4               // CVAR_STEO
855         min_value       0
856         max_value       0.80
857         step            0.125
858         init            nex_cvar_slider
859         action          nex_cc_color_enable
860 }
861 // Text
862 {
863         type            ITEM_TEXT
864         name            options_cc_white_green_slidertext
865         parent          options_cc_white_green_text
866         link            options_cc_white_green_slider
867         pos                     "120 225 0"
868         //font_size "10 10 0"
869         maxlen          4
870         init            nex_slidertext
871 }
872 //////
873 // White: Blue
874 ////
875 // Menu Button
876 {
877         type            ITEM_TEXTBUTTON
878         name            options_cc_white_blue_text
879         parent          options_cc
880         text            "White: Blue "
881         pos                     "0 240 0"
882         //font_size     "10 10 0"
883         alignment       16              // TEXT_ALIGN_LEFTPOS
884         flag            256             // FLAG_AUTOSETCLICK
885         key                     nex_redirect_key        // redirects input to the child
886         refresh         nex_cc_check_color_enable
887 }
888 // Slider
889 {
890         type            ITEM_SLIDER
891         name            options_cc_white_blue_slider
892         parent          options_cc_white_blue_text
893         pos                     "10 240 0"
894         size            "100 8 0"
895         //size          "100 10 0"
896         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
897         cvarname        "v_color_white_b"
898         cvartype        4               // CVAR_STEP
899         min_value       0
900         max_value       0.80
901         step            0.125
902         init            nex_cvar_slider
903         action          nex_cc_color_enable
904 }
905 // Text
906 {
907         type            ITEM_TEXT
908         name            options_cc_white_blue_slidertext
909         parent          options_cc_white_blue_text
910         link            options_cc_white_blue_slider
911         pos                     "120 240 0"
912         //font_size "10 10 0"
913         maxlen          4
914         init            nex_slidertext
915 }
916 //////
917 // White: Grey
918 ////
919 // Menu Button
920 {
921         type            ITEM_TEXTBUTTON
922         name            options_cc_white_grey_text
923         parent          options_cc
924         text            "White: Grey "
925         pos                     "0 255 0"
926         //font_size     "10 10 0"
927         alignment       16              // TEXT_ALIGN_LEFTPOS
928         flag            256             // FLAG_AUTOSETCLICK
929         key                     nex_redirect_key        // redirects input to the child
930         refresh         nex_cc_check_color_enable
931 }
932 // Slider
933 {
934         type            ITEM_SLIDER
935         name            options_cc_white_grey_slider
936         parent          options_cc_white_grey_text
937         pos                     "10 255 0"
938         size            "100 8 0"
939         //size          "100 10 0"
940         flag            260             // FLAG_AUTOSETCLICK | FLAG_NOSELECT
941         cvarname        "v_color_white"
942         cvartype        1               // CVAR_INT
943         min_value       0
944         max_value       0.8
945         step            0.125
946         init            nex_cc_grey
947         action          nex_cc_color_enable
948 }
949 // Text
950 {
951         type            ITEM_TEXT
952         name            options_cc_white_grey_slidertext
953         parent          options_cc_white_grey_text
954         link            options_cc_white_grey_slider
955         pos                     "120 255 0"
956         //font_size "10 10 0"
957         maxlen          4
958         init            nex_slidertext
959 }
960 // dither pattern
961 {
962         type            ITEM_PICTURE
963         name            options_cc_pattern_pic
964         parent          options_cc
965         picture         "gfx/m_cc_pattern"
966         pos                     "-243.75 270"
967         //size          "487.5 137.5"
968         size            "501.76 143.36"
969 }
970 // control menu
971 // we use a special type called CONTROL_KEY
972 // which uses the fields :
973 // name         has to be unique
974 // text         description
975 // link         command, e.g. "+attack"
976 // template
977 {
978         type            ITEM_TEXTBUTTON
979         name            control_desc_template
980         //parent                options_control
981         text            "Template Desc"
982         pos                     "0 15"
983         alignment       16              // TEXT_ALIGN_RIGHT
984         flag            256             // FLAG_AUTOSETCLICK
985         refresh         nex_con_update_keys
986         action          nex_con_action_key
987         key                     nex_con_key
988 }
989 {
990         type            ITEM_TEXT
991         name            control_key_template
992         //parent                options_control
993         pos                     "100    15"
994         alignment   1
995 }
996 // state message - "Press a key or mouse button to set the new bind", etc.
997 {
998         type            ITEM_TEXTSWITCH
999         name            options_control_statemsg1
1000         parent          options_control
1001         text            "'[Enter] Assign a new binding''Press the desired key'"
1002         pos                     "-100 -40"
1003         size            "200    0"
1004         font_size       "11 11"
1005         alignment       1
1006 }
1007 {
1008         type            ITEM_TEXTSWITCH
1009         name            options_control_statemsg2
1010         parent          options_control
1011         text            "'[Del] Remove all bindings''[Escape] to abort'"
1012         pos                     "-100 -25"
1013         size            "200    0"
1014         font_size       "11 11"
1015         alignment       1
1016 }
1017 {
1018         type            CONTROL_KEY
1019         name            key_forward
1020         text            "Move forward"
1021         link            "+forward"
1022 }
1023 {
1024         type            CONTROL_KEY
1025         name            key_back
1026         text            "Move back"
1027         link            "+back"
1028 }
1029 {
1030         type            CONTROL_KEY
1031         name            key_moveright
1032         text            "Move right"
1033         link            "+moveright"
1034 }
1035 {
1036         type            CONTROL_KEY
1037         name            key_moveleft
1038         text            "Move left"
1039         link            "+moveleft"
1040 }
1041 {
1042         type            CONTROL_KEY
1043         name            key_attack
1044         text            "Fire Weapon"
1045         link            "+attack"
1046 }
1047 {
1048         type            CONTROL_KEY
1049         name            key_SecondaryAttack
1050         text            "Secondary Attack"
1051         link            "+button3"
1052 }
1053 {
1054         type            CONTROL_KEY
1055         name            key_jump
1056         text            "Jump"
1057         link            "+jump"
1058 }
1059 {
1060         type            CONTROL_KEY
1061         name            key_crouch
1062         text            "Crouch"
1063         link            "+shift"
1064 }
1065 {
1066         type            CONTROL_KEY
1067         name            key_weapnext
1068         text            "Next Weapon"
1069         link            "weapnext"
1070 }
1071 {
1072         type            CONTROL_KEY
1073         name            key_weapprev
1074         text            "Prev Weapon"
1075         link            "weapprev"
1076 }
1077 {
1078         type            CONTROL_KEY
1079         name            key_showscores
1080         text            "Show Scores"
1081         link            "+showscores"
1082 }
1083 {
1084         type            CONTROL_KEY
1085         name            key_weapon1
1086         text            "Select Laser"
1087         link            "impulse 1"
1088 }
1089 {
1090         type            CONTROL_KEY
1091         name            key_weapon2
1092         text            "Select Uzi"
1093         link            "impulse 2"
1094 }
1095 {
1096         type            CONTROL_KEY
1097         name            key_weapon3
1098         text            "Select Shotgun"
1099         link            "impulse 3"
1100 }
1101 {
1102         type            CONTROL_KEY
1103         name            key_weapon4
1104         text            "Select Grenade"
1105         link            "impulse 4"
1106 }
1107 {
1108         type            CONTROL_KEY
1109         name            key_weapon5
1110         text            "Select Electro"
1111         link            "impulse 5"
1112 }
1113 {
1114         type            CONTROL_KEY
1115         name            key_weapon6
1116         text            "Select Crylink"
1117         link            "impulse 6"
1118 }
1119 {
1120         type            CONTROL_KEY
1121         name            key_weapon7
1122         text            "Select Nexgun"
1123         link            "impulse 7"
1124 }
1125 {
1126         type            CONTROL_KEY
1127         name            key_weapon8
1128         text            "Select Hagar"
1129         link            "impulse 8"
1130 }
1131 {
1132         type            CONTROL_KEY
1133         name            key_weapon9
1134         text            "Select Rocket"
1135         link            "impulse 9"
1136 }