{ menuDef { name "change_map" rect 0 0 640 480 0 0 forecolor 1 1 1 1 focuscolor 1 1 1 1 blurWorld 1 onOpen { focusfirst; setLocalVarString "loadscreen" ("custom_map"); setLocalVarInt "step" (0); scriptmenuresponse ",unknown"; } onEsc { if(localvarInt("step") == 0){ close self; if(dvarBool("ended") == 1){ open "final_map"; } } if(localvarInt("step") > 0){ setLocalVarInt "step" ( localvarInt("step") - 1) } } itemDef { rect 0 -480 640 960 4 4 decoration visible 1 style 3 forecolor 0 0 0 0.6 background "white" textscale 0.55 } 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 ) } itemDef { rect -300 -200 1708 900 style 3 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 0.4 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 origin 0 0 background mw2_main_cloud_overlay decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 exp rect x ( ( 0 - 107 ) - ( ( float( milliseconds( ) % 40000 ) / 40000 ) * ( 854 ) ) ) visible 1 } itemDef { name "loadscreen_image" rect 352 70 354 197 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER style 3 foreColor 1 1 1 0.75 textScale 3 decoration border 1 borderSize 1 borderColor 0 0 0 0.35 visible 1 exp material("loadscreen_" + LocalVarString "loadscreen") } 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 ) } itemDef { rect -64 0 300 480 1 0 decoration visible 1 style 3 forecolor 0 0 0 0.2 background "black" textscale 0.55 } itemDef { rect 0 15 236 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.65 background "gradient_fadein" textscale 0.55 } itemDef { rect 16 22 277 28 1 1 decoration visible 1 forecolor 1 0.8 0.3 1 textfont 9 textalign 6 textalignx -60 textscale 0.43 exp text ("CHOOSE NEXT MAP") } itemDef { rect 0 48 236 1 1 1 decoration visible 1 style 3 forecolor 1 1 1 0.65 background "gradient_fadein" textscale 0.55 } itemDef { name "next" rect -64 48 356 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 visible when(localVarInt("step") == 0) exp text ( "^3Next page" ) action { setLocalVarInt "step" (1); } onFocus { play "mouse_over"; 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 { name "previous" rect -64 48 356 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 visible when(localVarInt("step") == 1) exp text ( "^3Previous page" ) action { setLocalVarInt "step" (0); } onFocus { play "mouse_over"; 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 ); } } #define MAP(index, desc, preview, mapid, mapname, step) \ itemDef \ { \ name mapname \ rect -64 (68 + (20 * index)) 356 20 1 1 \ visible 1 \ group "mw2_button" \ style 1 \ forecolor 1 1 1 1 \ background "menu_button_selection_bar" \ type 1 \ textfont 3 \ textalign 6 \ textalignx -60 \ textscale 0.375 \ text mapname \ disablecolor 0.6 0.55 0.55 1 \ disabled when (dvarbool(mapid) == 1) \ visible when(step == localVarInt("step")) \ action \ { \ play "mouse_click"; \ scriptmenuresponse mapid; \ close self; \ } \ onFocus \ { \ play "mouse_over"; \ setItemColor self backcolor 0 0 0 1; \ setLocalVarBool "ui_menuAButton" ( 1 ); \ setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); \ setLocalVarString "loadscreen" (preview); \ setLocalVarString "name" (mapname); \ scriptmenuresponse desc; \ } \ leaveFocus \ { \ setItemColor self backcolor 0 0 0 "0.0"; \ setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); \ setLocalVarBool "ui_menuAButton" ( 0 ); \ } \ } MAP(0, ",mp_backlot", "mp_backlot", "mp_backlot", "Backlot", 0) MAP(1, ",unknown", "custom_map", "mp_blue_ramshackle", "Blue Ramshackle", 0) MAP(2, ",unknown", "custom_map", "mp_blue_town", "Blue Town", 0) MAP(3, ",invasion", "invasion", "invasion", "Burger Town", 0) MAP(4, ",unknown", "custom_map", "mp_waw_castle", "Castle", 0) MAP(5, ",unknown", "custom_map", "mp_canal_bf3", "Canal", 0) MAP(6, ",unknown", "custom_map", "mp_agx_cz", "Construction Zone", 0) MAP(7, ",mp_countdown", "mp_countdown", "mp_countdown", "Countdown", 0) MAP(8, ",mp_cross_fire","mp_cross_fire", "mp_cross_fire", "Crossfire", 0) MAP(9, ",mp_farm", "mp_farm", "mp_farm", "Downpour", 0) MAP(10, ",unknown", "mp_firingrange", "mp_firingrange", "Firing Range", 0) MAP(11, ",unknown", "custom_map", "mp_fr_mogadishu_v2", "Mogadishu", 0) MAP(12, ",unknown", "custom_map", "mp_lost", "Lost", 0) MAP(13, ",unknown", "custom_map", "mp_luna2 ", "Luna 2", 0) MAP(14, ",oilrig", "oilrig", "oilrig", "Oilrig", 0) MAP(15, ",mp_pipeline", "mp_pipeline", "mp_pipeline", "Pipeline", 0) MAP(0, ",unknown", "custom_map", "mp_redzone", "Red Zone", 1) MAP(1, ",unknown", "custom_map", "mp_mw2_rust", "Rust 2", 1) MAP(2, ",unknown", "custom_map", "mp_seti", "Seti", 1) MAP(3, ",unknown", "custom_map", "mp_sharqi", "Sharqi", 1) MAP(4, ",unknown", "custom_map", "mp_sharqi_day", "Sharqi Day", 1) MAP(5, ",unknown", "custom_map", "mp_bo2standoff", "Standoff", 1) MAP(6, ",unknown", "custom_map", "mp_summit", "Summit", 1) itemDef { rect 352 (70+197) 354 30 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER visible 1 style 1 backcolor 0 0 0 0.1 border 1 borderSize 1 borderColor 0 0 0 0.35 type 1 textAlign 1 textAlignY 20 textScale 0.275 visible 1 exp text ( dvarString("desc") ) onFocus { play "mouse_over"; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } } }