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