#include "ui/menudef.h" { \\ FRONT END OPTIONS BOX \\ #define X 0 #define Y 20 #define W 250 #define H 280 #define TOFF_X (0-(W/2)) #define ELEM_H 16 #define BUTT_W 35 #define BUTT_H 35 menuDef { name "simple_options" visible MENU_FALSE fullscreen MENU_FALSE rect (320-(W/2)) (240-(H/2)) W H focusColor 1 .75 0 1 style WINDOW_STYLE_FILLED border WINDOW_BORDER_FULL popup onEsc { play "sound/misc/menu1.wav"; close simple_options } itemDef { name window rect 0 0 W H style WINDOW_STYLE_FILLED backcolor 0 0 0 1 visible MENU_TRUE decoration border WINDOW_BORDER_FULL borderSize 1.0 borderColor 0.5 0.5 0.5 1 } itemDef { type ITEM_TYPE_EDITFIELD style WINDOW_STYLE_EMPTY text "Name:" cvar "name" maxchars 26 rect X Y W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE } itemDef { type ITEM_TYPE_MULTI text "Video Quality:" cvar "ui_glCustom" cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 } rect X (Y+ELEM_H) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; uiScript update "ui_glCustom" } } itemDef { type ITEM_TYPE_MULTI text "Video Mode:" cvar "r_mode" cvarFloatList { "Custom" -1 "320x240" 0 "400x300" 1 "512x384" 2 "640x480" 3 "800x600" 4 "960x720" 5 "1024x768" 6 "1152x864" 7 "1280x1024" 8 "1600x1200" 9 "2048x1536" 10 "856x480 wide screen" 11 } rect X (Y+(2*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; uiScript glCustom } } itemDef { type ITEM_TYPE_SLIDER text "Video Brightness:" cvarfloat "r_gamma" 1 .5 2 rect X (Y+(3*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE } itemDef { type ITEM_TYPE_SLIDER text "Effects Volume:" cvarfloat "s_volume" 0.7 0 1 rect X (Y+(4*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE } itemDef { type ITEM_TYPE_SLIDER text "Music Volume:" cvarfloat "s_musicvolume" 0.25 0 1 rect X (Y+(5*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE } itemDef { type ITEM_TYPE_YESNO text "OpenAL Sound:" cvar "s_useOpenAL" rect X (Y+(6*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; } } itemDef { type ITEM_TYPE_SLIDER text "Mouse Sensitivity:" cvarfloat "sensitivity" 5 1 30 rect X (Y+(7*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE } itemDef { type ITEM_TYPE_YESNO text "Invert Mouse:" cvar "ui_mousePitch" rect X (Y+(8*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; uiScript update ui_mousePitch } } itemDef { type ITEM_TYPE_MULTI text "Network Connection:" cvar "rate" cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSL" 25000 } rect X (Y+(9*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; } } itemDef { type ITEM_TYPE_YESNO text "Allow Auto Download:" cvar "cl_allowDownload" rect X (Y+(10*ELEM_H)) W ELEM_H textalign ALIGN_RIGHT textalignx TOFF_X textvalign VALIGN_CENTER textscale .25 forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; } } itemDef { text "For further options please use the in-game options menu" style WINDOW_STYLE_EMPTY textstyle ITEM_TEXTSTYLE_NORMAL textscale .25 rect 0 (H-60) W 10 textalign ALIGN_CENTER textvalign VALIGN_CENTER forecolor 1 1 1 1 visible MENU_TRUE decoration } itemDef { text "APPLY" type ITEM_TYPE_BUTTON textscale .25 style WINDOW_STYLE_EMPTY rect (W-(2*BUTT_W)) (H-BUTT_H) BUTT_W BUTT_H textalign ALIGN_CENTER textvalign VALIGN_CENTER forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; exec "snd_restart" // includes vid_restart } } itemDef { text "OK" type ITEM_TYPE_BUTTON textscale .25 style WINDOW_STYLE_EMPTY rect (W-BUTT_W) (H-BUTT_H) BUTT_W BUTT_H textalign ALIGN_CENTER textvalign VALIGN_CENTER forecolor 1 1 1 1 visible MENU_TRUE action { play "sound/misc/menu1.wav"; close simple_options } } } }