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