/********************************************************* ***************** Dumped by aerosoul94 ******************* *********************************************************/ { menuDef { name "main_controls" rect 0 0 640 480 0 0 forecolor 1 1 1 1 focuscolor 1 1 1 1 blurWorld 7 onOpen { setLocalVarBool "ui_showApply" ( 0 ); setLocalVarBool "ui_hideBack" ( 1 ); setItemColor "fadebox" backcolor 0 0 0 1; fadeout "fadebox"; setdvar "g_reloading" 0; } onClose { setLocalVarBool "ui_hideBack" ( 0 ); } onEsc { close self; } itemDef { rect -427 -240 854 480 2 2 decoration visible 1 style 3 forecolor 0 0 0 0.4 background "white" textscale 0.55 visible when ( ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) && ( dvarstring( "gameMode" ) == "mp" || ( dvarstring( "gameMode" ) == "so" && !dvarbool( "solo_play" ) ) ) ) } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 1 1 1 1 background "mw2_main_background" textscale 0.55 visible when ( ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect 0 0 1708 480 0 0 decoration visible 1 style 3 forecolor 1 1 1 0.5 background "mw2_main_cloud_overlay" textscale 0.55 exp rect x ( ( 0 - 107 ) - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) ) visible when ( ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect 0 0 -1708 -480 0 0 decoration visible 1 style 3 forecolor 1 1 1 0.5 background "mw2_main_cloud_overlay" textscale 0.55 exp rect x ( ( - 107 + 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) ) visible when ( ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect -427 -240 854 480 2 2 decoration visible 1 style 3 forecolor 1 1 1 1 background "mw2_main_sp_image" textscale 0.55 visible when ( dvarstring( "gameMode" ) == "sp" && ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect -427 -240 854 480 2 2 decoration visible 1 style 3 forecolor 1 1 1 1 background "mw2_main_co_image" textscale 0.55 visible when ( dvarstring( "gameMode" ) == "so" && ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect -427 -240 854 480 2 2 decoration visible 1 style 3 forecolor 1 1 1 1 background "mw2_main_mp_image" textscale 0.55 visible when ( dvarstring( "gameMode" ) == "mp" && ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 1 1 1 0 background "mockup_bg_glow" textscale 0.55 exp forecolor a ( ( ( sin( milliseconds( ) / 1500 ) + 1 ) * 0.25 ) + 0.25 ) visible when ( ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 1 1 1 0 background "mockup_bg_glow" textscale 0.55 exp forecolor a ( ( ( sin( milliseconds( ) / 480 ) + 1 ) * 0.25 ) + 0.25 ) visible when ( ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect -64 0 280 480 1 0 decoration visible 1 style 3 forecolor 1 1 1 0.1 background "gradient_fadein_fadebottom" textscale 0.55 visible when ( 1 ) } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 0.25 0.25 0.25 0.75 background "gradient_fadein" textscale 0.55 visible when ( ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect 0 0 640 480 4 4 decoration visible 1 style 3 forecolor 0.25 0.25 0.25 0.75 background "gradient_fadein" textscale 0.55 visible when ( ! ( dvarbool( "cl_ingame" ) || dvarbool( "sv_running" ) ) ) } itemDef { rect 0 0 272 28 1 1 decoration visible 1 forecolor 1 1 1 1 textfont 9 textalign 6 textalignx -60 textscale 0.5 text "@MENU_CONTROLS_CAPS" } itemDef { rect -64 28 336 20 1 1 visible 1 group "mw2_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 3 textalign 6 textalignx -60 textscale 0.375 text "Movement" action { play "mouse_click"; close "options_look"; close "options_move"; close "options_shoot"; close "options_misc"; close "options_graphics"; close "options_sound"; 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"; close "options_voice"; close "options_multi"; close "controls_multi"; close "main_options"; close "main_controls"; open "pc_options_movement"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -64 48 336 20 1 1 visible 1 group "mw2_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 3 textalign 6 textalignx -60 textscale 0.375 text "Actions" action { play "mouse_click"; close "options_look"; close "options_move"; close "options_shoot"; close "options_misc"; close "options_graphics"; close "options_sound"; 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"; close "options_voice"; close "options_multi"; close "controls_multi"; close "main_options"; close "main_controls"; open "pc_options_actions"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -64 68 336 20 1 1 visible 1 group "mw2_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 3 textalign 6 textalignx -60 textscale 0.375 text "Look" action { play "mouse_click"; close "options_look"; close "options_move"; close "options_shoot"; close "options_misc"; close "options_graphics"; close "options_sound"; 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"; close "options_voice"; close "options_multi"; close "controls_multi"; close "main_options"; close "main_controls"; open "pc_options_look"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect 0 88 216 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.65 background "gradient_fadein" textscale 0.55 } itemDef { rect -64 88 336 20 1 1 visible 1 group "mw2_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 3 textalign 6 textalignx -60 textscale 0.375 text "@MENU_MULTIPLAYER" disabled when ( !dvarint( "ui_multiplayer" ) ) action { play "mouse_click"; close "options_look"; close "options_move"; close "options_shoot"; close "options_misc"; close "options_graphics"; close "options_sound"; 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"; close "options_voice"; close "options_multi"; close "controls_multi"; close "main_options"; close "main_controls"; open "controls_multi"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect 0 108 216 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.65 background "gradient_fadein" textscale 0.55 } itemDef { rect -64 108 336 20 1 1 visible 1 group "mw2_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 3 textalign 6 textalignx -60 textscale 0.375 text "@MENU_SET_DEFAULT_CONTROLS" action { play "mouse_click"; open "options_control_defaults"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -64 -20 336 20 1 3 visible 1 group "mw2_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 3 textalign 6 textalignx -60 textscale 0.375 text "@PLATFORM_BACK_CAPS" visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS" ) action { play "mouse_click"; play "mouse_click"; "escape" self; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_menuAButton" ( 1 ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -64 -20 336 20 1 3 visible 1 group "mw2_button" style 1 forecolor 1 1 1 1 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 3 textalign 6 textalignx -60 textscale 0.375 text "@PLATFORM_BACK_CAPS" visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS" ) action { play "mouse_click"; play "mouse_click"; open "popup_summary"; } onFocus { play "mouse_over"; if ( dvarstring( "gameMode" ) != "mp" ) { setItemColor "mw2_button" backcolor 0 0 0 0; } setItemColor self backcolor 0 0 0 1; setLocalVarBool "ui_menuAButton" ( 1 ); } leaveFocus { setItemColor self backcolor 0 0 0 "0.0"; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } } }