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