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