summaryrefslogtreecommitdiff
path: root/assets/ui/options.menu
diff options
context:
space:
mode:
Diffstat (limited to 'assets/ui/options.menu')
-rw-r--r--assets/ui/options.menu64
1 files changed, 42 insertions, 22 deletions
diff --git a/assets/ui/options.menu b/assets/ui/options.menu
index af602bc2..fc405a1a 100644
--- a/assets/ui/options.menu
+++ b/assets/ui/options.menu
@@ -3,14 +3,17 @@
{
\\ 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
+#define X 0
+#define Y 20
+#define W 250
+#define H ((10*(ELEM_H+ELEM_GAP))+120)
+#define TOFF_X (0-(W/2))
+#define ELEM_H 16
+#define ELEM_GAP 4
+#define BUTT_W 35
+#define BUTT_H 35
+#define BORDER 10
+#define RESCOMBO_OFF 8
menuDef
{
@@ -66,7 +69,7 @@
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
+ rect X (Y+(ELEM_H+ELEM_GAP)) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -82,17 +85,34 @@
itemDef
{
- type ITEM_TYPE_COMBO
+ type ITEM_TYPE_TEXT
text "Video Mode:"
- feeder FEEDER_RESOLUTIONS
- rect X (Y+(2*ELEM_H)) W ELEM_H
+ rect X (Y+(2*(ELEM_H+ELEM_GAP))) (W/2) ELEM_H
textalign ALIGN_RIGHT
- textalignx TOFF_X
textvalign VALIGN_CENTER
textscale .25
forecolor 1 1 1 1
visible MENU_TRUE
- action
+ }
+
+ itemDef
+ {
+ rect ((W/2)+RESCOMBO_OFF) (Y+(2*(ELEM_H+ELEM_GAP))) ((W/2)-(2*BORDER)) ELEM_H
+ type ITEM_TYPE_COMBOBOX
+ style WINDOW_STYLE_FILLED
+ elementwidth ((W/2)-(2*BORDER))
+ elementheight ELEM_H
+ dropitems 5
+ textscale .25
+ elementtype LISTBOX_TEXT
+ feeder FEEDER_RESOLUTIONS
+ border WINDOW_BORDER_FULL
+ borderColor 0.5 0.5 0.5 1
+ forecolor 1 1 1 1
+ backcolor 0 0 0 1
+ outlinecolor 0.1 0.1 0.1 0.5
+ visible MENU_TRUE
+ doubleclick
{
play "sound/misc/menu1.wav";
}
@@ -103,7 +123,7 @@
type ITEM_TYPE_SLIDER
text "Video Brightness:"
cvarfloat "r_gamma" 1 .5 2
- rect X (Y+(3*ELEM_H)) W ELEM_H
+ rect X (Y+(3*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -119,7 +139,7 @@
type ITEM_TYPE_SLIDER
text "Effects Volume:"
cvarfloat "s_volume" 0.7 0 1
- rect X (Y+(4*ELEM_H)) W ELEM_H
+ rect X (Y+(4*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -133,7 +153,7 @@
type ITEM_TYPE_SLIDER
text "Music Volume:"
cvarfloat "s_musicvolume" 0.25 0 1
- rect X (Y+(5*ELEM_H)) W ELEM_H
+ rect X (Y+(5*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -147,7 +167,7 @@
type ITEM_TYPE_YESNO
text "OpenAL Sound:"
cvar "s_useOpenAL"
- rect X (Y+(6*ELEM_H)) W ELEM_H
+ rect X (Y+(6*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -167,7 +187,7 @@
type ITEM_TYPE_SLIDER
text "Mouse Sensitivity:"
cvarfloat "sensitivity" 5 1 30
- rect X (Y+(7*ELEM_H)) W ELEM_H
+ rect X (Y+(7*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -181,7 +201,7 @@
type ITEM_TYPE_YESNO
text "Invert Mouse:"
cvar "ui_mousePitch"
- rect X (Y+(8*ELEM_H)) W ELEM_H
+ rect X (Y+(8*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -203,7 +223,7 @@
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
+ rect X (Y+(9*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER
@@ -221,7 +241,7 @@
type ITEM_TYPE_YESNO
text "Allow Auto Download:"
cvar "cl_allowDownload"
- rect X (Y+(10*ELEM_H)) W ELEM_H
+ rect X (Y+(10*(ELEM_H+ELEM_GAP))) W ELEM_H
textalign ALIGN_RIGHT
textalignx TOFF_X
textvalign VALIGN_CENTER