100 lines
3.3 KiB
Text
100 lines
3.3 KiB
Text
#include "ui/menudef.h"
|
|
#include "ui_mp/common_macro.inc"
|
|
#define OPTIONS_STYLE 1
|
|
#include "ui_mp/menustyle.inc"
|
|
#include "ui/choices_setup_common.menu"
|
|
|
|
{
|
|
menuDef
|
|
{
|
|
name options_sound
|
|
fullScreen 0
|
|
rect 0 0 640 480
|
|
focusColor COLOR_FOCUSED
|
|
soundloop ""
|
|
onOpen
|
|
{
|
|
close options_look;
|
|
close options_move;
|
|
close options_shoot;
|
|
close options_misc;
|
|
close options_graphics;
|
|
close options_game;
|
|
close options_view;
|
|
close options_defaults;
|
|
close options_driverinfo;
|
|
close options_credits;
|
|
close options_multi;
|
|
close options_graphics_defaults;
|
|
close options_graphics_texture;
|
|
close options_control_defaults;
|
|
|
|
setLocalVarBool ui_showApply 0;
|
|
setLocalVarBool ui_hideBack 1;
|
|
|
|
exec "setfromdvar ui_snd_khz snd_khz";
|
|
exec "setfromdvar ui_snd_enableEq snd_enableEq";
|
|
exec "setfromdvar ui_outputConfig snd_outputConfiguration";
|
|
}
|
|
onClose
|
|
{
|
|
setLocalVarBool ui_hideBack 0;
|
|
}
|
|
onESC
|
|
{
|
|
close self;
|
|
}
|
|
|
|
#include "ui_mp/leftside_options.inc"
|
|
|
|
CHOICE_SECTION_TITLE( 21, "@MENU_SOUND" )
|
|
|
|
CHOICE_DVARSLIDER( 22, "@MENU_MASTER_VOLUME", snd_volume, 0.8, 0.0, 1.0, ; )
|
|
CHOICE_DVARFLOATLIST_VIS( 23, "@MENU_SOUND_EQ", ui_snd_enableEq, { "@MENU_OFF" 0 "@MENU_ON" 1 }, setLocalVarBool ui_showApply 1, when( ( !dvarint( sv_running ) || dvarInt( ui_allow_graphic_change ) ) && dvarInt( arcademode ) == 0 ); )
|
|
CHOICE_DVARFLOATLIST_VIS( 24, "@MENU_SOUND_QUALITY", ui_snd_khz, { "@MENU_11KHZ" 11 "@MENU_22KHZ" 22 "@MENU_44KHZ" 44 }, setLocalVarBool ui_showApply 1, when( ( !dvarint( sv_running ) || dvarInt( ui_allow_graphic_change ) ) && dvarInt( arcademode ) == 0 ); )
|
|
CHOICE_DVARSTRINGLIST_VIS( 25, "@MENU_SPEAKER_CONFIG", ui_outputConfig, { "@MENU_WINDOWS_DEFAULT"; "Windows default"; "@MENU_MONO"; "Mono"; "@MENU_STEREO"; "Stereo"; "@MENU_FOUR_SPEAKERS"; "4 speakers"; "@MENU_FIVE_ONE_SPEAKERS"; "5.1 speakers"; }, setLocalVarBool ui_showApply 1, when( ( !dvarint( sv_running ) || dvarInt( ui_allow_graphic_change ) ) && dvarInt( arcademode ) == 0 ); )
|
|
|
|
itemDef
|
|
{
|
|
name apply
|
|
text "@MENU_APPLY"
|
|
type 1
|
|
style WINDOW_STYLE_FILLED
|
|
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
rect 200 -26 80 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
|
|
textfont UI_FONT_NORMAL
|
|
textalign ITEM_ALIGN_LEFT
|
|
textscale TEXTSIZE_SMALL
|
|
textaligny 18
|
|
visible when( localVarBool( ui_showApply ) && !dvarint( ui_multiplayer ) );
|
|
mouseEnter { play "mouse_over"; }
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
uiScript openMenuOnDvar g_reloading 0 snd_restart_popmenu;
|
|
uiScript openMenuOnDvarNot g_reloading 0 vid_restart_popmenu_dead;
|
|
}
|
|
}
|
|
itemDef
|
|
{
|
|
name apply2
|
|
text "@MENU_APPLY"
|
|
type 1
|
|
style WINDOW_STYLE_FILLED
|
|
textstyle ITEM_TEXTSTYLE_SHADOWED
|
|
rect 200 -26 80 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
|
|
textfont UI_FONT_NORMAL
|
|
textalign ITEM_ALIGN_LEFT
|
|
textscale TEXTSIZE_SMALL
|
|
textaligny 18
|
|
visible when( localVarBool( ui_showApply ) && dvarint( ui_multiplayer ) );
|
|
mouseEnter { play "mouse_over"; }
|
|
action
|
|
{
|
|
play "mouse_click";
|
|
uiScript openMenuOnDvar sv_running 1 vid_restart_popmenu_listen;
|
|
uiScript openMenuOnDvarNot sv_running 1 snd_restart_popmenu;
|
|
}
|
|
}
|
|
}
|
|
}
|