jkxr/z_vr_assets_jka/ui/setup.menu
Simon 0723c2335e Make saber combat in JKA match JKO
g_saberRealisticCombat should be set to "1"
g_dismemberment should be set to "4"
g_saberMoreRealistic is no longer used
changed logic so that it should be the same approach for dealing damage as JKO with the above settings when TBDC is enabled
fixed saber bounce in JKA too
2023-06-15 22:07:24 +01:00

3058 lines
60 KiB
Text
Raw Blame History

//----------------------------------------------------------------------------------------------
//
// SETUP MENU
//
//----------------------------------------------------------------------------------------------
{
menuDef
{
name "setupMenu"
fullScreen 1
rect 0 0 640 480
visible 1
focusColor 1 1 1 1
descX 320
descY 426
descScale 1
descColor 1 .682 0 .8
descAlignment ITEM_ALIGN_CENTER
onOpen
{
uiScript getvideosetup ;
hide applyChanges ;
hide video2 ;
hide vidrestart ;
hide sound ;
hide options ;
hide difficulty ;
hide mods_warning ;
hide mods ;
hide defaults ;
show video ;
show setup_background ;
hide highlights ;
setitemcolor video1menubutton forecolor 1 1 1 1 ;
setitemcolor video2menubutton forecolor 1 .682 0 1 ;
setitemcolor soundmenubutton forecolor 1 .682 0 1;
setitemcolor gameoptionmenubutton forecolor 1 .682 0 1;
setitemcolor difficultymenubutton forecolor 1 .682 0 1;
setitemcolor modsmenubutton forecolor 1 .682 0 1;
setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1;
}
onESC
{
play "sound/interface/esc.wav"
defer VideoSetup videowarningMenu ;
close all ;
open mainMenu
}
//----------------------------------------------------------------------------------------------
// MENU BACKGROUND
//----------------------------------------------------------------------------------------------
itemDef
{
name really_background
group none
style WINDOW_STYLE_SHADER
rect 156 154 320 240
background "gfx/menus/main_centerblue"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text
group none
style WINDOW_STYLE_SHADER
rect 0 0 160 480
background "gfx/menus/menu_side_text"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background_text_b
group none
style WINDOW_STYLE_SHADER
rect 480 0 160 480
background "gfx/menus/menu_side_text_right"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name background
group none
style WINDOW_STYLE_SHADER
rect 0 0 640 480
background "gfx/menus/main_background"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name starwars
group none
style WINDOW_STYLE_SHADER
rect 107 8 428 112
background "gfx/menus/jediacademy"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name left_frame
group lf_fr
style WINDOW_STYLE_SHADER
rect 0 50 320 160
background "gfx/menus/menu_boxes_left"
forecolor 1 1 1 1
visible 1
decoration
}
itemDef
{
name right_frame
group rt_fr
style WINDOW_STYLE_SHADER
rect 320 50 320 160
background "gfx/menus/menu_boxes_right"
forecolor 1 1 1 1
visible 1
decoration
}
//----------------------------------------------------------------------------------------------
// TOP MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// Big button "NEW"
itemDef
{
name newbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 7 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name newgamebutton
group nbut
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 7 126 130 24
text @MENUS_NEW
descText @MENUS_START_A_NEW_GAME
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show newbutton_glow
}
mouseExit
{
hide newbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
defer VideoSetup videowarningMenu ;
close all ;
open newgameMenu
}
}
// Big button "LOAD"
itemDef
{
name loadgamebutton_glow
group none
style WINDOW_STYLE_SHADER
rect 170 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadgamebutton
group lbut
text @MENUS_LOAD
descText @MENUS_LOAD_A_SAVED_GAME
style WINDOW_STYLE_EMPTY
type ITEM_TYPE_BUTTON
rect 170 126 130 24
textaligny 0
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show loadgamebutton_glow
}
mouseExit
{
hide loadgamebutton_glow
}
action
{
play "sound/interface/button1.wav" ;
defer VideoSetup videowarningMenu ;
close all ;
open loadgameMenu
}
}
// Big button "CONTROLS"
itemDef
{
name controlsbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 340 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name controlsbutton
group cbut
text @MENUS_CONTROLS
descText @MENUS_CONFIGURE_GAME_CONTROLS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 340 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
backcolor 0 0 0 0
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show controlsbutton_glow
}
mouseExit
{
hide controlsbutton_glow
}
action
{
play "sound/interface/button1.wav" ;
defer VideoSetup videowarningMenu ;
close all ;
open controlsMenu
}
}
// Big button "SETUP"
itemDef
{
name setupbutton_glow
group none
style WINDOW_STYLE_SHADER
rect 502 126 130 24
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name setupbutton
group sbut
text @MENUS_SETUP
descText @MENUS_CONFIGURE_GAME_SETTINGS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 502 126 130 24
font 3
textscale 1.1
textaligny 0
textalign ITEM_ALIGN_CENTER
textstyle 1
textalignx 65
backcolor 0 0 0 0
forecolor 1 1 1 1
visible 1
mouseEnter
{
show setupbutton_glow
}
mouseExit
{
hide setupbutton_glow
}
}
//----------------------------------------------------------------------------------------------
// OTHER MAIN MENU BUTTONS
//----------------------------------------------------------------------------------------------
// BACK button in lower left corner
itemDef
{
name backbutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 59 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name backbutton
group exit
text @MENUS_BACK
descText @MENUS_BACKTOMAIN
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 59 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show backbutton_glow
}
mouseExit
{
hide backbutton_glow
}
action
{
play "sound/interface/esc.wav"
close all ;
open mainMenu
}
}
// EXIT button in lower left corner
itemDef
{
name exitgamebutton_glow
group exit
style WINDOW_STYLE_SHADER
rect 255 444 130 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name exitgamebutton
group exit
text @MENUS_EXIT
descText @MENUS_JEDI_KNIGHT_II
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 255 444 130 24
font 3
textscale 1.1
textalign ITEM_ALIGN_CENTER
textstyle 3
textalignx 65
textaligny -1
forecolor 1 .682 0 1
visible 1
mouseEnter
{
show exitgamebutton_glow
}
mouseExit
{
hide exitgamebutton_glow
}
action
{
play "sound/weapons/saber/saberoff.mp3";
defer VideoSetup videowarningMenu ;
close all ;
open quitMenu
}
}
//----------------------------------------------------------------------------------------------
// SECOND ROW MENU BUTTONS
//----------------------------------------------------------------------------------------------
// Setup Options title
itemDef
{
name setup_title
group title
style WINDOW_STYLE_SHADER
background "gfx/menus/menu_blendbox"
text @MENUS_SETUP_OPTIONS
rect 100 164 440 16
font 3
textscale 0.7
textalign ITEM_ALIGN_CENTER
textalignx 225
textaligny -1
forecolor .549 .854 1 1
visible 1
decoration
}
itemDef
{
name sidebutton_glow
group mods
style WINDOW_STYLE_SHADER
rect 60 185 200 24
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name video1menubutton
group none
text @MENUS_VIDEO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 80 185 170 24
font 3
textscale 0.9
textalignx 170
textaligny 2
textstyle 1
textalign ITEM_ALIGN_RIGHT
forecolor 1 .682 0 1
visible 1
descText @MENUS_CONFIGURE_VIDEO_SETTINGS
mouseEnter
{
show sidebutton_glow
setitemrect sidebutton_glow 40 184 220 26
}
mouseExit
{
hide sidebutton_glow
}
action
{
play sound/interface/sub_select
defer VideoSetup videowarningMenu ;
uiScript getvideosetup ; // Get video settings
show setup_background ;
show video ;
hide applyChanges ;
hide video2 ;
hide vidrestart ;
hide sound ;
hide options ;
hide difficulty ;
hide mods_warning ;
hide mods ;
hide defaults ;
setfocus graphics ;
setitemcolor video1menubutton forecolor 1 1 1 1 ;
setitemcolor video2menubutton forecolor 1 .682 0 1 ;
setitemcolor soundmenubutton forecolor 1 .682 0 1;
setitemcolor gameoptionmenubutton forecolor 1 .682 0 1;
setitemcolor difficultymenubutton forecolor 1 .682 0 1;
setitemcolor modsmenubutton forecolor 1 .682 0 1;
setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1;
}
}
itemDef
{
name video2menubutton
group none
text @MENUS_MORE_VIDEO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 80 209 170 24
font 3
textscale 0.9
textalignx 170
textaligny 2
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
descText @MENUS_CONFIGUE_MORE_VIDEO_SETTINGS
mouseEnter
{
show sidebutton_glow
setitemrect sidebutton_glow 40 208 220 26
}
mouseExit
{
hide sidebutton_glow
}
action
{
play sound/interface/sub_select
defer VideoSetup videowarningMenu ;
show setup_background ;
hide video ;
hide applyChanges ;
show video2 ;
hide vidrestart ;
hide sound ;
hide options ;
hide difficulty ;
hide mods_warning ;
hide mods ;
hide defaults ;
setitemcolor video1menubutton forecolor 1 .682 0 1;
setitemcolor video2menubutton forecolor 1 1 1 1 ;
setitemcolor soundmenubutton forecolor 1 .682 0 1 ;
setitemcolor gameoptionmenubutton forecolor 1 .682 0 1;
setitemcolor difficultymenubutton forecolor 1 .682 0 1;
setitemcolor modsmenubutton forecolor 1 .682 0 1;
setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1;
}
}
itemDef
{
name soundmenubutton
group none
text @MENUS_SOUND
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 80 233 170 24
font 3
textscale 0.9
textalignx 170
textaligny 2
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
descText @MENUS_CONFIGURE_SOUND_SETTINGS
mouseEnter
{
show sidebutton_glow
setitemrect sidebutton_glow 40 232 220 26
}
mouseExit
{
hide sidebutton_glow
}
action
{
play sound/interface/sub_select
defer VideoSetup videowarningMenu ;
show setup_background ;
hide video ;
hide applyChanges ;
hide video2 ;
hide vidrestart ;
show sound ;
hide options ;
hide difficulty ;
hide mods_warning ;
hide mods ;
hide defaults ;
setitemcolor video1menubutton forecolor 1 .682 0 1;
setitemcolor video2menubutton forecolor 1 .682 0 1;
setitemcolor soundmenubutton forecolor 1 1 1 1 ;
setitemcolor gameoptionmenubutton forecolor 1 .682 0 1;
setitemcolor difficultymenubutton forecolor 1 .682 0 1;
setitemcolor modsmenubutton forecolor 1 .682 0 1;
setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1;
}
}
// gameoptions button
itemDef
{
name gameoptionmenubutton
group none
text @MENUS_GAME_OPTIONS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 80 257 170 24
font 3
textscale 0.9
textalignx 170
textaligny 2
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
descText @MENUS_CONFIGURE_GAME_OPTIONS
mouseEnter
{
show sidebutton_glow
setitemrect sidebutton_glow 40 256 220 26
}
mouseExit
{
hide sidebutton_glow
}
action
{
defer VideoSetup videowarningMenu ;
play sound/interface/sub_select
show setup_background ;
hide video ;
hide applyChanges ;
hide video2 ;
hide vidrestart ;
hide sound ;
show options ;
hide difficulty ;
hide mods_warning ;
hide mods ;
hide defaults ;
setitemcolor video1menubutton forecolor 1 .682 0 1;
setitemcolor video2menubutton forecolor 1 .682 0 1;
setitemcolor soundmenubutton forecolor 1 .682 0 1;
setitemcolor gameoptionmenubutton forecolor 1 1 1 1 ;
setitemcolor difficultymenubutton forecolor 1 .682 0 1;
setitemcolor modsmenubutton forecolor 1 .682 0 1;
setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1;
}
}
// difficulty button
itemDef
{
name difficultymenubutton
group none
text @MENUS_VR_DIFFICULTY_SETUP_ITEM
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 80 281 170 24
font 3
textscale 0.9
textalignx 170
textaligny 2
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
descText @MENUS_VR_DIFFICULTY_SETUP_DESC
mouseEnter
{
show sidebutton_glow
setitemrect sidebutton_glow 40 280 220 26
}
mouseExit
{
hide sidebutton_glow
}
action
{
defer VideoSetup videowarningMenu ;
play sound/interface/sub_select
show setup_background ;
hide video ;
hide applyChanges ;
hide video2 ;
hide vidrestart ;
hide sound ;
hide options ;
show difficulty ;
hide mods_warning ;
hide mods ;
hide defaults ;
setitemcolor video1menubutton forecolor 1 .682 0 1;
setitemcolor video2menubutton forecolor 1 .682 0 1;
setitemcolor soundmenubutton forecolor 1 .682 0 1;
setitemcolor gameoptionmenubutton forecolor 1 .682 0 1;
setitemcolor difficultymenubutton forecolor 1 1 1 1 ;
setitemcolor modsmenubutton forecolor 1 .682 0 1;
setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1;
}
}
// mods button
itemDef
{
name modsmenubutton
group none
text @MENUS_MODS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 80 305 170 24
font 3
textscale 0.9
textalignx 170
textaligny 2
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
descText @MENUS_VR_MODS_BUTTON_DESC
mouseEnter
{
show sidebutton_glow
setitemrect sidebutton_glow 40 304 220 26
}
mouseExit
{
hide sidebutton_glow
}
action
{
play sound/interface/sub_select
defer VideoSetup videowarningMenu ;
uiScript loadMods ;
show setup_background ;
hide video ;
hide applyChanges ;
hide video2 ;
hide vidrestart ;
hide sound ;
hide options ;
hide difficulty ;
show mods_warning ;
hide mods ;
hide defaults ;
setitemcolor video1menubutton forecolor 1 .682 0 1;
setitemcolor video2menubutton forecolor 1 .682 0 1;
setitemcolor soundmenubutton forecolor 1 .682 0 1;
setitemcolor gameoptionmenubutton forecolor 1 .682 0 1;
setitemcolor difficultymenubutton forecolor 1 .682 0 1;
setitemcolor modsmenubutton forecolor 1 1 1 1 ;
setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1;
}
}
// gamedefaults button
itemDef
{
name gamedefaultsmenubutton
group none
text @MENUS_DEFAULTS
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 80 329 170 24
font 3
textscale 0.9
textalignx 170
textaligny 2
textalign ITEM_ALIGN_RIGHT
textstyle 1
forecolor 1 .682 0 1
visible 1
descText @MENUS_RESTORE_DEFAULT_SETTINGS
mouseEnter
{
show sidebutton_glow
setitemrect sidebutton_glow 40 328 220 26
}
mouseExit
{
hide sidebutton_glow
}
action
{
play sound/interface/sub_select
defer VideoSetup videowarningMenu ;
show setup_background ;
hide video ;
hide applyChanges ;
hide video2 ;
hide vidrestart ;
hide sound ;
hide options ;
hide difficulty ;
hide mods_warning ;
hide mods ;
show defaults ;
setitemcolor video1menubutton forecolor 1 .682 0 1;
setitemcolor video2menubutton forecolor 1 .682 0 1;
setitemcolor soundmenubutton forecolor 1 .682 0 1;
setitemcolor gameoptionmenubutton forecolor 1 .682 0 1;
setitemcolor difficultymenubutton forecolor 1 .682 0 1;
setitemcolor modsmenubutton forecolor 1 .682 0 1;
setitemcolor gamedefaultsmenubutton forecolor 1 1 1 1 ;
}
}
itemDef
{
name setup_background
group none
style WINDOW_STYLE_FILLED
rect 260 185 340 225
backcolor 0 0 .6 .5
forecolor 1 1 1 1
border 1
bordercolor 0 0 .6 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
// HIGHLIGHT BARS
//----------------------------------------------------------------------------------------------
itemDef
{
name highlight1
group highlights
style WINDOW_STYLE_SHADER
rect 260 190 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight2
group highlights
style WINDOW_STYLE_SHADER
rect 260 204 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight3
group highlights
style WINDOW_STYLE_SHADER
rect 260 218 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight4
group highlights
style WINDOW_STYLE_SHADER
rect 260 232 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight5
group highlights
style WINDOW_STYLE_SHADER
rect 260 246 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight6
group highlights
style WINDOW_STYLE_SHADER
rect 260 260 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight7
group highlights
style WINDOW_STYLE_SHADER
rect 260 274 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight8
group highlights
style WINDOW_STYLE_SHADER
rect 260 288 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight9
group highlights
style WINDOW_STYLE_SHADER
rect 260 302 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight10
group highlights
style WINDOW_STYLE_SHADER
rect 260 316 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight11
group highlights
style WINDOW_STYLE_SHADER
rect 260 330 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight12
group highlights
style WINDOW_STYLE_SHADER
rect 260 344 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight13
group highlights
style WINDOW_STYLE_SHADER
rect 260 358 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight14
group highlights
style WINDOW_STYLE_SHADER
rect 260 372 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name highlight15
group highlights
style WINDOW_STYLE_SHADER
rect 260 386 340 14
background "gfx/menus/menu_blendbox"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
// VIDEO 1 MENU BUTTONS
//----------------------------------------------------------------------------------------------
itemDef
{
name refresh_rate
group video
type ITEM_TYPE_MULTI
text @MENUS_VR_REFRESH_RATE_ITEM
rect 260 202 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
cvarFloatList { "60" 60 "72" 72 "80" 80 "90" 90 }
descText @MENUS_VR_REFRESH_RATE_DESC
cvar "vr_refresh"
visible 0
mouseenter
{
show highlight2
}
mouseexit
{
hide highlight2
}
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name geometric_detail
group video
type ITEM_TYPE_MULTI
text @MENUS_GEOMETRIC_DETAIL
rect 260 216 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
cvarFloatList { @MENUS_LOW 2 @MENUS_MEDIUM 1 @MENUS_HIGH 0 }
descText @MENUS_ADJUST_THE_NUMBER_OF
cvar "ui_r_lodbias"
visible 0
mouseenter
{
show highlight3
}
mouseexit
{
hide highlight3
}
action
{
play "sound/interface/button1.wav" ;
uiScript glCustom ;
uiScript update "ui_r_lodbias" ;
setcvar ui_r_modified 1 ;
show applyChanges
}
}
itemDef
{
name texture_detail
group video
type ITEM_TYPE_MULTI
text @MENUS_TEXTURE_DETAIL
rect 260 230 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
cvarFloatList { @MENUS_LOW 3 @MENUS_MEDIUM 2 @MENUS_HIGH 1 @MENUS_VERY_HIGH 0 }
descText @MENUS_SELECT_THE_RESOLUTION
cvar "ui_r_picmip"
visible 0
mouseenter
{
show highlight4
}
mouseexit
{
hide highlight4
}
action
{
play "sound/interface/button1.wav" ;
uiScript glCustom ;
setcvar ui_r_modified 1 ;
show applyChanges
}
}
itemDef
{
name texture_filter
group video
type ITEM_TYPE_MULTI
text @MENUS_TEXTURE_FILTER
rect 260 244 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
cvarStrList { @MENUS_BILINEAR , "GL_LINEAR_MIPMAP_NEAREST" , @MENUS_TRILINEAR , "GL_LINEAR_MIPMAP_LINEAR" }
descText @MENUS_ADJUST_HOW_WELL_THE_TEXTURES
cvar "ui_r_texturemode"
visible 0
mouseenter
{
show highlight5
}
mouseexit
{
hide highlight5
}
action
{
play "sound/interface/button1.wav" ;
uiScript glCustom ;
setcvar ui_r_modified 1 ;
show applyChanges
}
}
itemDef
{
name simple_shaders
group video
type ITEM_TYPE_MULTI
text @MENUS_DETAILED_SHADERS
rect 260 258 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 }
descText @MENUS_HIDE_OR_UNHIDE_TEXTURES
cvar "ui_r_detailtextures"
visible 0
mouseenter
{
show highlight6
}
mouseexit
{
hide highlight6
}
action
{
play "sound/interface/button1.wav" ;
uiScript glCustom ;
setcvar ui_r_modified 1 ;
show applyChanges
}
}
itemDef
{
name compress_textures
group video_obsolete
type ITEM_TYPE_MULTI
text @MENUS_COMPRESSED_TEXTURES
rect 260 272 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 }
descText @MENUS_TAKE_ADVANTAGE_OF_3D
cvar "ui_r_ext_compress_textures"
visible 0
mouseenter
{
show highlight7
}
mouseexit
{
hide highlight7
}
action
{
play "sound/interface/button1.wav"
uiScript glCustom
setcvar ui_r_modified 1
show applyChanges
}
}
// APPLY CHANGES BUTTON
itemDef
{
name applybutton_glow
group none
style WINDOW_STYLE_SHADER
rect 260 384 340 14
background "gfx/menus/menu_blendbox2" // Frame around button
forecolor 1 0.5 0.5 1
visible 0
decoration
}
itemDef
{
name applyChanges
group none
text @MENUS_APPLY_CHANGES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 260 384 340 14
textaligny 0
font 4
textscale 1
textalignx 170
textalign ITEM_ALIGN_CENTER
forecolor 1 0 0 1
backcolor 0 0 1 0
visible 0
mouseEnter
{
show applybutton_glow
}
mouseExit
{
hide applybutton_glow
}
action
{
play "sound/interface/button1.wav" ;
show setup_background ;
show vidrestart ;
setfocus vidrestart_no ;
hide video ;
hide video2 ;
hide applybutton_glow ;
hide applyChanges ;
}
}
//----------------------------------------------------------------------------------------------
// VIDEO RESTART
//----------------------------------------------------------------------------------------------
// Faint red box
/* itemDef
{
name vidrestart_background
group vidrestart
style WINDOW_STYLE_SHADER
rect 300 171 300 250
background "gfx/menus/menu_boxred" // Frame
forecolor 1 1 1 0.5
visible 0
decoration
} */
itemDef
{
name vidrestart_background
group vidrestart
style WINDOW_STYLE_FILLED
rect 260 185 340 225
backcolor 0 0 .6 .5
forecolor 1 1 1 1
border 1
bordercolor 0 0 .6 1
visible 0
decoration
}
itemDef
{
name vidrestart_text1
group vidrestart
text @MENUS_THIS_WILL_APPLY_VIDEO
text2 @MENUS_AND_RETURN_TO_THE_MAIN
rect 305 230 290 20
textalign ITEM_ALIGN_CENTER
text2aligny 18
textalignx 145
font 2
textscale 1
forecolor 1 1 0 1
visible 0
decoration
}
itemDef
{
name vidrestart_text2
group vidrestart
text @MENUS_VID_RESTART3
rect 305 300 290 20
textalign ITEM_ALIGN_CENTER
textalignx 145
font 2
textscale 1
forecolor 1 1 0 1
visible 0
}
itemDef
{
name vidrestart_yes_button
group none
style WINDOW_STYLE_SHADER
rect 467 389 120 22
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// YES button
itemDef
{
name vidrestart_yes
group vidrestart
text @MENUS_YES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 467 386 120 32
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny 0
descText @MENUS_APPLY_CHANGES_AND_THEN
forecolor 1 .682 0 1
visible -1
action
{
play "sound/interface/button1.wav" ;
close all ;
uiScript updatevideosetup ;
}
mouseEnter
{
show vidrestart_yes_button
}
mouseExit
{
hide vidrestart_yes_button
}
}
itemDef
{
name vidrestart_no_button
group vidrestart
style WINDOW_STYLE_SHADER
rect 305 389 120 22
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// CANCEL button
itemDef
{
name vidrestart_no
group vidrestart
text @MENUS_NO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 305 386 120 32
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny -1
descText @MENUS_DO_NOT_APPLY_CHANGES
forecolor 1 .682 0 1
visible 0
action
{
play "sound/interface/esc.wav"
setfocus video1menubutton ;
show setup_background ;
hide vidrestart ;
show video ;
hide video2 ;
show applyChanges ;
hide vidrestart_yes_button ;
hide vidrestart_no_button ;
}
mouseEnter
{
show vidrestart_no_button
}
mouseExit
{
hide vidrestart_no_button
}
}
//----------------------------------------------------------------------------------------------
// VIDEO 2
//----------------------------------------------------------------------------------------------
itemDef
{
name gamma_text
group video2
style WINDOW_STYLE_SHADER
rect 290 198 280 36
background "gfx/menus/greyscale" // greyscale
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name bright_text
group video2
text @MENUS_ADJUST_BRIGHTNESS_SLIDER
text2 @MENUS_THE_NUMBER_6_CAN_BARELY
text2aligny 14
textalignx 170
textaligny 0
font 4
textscale 1
rect 260 234 340 20
textalign ITEM_ALIGN_CENTER
forecolor .549 .854 1 1
visible 0
decoration
}
itemDef
{
name brightness
group video2
type ITEM_TYPE_SLIDER
text @MENUS_VIDEO_BRIGHTNESS
cvarfloat "r_gamma" 1.15 0.8 1.5
rect 260 267 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_ADJUST_THE_BRIGHTNESS
action
{
play "sound/interface/button1.wav" ;
setcvar ui_r_modified 1
show applyChanges
}
mouseenter
{
show button_glow
setitemrect button_glow 260 267 340 20
}
mouseexit
{
hide button_glow
}
}
itemDef
{
name shadows
group video2
type ITEM_TYPE_MULTI
text @MENUS_SHADOWS
descText @MENUS_SHADOWS_DESC
cvar "cg_shadows"
cvarFloatList
{
@MENUS_NONE 0
@MENUS_SHADOWS_SIMPLE 1
@MENUS_SHADOWS_VOLUMETRIC 2
// "Projected" 3
}
rect 260 287 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
action
{
play "sound/interface/button1.wav" ;
}
mouseenter
{
show button_glow
setitemrect button_glow 260 287 340 20
}
mouseexit
{
hide button_glow
}
}
itemDef
{
name dynamic_light
group video2
type ITEM_TYPE_MULTI
text @MENUS_DYNAMIC_LIGHTS
cvar "r_dynamiclight"
cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 }
rect 260 301 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_TOGGLE_TO_TURN_ON_MOVING
mouseenter
{
show button_glow
setitemrect button_glow 260 301 340 20
}
mouseexit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name dynamic_glow
group video2
type ITEM_TYPE_MULTI
text @MENUS_DYNAMIC_GLOW
cvar "r_dynamicglow"
cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 }
rect 260 315 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_DYNAMIC_GLOW_DESC
mouseenter
{
show button_glow
setitemrect button_glow 260 315 340 20
}
mouseexit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav" ;
}
}
itemDef
{
name light_flares
group video2
type ITEM_TYPE_MULTI
text @MENUS_LIGHT_FLARES
cvar "r_flares"
cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 }
rect 260 329 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_TOGGLE_TO_SHOW_HALOS
mouseenter
{
show button_glow
setitemrect button_glow 260 329 340 20
}
mouseexit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav"
}
}
itemDef
{
name wall_marks
group video2
type ITEM_TYPE_MULTI
text @MENUS_WALL_MARKS
cvar "cg_marks"
cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 }
rect 260 343 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_TOGGLE_TO_DISPLAY_SCORCH
mouseenter
{
show button_glow
setitemrect button_glow 260 343 340 20
}
mouseexit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav"
}
}
itemDef
{
name video_mode
group video2
type ITEM_TYPE_SLIDER
text @MENUS_ANISOTROPIC_FILTERING
cvarTest r_ext_texture_filter_anisotropic_avail
hideCvar { 0 }
cvarfloat "r_ext_texture_filter_anisotropic" 2 0 16
rect 260 359 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_TOGGLE_ADVANCED_TEXTURE
mouseenter
{
show button_glow
setitemrect button_glow 260 359 340 20
}
mouseexit
{
hide button_glow
}
action
{
play "sound/interface/button1.wav"
}
}
//----------------------------------------------------------------------------------------------
// SOUND FIELDS
//----------------------------------------------------------------------------------------------
itemDef
{
name effects_volume
group sound
type ITEM_TYPE_SLIDER
text @MENUS_EFFECTS_VOLUME
cvarfloat "s_volume" 0 0 1
rect 260 202 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_ADJUST_VOLUME_FOR_SOUND
action
{
play "sound/interface/button1.wav" ;
}
mouseenter
{
show highlight2
}
mouseexit
{
hide highlight2
}
}
itemDef
{
name music_volume
group sound
type ITEM_TYPE_SLIDER
text @MENUS_MUSIC_VOLUME
cvarfloat "s_musicvolume" 0 0 1
rect 260 230 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_ADJUST_VOLUME_FOR_MUSIC
action
{
play "sound/interface/button1.wav" ;
}
mouseenter
{
show highlight4
}
mouseexit
{
hide highlight4
}
}
itemDef
{
name voice_volume
group sound
type ITEM_TYPE_SLIDER
text @MENUS_VOICE_VOLUME
cvarfloat "s_volumevoice" 0 0 1
rect 260 258 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_ADJUST_VOLUME_FOR_SPEECH
action
{
play "sound/interface/button1.wav" ;
}
mouseenter
{
show highlight6
}
mouseexit
{
hide highlight6
}
}
itemDef
{
name sound_quality
group sound
type ITEM_TYPE_MULTI
text @MENUS_SOUND_QUALITY
cvar "s_khz"
cvarFloatList { @MENUS_LOW 11 @MENUS_HIGH 22 }
rect 260 286 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_TRADE_CLARITY_OF_SOUND
cvarTest "s_UseOpenAL"
hideCvar { 1 }
mouseenter
{
show highlight8
}
mouseexit
{
hide highlight8
}
action
{
play "sound/interface/button1.wav"
uiScript update s_khz
}
}
//----------------------------------------------------------------------------------------------
// OPTION FIELDS
//----------------------------------------------------------------------------------------------
itemDef
{
name crosshair_back
group options
style WINDOW_STYLE_SHADER
rect 435 192 32 24
background "gfx/2d/iris_mono"
forecolor 1 1 1 0.8
visible 1
decoration
cvarTest cg_drawcrosshair
hideCvar { 0 }
}
itemDef
{
name draw_crosshair
group options
type ITEM_TYPE_MULTI
text @MENUS_VR_WEAPON_CROSSHAIR_ITEM
cvar "cg_drawcrosshair"
cvarFloatList {
@MENUS_OFF 0
" " 1
" " 2
" " 3
" " 4
" " 5
" " 6
" " 7
" " 8
" " 9
}
rect 260 195 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_WEAPON_CROSSHAIR_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight1
setitemrect highlight1 260 197 340 14
}
mouseexit
{
setitemrect highlight1 260 190 340 14
hide highlight1
}
}
itemDef
{
name crosshair1
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshairb"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 1 }
}
itemDef
{
name crosshair2
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshairc"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 2 }
}
itemDef
{
name crosshair3
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshaird"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 3 }
}
itemDef
{
name crosshair4
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshaire"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 4 }
}
itemDef
{
name crosshair5
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshairf"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 5 }
}
itemDef
{
name crosshair6
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshairg"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 6 }
}
itemDef
{
name crosshair7
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshairh"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 7 }
}
itemDef
{
name crosshair8
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshairi"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 8 }
}
itemDef
{
name crosshair9
group options
style WINDOW_STYLE_SHADER
rect 439 195 24 18
background "gfx/2d/crosshaira"
forecolor 1 1 1 1
visible 0
decoration
cvarTest cg_drawcrosshair
showCvar { 9 }
}
itemDef
{
name force_crosshair_back
group options
style WINDOW_STYLE_SHADER
rect 435 212 32 24
background "gfx/2d/iris_mono"
forecolor 1 1 1 0.8
visible 1
decoration
cvarTest cg_drawCrosshairForce
hideCvar { 0 }
}
itemDef
{
name draw_force_crosshair
group options
type ITEM_TYPE_MULTI
text @MENUS_VR_FORCE_CROSSHAIR_ITEM
cvar "cg_drawCrosshairForce"
cvarFloatList {
@MENUS_OFF 0
" " 1
" " 2
" " 3
" " 4
" " 5
" " 6
" " 7
" " 8
" " 9
}
rect 260 215 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_FORCE_CROSSHAIR_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight2
setitemrect highlight2 260 217 340 14
}
mouseexit
{
setitemrect highlight2 260 204 340 14
hide highlight2
}
}
itemDef
{
name force_crosshair1
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshairb"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 1 }
}
itemDef
{
name force_crosshair2
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshairc"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 2 }
}
itemDef
{
name force_crosshair3
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshaird"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 3 }
}
itemDef
{
name force_crosshair4
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshaire"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 4 }
}
itemDef
{
name force_crosshair5
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshairf"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 5 }
}
itemDef
{
name force_crosshair6
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshairg"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 6 }
}
itemDef
{
name force_crosshair7
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshairh"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 7 }
}
itemDef
{
name force_crosshair8
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshairi"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 8 }
}
itemDef
{
name force_crosshair9
group options
style WINDOW_STYLE_SHADER
rect 439 215 24 18
background "gfx/2d/crosshaira"
forecolor 0.6 0.6 1 1
visible 0
decoration
cvarTest cg_drawCrosshairForce
showCvar { 9 }
}
itemDef
{
name usablehint
group options
type ITEM_TYPE_YESNO
text @MENUS_VR_USABLE_OBJECT_HINT_ITEM
cvar "cg_usableObjectsHint"
rect 260 230 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_USABLE_OBJECT_HINT_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight4
}
mouseexit
{
hide highlight4
}
}
itemDef
{
name slowmo
group options
type ITEM_TYPE_MULTI
text @MENUS_SLOW_MOTION_DEATH
cvar "d_slowmodeath"
cvarFloatList
{
@MENUS_NEVER 0
@MENUS_ON_DEATH 1
@MENUS_RARELY 2
@MENUS_SLOW_MO_NORMAL 3
@MENUS_OFTEN 4
@MENUS_FREQUENTLY 5
@MENUS_EXCESSIVELY 6
}
rect 260 244 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_SELECT_THE_FREQUENCY
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight5
}
mouseexit
{
hide highlight5
}
}
itemDef
{
name footsteps
group options
type ITEM_TYPE_MULTI
text @MENUS_FOOTSTEPS
desctext @MENUS_FOOTSTEPS_DESC
cvar "cg_footsteps"
cvarFloatList
{
@MENUS_OFF 0
@MENUS_SOUNDS 1
@MENUS_SOUNDS_AND_EFFECTS 2
@MENUS_SOUNDS_EFFECTS_GRAPHICS 3
}
rect 260 258 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight6
}
mouseexit
{
hide highlight6
}
}
itemDef
{
name dismemberment
group options
type ITEM_TYPE_MULTI
text @MENUS_DISMEMBERMENT
cvar "g_dismemberment"
cvarFloatList
{
@MENUS_VR_MODEL_DISMEMBERMENT_DISABLED 0
@MENUS_VR_MODEL_DISMEMBERMENT_MILD 1
@MENUS_VR_MODEL_DISMEMBERMENT_BEARABLE 2
@MENUS_VR_MODEL_DISMEMBERMENT_UNSETTLING 3
}
cvarTest ui_iscensored
hideCvar { 1 }
rect 260 272 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_SELECT_WHAT_LIGHTSABER
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight7
}
mouseexit
{
hide highlight7
}
}
itemDef
{
name dismemberment_probability
group options
type ITEM_TYPE_MULTI
text @MENUS_DISMEMBER_PROBABILITY
cvar "g_dismemberprobabilities"
cvarFloatList
{
@MENUS_RARE 30
@MENUS_VR_DISMEMBERMENT_PROBABILITY_OFTEN 50
@MENUS_VR_DISMEMBERMENT_PROBABILITY_ALWAYS 100
}
cvarTest ui_iscensored
hideCvar { 1 }
rect 260 286 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_SELECT_FREQUENCY_OF_DISMEMBERMENT
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight8
}
mouseexit
{
hide highlight8
}
}
itemDef
{
name use_ragdolls
group options
type ITEM_TYPE_MULTI
text @MENUS_VR_USE_RAGDOLLS_ITEM
cvar "broadsword"
cvarFloatList
{
@MENUS_VR_USE_RAGDOLLS_NEVER 0
@MENUS_VR_USE_RAGDOLLS_DELAYED 1
@MENUS_VR_USE_RAGDOLLS_INSTANT 2
}
cvarTest ui_iscensored
hideCvar { 1 }
rect 260 300 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_USE_RAGDOLLS_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight9
}
mouseexit
{
hide highlight9
}
}
itemDef
{
name text
group options
type ITEM_TYPE_MULTI
text @MENUS_TEXT
cvar "se_language"
feeder 23 //FEEDER_PLAYER_SPECIES
cvarStrList feeder
rect 260 342 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_CHOOSE_THE_LANGUAGE_FOR
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight12
}
mouseexit
{
hide highlight12
}
}
itemDef
{
name voice
group options
type ITEM_TYPE_MULTI
text @MENUS_VOICE
cvarTest com_demo
hideCvar { 1 }
cvar "s_language"
cvarStrList
{
"English", "english"
@MENUS_LANG_FRENCH "francais"
"Deutsch" "deutsch"
"Espa<70>ol" "espanol"
}
rect 260 356 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_CHOOSE_THE_LANGUAGE_TO
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight13
}
mouseexit
{
hide highlight13
}
}
itemDef
{
name voice
group options
type ITEM_TYPE_MULTI
text @MENUS_SUBTITLES
cvar "g_subtitles"
cvarFloatList
{
@MENUS_NONE 0
@MENUS_IN_CINEMATICS 2
// @MENUS_ALL_VOICEOVERS 1
}
rect 260 370 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_TOGGLE_WHETHER_SUBTITLES
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight14
}
mouseexit
{
hide highlight14
}
}
//----------------------------------------------------------------------------------------------
// DIFFICULTY FIELDS
//----------------------------------------------------------------------------------------------
itemDef
{
name none
group difficulty
type ITEM_TYPE_TEXT
text @MENUS_VR_DIRECTORS_CUT_ITEM
rect 260 202 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
decoration
}
itemDef
{
name none
group difficulty
text " "
type ITEM_TYPE_MULTI
cvar "g_TeamBeefDirectorsCut"
cvarFloatList
{
@MENUS_VR_TBDC_BAGGYG 1
@MENUS_VR_TBDC_VANILLA 2
}
rect 260 216 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 60
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_DIRECTORS_CUT_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight3
}
mouseexit
{
hide highlight3
}
}
itemDef
{
name none
group difficulty
type ITEM_TYPE_YESNO
text @MENUS_VR_LASER_AUTODEFLECTING_ITEM
cvar "g_saberAutoDeflect1stPerson"
rect 260 244 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_LASER_AUTODEFLECTING_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight5
}
mouseexit
{
hide highlight5
}
}
itemDef
{
name none
group difficulty
type ITEM_TYPE_MULTI
text @MENUS_VR_SABER_REALISM_ITEM
cvar "g_saberRealisticCombat"
cvarFloatList
{
@MENUS_VR_SABER_REALISM_DEFAULT 0
@MENUS_VR_SABER_REALISM_INCREASED 1
@MENUS_VR_SABER_REALISM_CRITICAL 2
@MENUS_VR_SABER_REALISM_INSTANT 3
}
rect 260 258 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_LASER_AUTODEFLECTING_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight6
}
mouseexit
{
hide highlight6
}
}
itemDef
{
name none
group difficulty
type ITEM_TYPE_MULTI
text @MENUS_VR_FENCING_SPEED_ITEM
cvar "g_saberAnimSpeed"
cvarFloatList
{
@MENUS_VR_FENCING_SPEED_SLOWER 1.0
@MENUS_VR_FENCING_SPEED_DEFAULT 1.2
@MENUS_VR_FENCING_SPEED_FASTER 1.3
}
rect 260 272 340 14
textalign ITEM_ALIGN_RIGHT
textalignx 174
textaligny 0
font 4
textscale 1
forecolor .615 .615 .956 1
visible 0
descText @MENUS_VR_FENCING_SPEED_DESC
action
{
play "sound/interface/button1.wav"
}
mouseenter
{
show highlight7
}
mouseexit
{
hide highlight7
}
}
//----------------------------------------------------------------------------------------------
// MOD GAME MENU specific stuff
//----------------------------------------------------------------------------------------------
itemDef
{
name none
group mods_warning
style WINDOW_STYLE_SHADER
rect 260 185 340 225
background "gfx/menus/menu_boxred" // Frame
forecolor 1 1 1 0.5
visible 0
decoration
}
itemDef
{
name none
group mods_warning
text @MENUS_VR_MODS_WARNING_TEXT_1
rect 260 230 340 20
textalign ITEM_ALIGN_CENTER
textalignx 170
font 2
textscale 1
forecolor 1 1 0 1
visible 0
decoration
}
itemDef
{
name none
group mods_warning
text @MENUS_VR_MODS_WARNING_TEXT_2
rect 260 250 340 20
textalign ITEM_ALIGN_CENTER
textalignx 170
font 2
textscale 1
forecolor 1 1 0 1
visible 0
decoration
}
itemDef
{
name none
group mods_warning
text @MENUS_VR_MODS_WARNING_TEXT_3
rect 260 270 340 20
textalign ITEM_ALIGN_CENTER
textalignx 170
font 2
textscale 1
forecolor 1 1 0 1
visible 0
decoration
}
itemDef
{
name none
group mods_warning
text @MENUS_VR_MODS_WARNING_CONFIRM
type ITEM_TYPE_BUTTON
rect 260 310 340 20
textalign ITEM_ALIGN_CENTER
textalignx 170
font 2
textscale 1
forecolor 1 1 0 1
visible 0
action
{
play "sound/interface/button1.wav"
hide mods_warning
show mods
}
}
itemDef
{
name serverinfo
group mods
rect 270 196 320 176
type ITEM_TYPE_LISTBOX
style WINDOW_STYLE_FILLED
elementwidth 120
elementheight 16
font 2
textscale 1
border 1
bordersize 1
bordercolor .5 .5 .5 .5
forecolor .79 .64 .22 1
backcolor 0 0 .5 .25
outlinecolor .5 .5 .5 .5
elementtype LISTBOX_TEXT
feeder 9
notselectable
visible 0
columns 1 2 40 280
}
itemDef
{
name loadmod_button
group none
style WINDOW_STYLE_SHADER
rect 310 384 240 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
visible 0
decoration
}
itemDef
{
name loadmod
group mods
text @MENUS_LOAD_MOD
descText @MENUS_LOAD_CHOSEN_MOD
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 260 384 340 24
textalign ITEM_ALIGN_CENTER
textalignx 170
textaligny -2
font 2
textscale 1
forecolor 1 .682 0 1
visible 0
action
{
play "sound/interface/button1.wav"
uiScript RunMod ;
}
mouseEnter
{
show loadmod_button
}
mouseExit
{
hide loadmod_button
}
}
itemDef
{
name button_glow
group none
style WINDOW_STYLE_SHADER
rect 0 0 0 0
background "gfx/menus/menu_buttonback"
forecolor 1 1 1 1
visible 0
decoration
}
//----------------------------------------------------------------------------------------------
// RESET DEFAULTS
//----------------------------------------------------------------------------------------------
// Faint red box
itemDef
{
name vidrestart_background
group defaults
style WINDOW_STYLE_FILLED
rect 257 182 343 228
backcolor 0 0 .6 .5
forecolor .5 0 0 1
border 1
bordersize 3
bordercolor 1 0 0 1
visible 0
decoration
}
itemDef
{
name options
group defaults
text @MENUS_WARNING
rect 260 202 340 20
textalign ITEM_ALIGN_CENTER
textalignx 170
font 2
textscale 1
forecolor 1 0 0 1
visible 0
decoration
}
itemDef
{
name options
group defaults
text @MENUS_THIS_WILL_SET_ALL_GAME
text2 @MENUS_TO_THEIR_FACTORY_SETTINGS
rect 260 230 340 20
textalign ITEM_ALIGN_CENTER
textalignx 170
text2aligny 20
font 2
textscale 1
forecolor 1 0 0 1
visible 0
decoration
}
itemDef
{
name options
group defaults
text @MENUS_VID_RESTART3
rect 260 286 340 20
textalign ITEM_ALIGN_CENTER
textalignx 170
font 2
textscale 1
forecolor 1 0 0 1
visible 0
decoration
}
itemDef
{
name default_yes_button
group highlights
style WINDOW_STYLE_SHADER
rect 443 364 120 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// YES button - lose reset defaults
itemDef
{
name default_yes
group defaults
text @MENUS_YES
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 443 364 120 24
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny -2
descText @MENUS_USE_DEFAULT_SETTINGS
forecolor 1 .682 0 1
visible 0
action
{
play "sound/interface/button1.wav" ;
hide highlights ;
close all ;
uiscript resetdefaults
}
mouseEnter
{
show default_yes_button
}
mouseExit
{
hide default_yes_button
}
}
itemDef
{
name default_no_button
group highlights
style WINDOW_STYLE_SHADER
rect 297 364 120 24
background "gfx/menus/menu_buttonback" // Frame around button
forecolor 1 1 1 1
decoration
visible 0
}
// NO button - return to Main Menu
itemDef
{
name default_no
group defaults
text @MENUS_NO
type ITEM_TYPE_BUTTON
style WINDOW_STYLE_EMPTY
rect 297 364 120 24
font 2
textscale 1
textalign ITEM_ALIGN_CENTER
textalignx 60
textaligny -2
descText @MENUS_DO_NOT_RESET_DEFAULT
forecolor 1 .682 0 1
visible 0
action
{
play "sound/interface/esc.wav"
hide highlights ;
hide default_no_button
uiscript clearmouseover default_no ;
close all ;
open mainMenu ;
}
mouseEnter
{
show default_no_button
}
mouseExit
{
hide default_no_button
}
}
}
}