2002-07-24 15:30:51 +00:00
|
|
|
#include "ui/menudef.h"
|
2009-03-18 19:49:03 +00:00
|
|
|
#include "ui/tabs.h"
|
|
|
|
|
|
|
|
////////////////////////////////////
|
|
|
|
//
|
|
|
|
// CONSTANTS
|
|
|
|
//
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
#define OPTION_COLOR 0 0 .1 1
|
|
|
|
#define Tab_Color1 0 0 0 1
|
|
|
|
#define Tab_Color2 0 0 .5 1
|
|
|
|
#define VSPACE 16
|
|
|
|
#define VSIZE 16
|
|
|
|
#define ICON_ALPHA 0.5
|
|
|
|
#define LINE_ALPHA 0.2
|
|
|
|
#define FADEIN_TIME 125
|
|
|
|
#define HINT_COLOR .25 .25 .25
|
|
|
|
#define HINT_FADE_TIME 125
|
|
|
|
#define LINE_WIDTH 240
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////
|
|
|
|
//
|
|
|
|
// MENU DEFINITION
|
|
|
|
//
|
|
|
|
//
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
{
|
2009-03-18 19:49:03 +00:00
|
|
|
menuDef {
|
2002-07-24 15:30:51 +00:00
|
|
|
name "system_menu"
|
|
|
|
visible MENU_FALSE // Visible on open
|
2009-03-18 19:49:03 +00:00
|
|
|
//fullScreen MENU_FALSE
|
2002-07-24 15:30:51 +00:00
|
|
|
focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items
|
2009-03-18 19:49:03 +00:00
|
|
|
rect 112 88 300 348
|
|
|
|
anglevectors 4 -86
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
popup
|
|
|
|
|
|
|
|
onOOBClick { close _self }
|
|
|
|
onOpen { play "sound/ui/whoosh3.wav" ; uiScript loadControls ;
|
|
|
|
setitemcolor hints forecolor HINT_COLOR 1 ; hide hints ;
|
|
|
|
ACTIVATE_TAB(1) ;
|
|
|
|
}
|
|
|
|
onClose { open _prev }
|
|
|
|
onEsc { close _self }
|
|
|
|
|
|
|
|
onOpenSpecial {
|
|
|
|
//normal items
|
|
|
|
setItemColor "fade_alpha" forecolor 5 5 5 0 ;
|
|
|
|
timeFade "fade_alpha" forecolor 5 5 5 1 0 FADEIN_TIME ;
|
|
|
|
|
|
|
|
//icon - special alpha
|
|
|
|
setItemColor "icon" forecolor 5 5 5 0 ;
|
|
|
|
timeFade "icon" forecolor 5 5 5 ICON_ALPHA 0 FADEIN_TIME ;
|
|
|
|
|
|
|
|
//line - special alpha; using backcolor
|
|
|
|
setItemColor "line" backcolor 5 5 5 0 ;
|
|
|
|
timeFade "line" backcolor 5 5 5 LINE_ALPHA 0 FADEIN_TIME ;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
itemDef {
|
|
|
|
renderpoint
|
|
|
|
name "paper,fade_alpha"
|
2002-07-24 15:30:51 +00:00
|
|
|
style WINDOW_STYLE_SHADER
|
2009-03-18 19:49:03 +00:00
|
|
|
background UI_ASSETS"/paper_1"
|
|
|
|
forecolor MENUCOLOR_SYSTEM 1
|
|
|
|
rect 0 -20 320 420
|
|
|
|
anglevectors 4 -86
|
2002-07-24 15:30:51 +00:00
|
|
|
visible 1
|
2009-03-18 19:49:03 +00:00
|
|
|
menuAnchor
|
2002-07-24 15:30:51 +00:00
|
|
|
decoration
|
|
|
|
}
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
itemdef {
|
|
|
|
renderpoint
|
|
|
|
name "title,fade_alpha"
|
|
|
|
text "System:"
|
|
|
|
forecolor .6 .0 .0 1
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 4
|
|
|
|
textaligny 24
|
2002-07-24 15:30:51 +00:00
|
|
|
textscale RQ3_MAIN_TEXTSIZE
|
2009-03-18 19:49:03 +00:00
|
|
|
alignrect paper ITEM_ALIGN_LEFT 32 40 240 36
|
2002-07-24 15:30:51 +00:00
|
|
|
visible 1
|
2009-03-18 19:49:03 +00:00
|
|
|
autowrapped
|
2002-07-24 15:30:51 +00:00
|
|
|
decoration
|
|
|
|
}
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
//Line
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
itemDef {
|
|
|
|
name "line,fade_alpha"
|
|
|
|
style WINDOW_STYLE_FILLED
|
|
|
|
backcolor .25 .25 .25 LINE_ALPHA
|
|
|
|
alignrect "title" ITEM_ALIGN_LEFT 0 48 LINE_WIDTH 2
|
2002-07-24 15:30:51 +00:00
|
|
|
visible 1
|
|
|
|
decoration
|
2009-03-18 19:49:03 +00:00
|
|
|
}
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
///////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// Sub-options
|
|
|
|
//
|
|
|
|
//
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Graphics
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
ADD_TAB(
|
|
|
|
"^_G^_raphics.",
|
|
|
|
"G", 1, "group2,group3",
|
|
|
|
alignrect "title" ITEM_ALIGN_LEFT 2 28 48 16
|
|
|
|
)
|
|
|
|
ADD_HINT("hint_tab1", "Change rendering options", "group2,group3")
|
|
|
|
|
|
|
|
//---------------------------------------------------------
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Driver info
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
ADD_TAB(
|
|
|
|
"^_D^_river info.",
|
|
|
|
"D", 2, "group1,group3",
|
|
|
|
alignrect "tab1" ITEM_ALIGN_RIGHT -56 0 56 16
|
|
|
|
)
|
|
|
|
ADD_HINT("hint_tab2", "View OpenGL driver info", "group1,group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
//---------------------------------------------------------
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Misc - Display/Sound/Net
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
ADD_TAB(
|
|
|
|
"^_M^_isc.",
|
|
|
|
"M", 3, "group1,group2",
|
|
|
|
alignrect "tab2" ITEM_ALIGN_RIGHT -40 0 40 16
|
|
|
|
)
|
|
|
|
ADD_HINT("hint_tab3", "Change display/sound/network options", "group1,group2")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
/*
|
|
|
|
==========================================================
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
Group # 1 - Graphics
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
==========================================================
|
|
|
|
*/
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
//Icon
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
ADD_TITLE_ICON(UI_ASSETS"/icons/rq3-system-graphics", "group1")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Pre-defined settings //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Quality", "ui_glCustom", ITEM_TYPE_MULTI, 1, 1)
|
|
|
|
alignrect "line" ITEM_ALIGN_CENTER 56 32 112 VSIZE
|
|
|
|
cvarFloatList {
|
|
|
|
"Fastest" 3
|
|
|
|
"Fast" 2
|
|
|
|
"Normal" 1
|
|
|
|
"High Quality" 0
|
|
|
|
"Custom" 4
|
|
|
|
}
|
|
|
|
action { uiScript update "ui_glCustom" ; }
|
|
|
|
ASSIGN_HINT("hint_predef")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_predef", "Choose pre-defined graphics settings", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// GL Driver //
|
|
|
|
|
|
|
|
BEGIN_OPTION("GL Driver", "r_glDriver", ITEM_TYPE_EDITFIELD, 2, 1)
|
|
|
|
OPTION_BELOW("gr1_ctrl1")
|
|
|
|
ASSIGN_HINT("hint_gldriver")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_gldriver", "Choose OpenGL driver (default: opengl32)", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// GL Extensions //
|
|
|
|
|
|
|
|
BEGIN_OPTION("GL Extensions", "r_allowExtensions", ITEM_TYPE_YESNO, 3, 1)
|
|
|
|
OPTION_BELOW("gr1_ctrl2")
|
|
|
|
ASSIGN_HINT("hint_glext")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_glext", "Enable OpenGL extensions", "group1")
|
|
|
|
|
|
|
|
// Resolution //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Video Mode", "r_mode", ITEM_TYPE_MULTI, 4, 1)
|
|
|
|
cvarFloatList {
|
|
|
|
"320 x 240" 0
|
|
|
|
"400 x 300" 1
|
|
|
|
"512 x 384" 2
|
|
|
|
"640 x 480" 3
|
|
|
|
"800 x 600" 4
|
|
|
|
"960 x 720" 5
|
|
|
|
"1024 x 768" 6
|
|
|
|
"1152 x 864" 7
|
|
|
|
"1280 x 1024" 8
|
|
|
|
"1600 x 1200" 9
|
|
|
|
"2048 x 1536" 10
|
|
|
|
"856 x 480 (Wide)" 11
|
|
|
|
}
|
|
|
|
OPTION_BELOW("gr1_ctrl3")
|
|
|
|
ASSIGN_HINT("hint_res")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_res", "Choose rendering resolution", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// Color depth //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Color Depth", "r_colorbits", ITEM_TYPE_MULTI, 5, 1)
|
|
|
|
cvarFloatList { "Desktop Default" 0 "16-bit" 16 "32-bit" 32 }
|
|
|
|
OPTION_BELOW("gr1_ctrl4")
|
|
|
|
action { uiScript glCustom ; uiScript update "r_colorbits" ; }
|
|
|
|
ASSIGN_HINT("hint_depth")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_depth", "Choose rendering color depth", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// Fullscreen //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Fullscreen", "r_fullscreen", ITEM_TYPE_YESNO, 6, 1)
|
|
|
|
OPTION_BELOW("gr1_ctrl5")
|
|
|
|
action { uiScript glCustom ; }
|
|
|
|
ASSIGN_HINT("hint_fullscreen")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_fullscreen", "Render in full screen or a window", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// Lightmap/vertex //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Lighting", "r_vertexlight", ITEM_TYPE_MULTI, 7, 1)
|
|
|
|
cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1 }
|
|
|
|
OPTION_BELOW("gr1_ctrl6")
|
|
|
|
action { uiScript glCustom ; }
|
|
|
|
ASSIGN_HINT("hint_lightmap")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_lightmap", "Choose map light rendering mode", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// Geometric detail //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Geometric Detail", "r_lodbias", ITEM_TYPE_MULTI, 8, 1)
|
|
|
|
cvarFloatList {
|
|
|
|
"High" 0
|
|
|
|
"Medium" 1
|
|
|
|
"Low" 2
|
|
|
|
}
|
|
|
|
OPTION_BELOW("gr1_ctrl7")
|
|
|
|
action { uiScript glCustom ; uiScript update "r_lodbias" }
|
|
|
|
ASSIGN_HINT("hint_geodetail")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_geodetail", "Choose geometric detail level", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// Texture detail //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Texture Detail", "r_picmip", ITEM_TYPE_MULTI, 9, 1)
|
|
|
|
cvarFloatList {
|
|
|
|
"Very Low" 3
|
|
|
|
"Low" 2
|
|
|
|
"Normal" 1
|
|
|
|
"High" 0
|
|
|
|
}
|
|
|
|
OPTION_BELOW("gr1_ctrl8")
|
|
|
|
action { uiScript glCustom ; }
|
|
|
|
ASSIGN_HINT("hint_texdetail")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_texdetail", "Choose texture detail level", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// Texture quality //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Texture Quality", "r_texturebits", ITEM_TYPE_MULTI, 10, 1)
|
|
|
|
cvarFloatList {
|
|
|
|
"Default" 0
|
|
|
|
"16 bit" 16
|
|
|
|
"32 bit" 32
|
|
|
|
}
|
|
|
|
OPTION_BELOW("gr1_ctrl9")
|
|
|
|
action { uiScript glCustom ; }
|
|
|
|
ASSIGN_HINT("hint_texquality")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_texquality", "Choose texture quality", "group1")
|
|
|
|
|
|
|
|
|
|
|
|
// Texture filtering mode //
|
|
|
|
|
|
|
|
BEGIN_OPTION("Texture Filter", "r_textureMode", ITEM_TYPE_MULTI, 11, 1)
|
|
|
|
cvarStrList {
|
|
|
|
"Bilinear", "GL_LINEAR_MIPMAP_NEAREST",
|
|
|
|
"Trilinear", "GL_LINEAR_MIPMAP_LINEAR"
|
|
|
|
}
|
|
|
|
OPTION_BELOW("gr1_ctrl10")
|
|
|
|
action { uiScript glCustom ; }
|
|
|
|
ASSIGN_HINT("hint_texfilter")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_texfilter", "Choose texture filtering mode", "group1")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Compressed textures //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_OPTION("Compress Textures", "r_ext_compressed_textures", ITEM_TYPE_YESNO, 12, 1)
|
|
|
|
OPTION_BELOW("gr1_ctrl11")
|
|
|
|
action { uiScript glCustom ; }
|
|
|
|
ASSIGN_HINT("hint_compress")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_compress", "Enable texture compression", "group1")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// APPLY //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2005-02-15 16:33:39 +00:00
|
|
|
itemdef {
|
2009-03-18 19:49:03 +00:00
|
|
|
name "btn_apply,fade_alpha,allgroups,group1"
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
alignrect "gr1_ctrl12" ITEM_ALIGN_RIGHT 0 24 80 VSIZE
|
|
|
|
type ITEM_TYPE_BUTTON
|
|
|
|
text "^_A^_pply >"
|
|
|
|
shortcutKey "A"
|
|
|
|
textscale .225
|
|
|
|
textstyle ITEM_TEXTSTYLE_NORMAL
|
2002-07-24 15:30:51 +00:00
|
|
|
textalign ITEM_ALIGN_RIGHT
|
2009-03-18 19:49:03 +00:00
|
|
|
textalignx 64
|
|
|
|
textaligny 14
|
|
|
|
forecolor 0 0 0 1
|
|
|
|
action { exec "vid_restart" ; }
|
|
|
|
ASSIGN_HINT("hint_apply")
|
|
|
|
anglevectors 4 -83
|
2002-07-24 15:30:51 +00:00
|
|
|
visible 1
|
|
|
|
}
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
ADD_HINT("hint_apply", "Apply graphics changes and return to main menu", "group1")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
/*
|
|
|
|
==========================================================
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
Group # 2 - Driver info
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
==========================================================
|
|
|
|
*/
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
//Icon
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
ADD_TITLE_ICON(UI_ASSETS"/icons/rq3-system-driverinfo", "group2")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// DRIVER INFO //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
itemdef {
|
2009-03-18 19:49:03 +00:00
|
|
|
name "allgroups,group2,fade_alpha,driver_info"
|
2002-07-24 15:30:51 +00:00
|
|
|
ownerdraw UI_GLINFO
|
2009-03-18 19:49:03 +00:00
|
|
|
alignrect "line" ITEM_ALIGN_LEFT 0 24 220 64
|
2002-07-24 15:30:51 +00:00
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textalignx 8
|
|
|
|
textaligny 12
|
2009-03-18 19:49:03 +00:00
|
|
|
textscale .15
|
|
|
|
forecolor OPTION_COLOR
|
2002-07-24 15:30:51 +00:00
|
|
|
visible 0
|
|
|
|
decoration
|
|
|
|
}
|
|
|
|
|
|
|
|
itemdef {
|
2009-03-18 19:49:03 +00:00
|
|
|
name "allgroups,group2,gr2_ctrl1,fade_alpha,extension_list"
|
|
|
|
type ITEM_TYPE_LISTBOX
|
|
|
|
alignRect driver_info ITEM_ALIGN_LEFT 0 64 232 140
|
|
|
|
forcetextcolor
|
|
|
|
LISTBOX_STYLE(.175, 4)
|
|
|
|
feeder FEEDER_GLDRIVER_INFO
|
|
|
|
columns 1 4 200 0
|
2002-07-24 15:30:51 +00:00
|
|
|
visible 1
|
2009-03-18 19:49:03 +00:00
|
|
|
onFocus { show list_hint ; timeFade list_hint forecolor .9 .9 .9 1 0 250 }
|
|
|
|
leaveFocus { timeFade list_hint forecolor .9 .9 .9 0 0 250 }
|
2002-07-24 15:30:51 +00:00
|
|
|
}
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
itemdef {
|
|
|
|
name "allgroups,group2,fade_alpha,col1_title"
|
|
|
|
text "Supported OpenGL Extensions:"
|
|
|
|
forecolor .25 .25 .25 1
|
|
|
|
style WINDOW_STYLE_EMPTY
|
|
|
|
textalign ITEM_ALIGN_LEFT
|
|
|
|
textscale .175
|
|
|
|
textalignx 4
|
2002-07-24 15:30:51 +00:00
|
|
|
textaligny 14
|
2009-03-18 19:49:03 +00:00
|
|
|
alignRect extension_list ITEM_ALIGN_LEFT 4 -16 80 16
|
2002-07-24 15:30:51 +00:00
|
|
|
visible 1
|
|
|
|
decoration
|
|
|
|
}
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
/*
|
|
|
|
==========================================================
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
Group # 3 - Misc
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
==========================================================
|
|
|
|
*/
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
//Icon
|
|
|
|
|
|
|
|
ADD_TITLE_ICON(UI_ASSETS"/icons/rq3-menu-setup", "group3")
|
|
|
|
|
|
|
|
//Icon
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
itemdef {
|
2009-03-18 19:49:03 +00:00
|
|
|
name "icon,allgroups,group3"
|
|
|
|
background UI_ASSETS"/icons/rq3-system-display"
|
|
|
|
forecolor 1 1 1 ICON_ALPHA
|
|
|
|
alignrect "line" ITEM_ALIGN_LEFT 0 36 24 24
|
2002-07-24 15:30:51 +00:00
|
|
|
style WINDOW_STYLE_SHADER
|
|
|
|
visible 1
|
|
|
|
decoration
|
2009-03-18 19:49:03 +00:00
|
|
|
}
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Brightness //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_SLIDER("Brightness", "r_gamma", 1, .5, 1.7, 1, 3)
|
|
|
|
alignrect "line" ITEM_ALIGN_CENTER 56 40 112 VSIZE
|
|
|
|
ASSIGN_HINT("hint_gamma")
|
|
|
|
END_OPTION
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
ADD_HINT("hint_gamma", "Change image brightness", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Screen size //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_SLIDER("Screen Size", "cg_viewsize", 100, 30, 100, 2, 3)
|
|
|
|
OPTION_BELOW("gr3_ctrl1")
|
|
|
|
ASSIGN_HINT("hint_screensize")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_screensize", "Change rendering window size", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Overbrightbits //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_OPTION("Overbright Bits", "r_overbrightbits", ITEM_TYPE_YESNO, 3, 3)
|
|
|
|
OPTION_BELOW("gr3_ctrl2")
|
|
|
|
ASSIGN_HINT("hint_overbits")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_overbits", "Enable overbright bits (brighter image at the expense of quality)", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Sound //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
//Icon
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
itemdef {
|
2009-03-18 19:49:03 +00:00
|
|
|
name "icon,allgroups,group3"
|
|
|
|
background UI_ASSETS"/icons/rq3-system-sound"
|
|
|
|
forecolor 1 1 1 ICON_ALPHA
|
|
|
|
alignrect "line" ITEM_ALIGN_LEFT 0 112 24 24
|
2002-07-24 15:30:51 +00:00
|
|
|
style WINDOW_STYLE_SHADER
|
|
|
|
visible 1
|
|
|
|
decoration
|
2009-03-18 19:49:03 +00:00
|
|
|
}
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Sound volume //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_SLIDER("Sound Volume", "s_volume", 0.7, 0, 1, 4, 3)
|
|
|
|
alignrect "line" ITEM_ALIGN_CENTER 56 112 112 VSIZE
|
|
|
|
ASSIGN_HINT("hint_sndvol")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_sndvol", "Change sound effects volume", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Music volume //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_SLIDER("Music Volume", "s_musicvolume", 0.25, 0, 1, 5, 3)
|
|
|
|
OPTION_BELOW("gr3_ctrl4")
|
|
|
|
ASSIGN_HINT("hint_musicvol")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_musicvol", "Change background music volume", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Sound quality //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_OPTION("Sound Quality", "s_khz", ITEM_TYPE_MULTI, 6, 3)
|
|
|
|
cvarFloatList {
|
|
|
|
"22 khz (high)" 22
|
|
|
|
"11 khz (low)" 11
|
|
|
|
}
|
|
|
|
OPTION_BELOW("gr3_ctrl5")
|
|
|
|
ASSIGN_HINT("hint_sndquality")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_sndquality", "Choose sound quality", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Doppler effect //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_OPTION("Doppler Effect", "s_doppler", ITEM_TYPE_YESNO, 7, 3)
|
|
|
|
OPTION_BELOW("gr3_ctrl6")
|
|
|
|
ASSIGN_HINT("hint_doppler")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_doppler", "Enable Doppler effect", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Net //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
//Icon
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
itemdef {
|
2009-03-18 19:49:03 +00:00
|
|
|
name "icon,allgroups,group3"
|
|
|
|
background UI_ASSETS"/icons/rq3-system-network"
|
|
|
|
forecolor 1 1 1 ICON_ALPHA
|
|
|
|
alignrect "line" ITEM_ALIGN_LEFT 0 200 24 24
|
2002-07-24 15:30:51 +00:00
|
|
|
style WINDOW_STYLE_SHADER
|
|
|
|
visible 1
|
|
|
|
decoration
|
2009-03-18 19:49:03 +00:00
|
|
|
}
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
// Net rate //
|
2002-07-24 15:30:51 +00:00
|
|
|
|
2009-03-18 19:49:03 +00:00
|
|
|
BEGIN_OPTION("Net Rate", "rate", ITEM_TYPE_MULTI, 8, 3)
|
|
|
|
alignrect "line" ITEM_ALIGN_CENTER 56 204 112 VSIZE
|
|
|
|
cvarFloatList {
|
|
|
|
"<=28.8k" 2500
|
|
|
|
"33.6k" 3000
|
|
|
|
"56k" 4000
|
|
|
|
"ISDN" 5000
|
|
|
|
"LAN/CABLE/xDSL" 25000
|
|
|
|
}
|
|
|
|
ASSIGN_HINT("hint_netrate")
|
|
|
|
END_OPTION
|
|
|
|
ADD_HINT("hint_netrate", "Choose network speed", "group3")
|
2002-07-24 15:30:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|
2009-03-18 19:49:03 +00:00
|
|
|
}
|