#include "ui/menudef.h" #include "ui_mp/main.inc" { menuDef { name "startup_messages" rect 0 0 640 480 0 0 forecolor 1 1 1 1 focuscolor 1 1 1 1 blurWorld 1 onOpen { lerp y "from" 125 "to" 0 "over" 0.115; focusfirst; scriptmenuresponse "map_menu_id_0"; setLocalVarString "ui_selected_image" (map_image_0); } 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 -1000 2400 2400 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( ) / 480 ) + 1 ) 0.25 ) + 0.25 ) } itemDef { rect -426.667 -240 893.333 520 2 2 decoration visible 1 style 3 forecolor 0 0 0 1 background "black" textscale 0.55 exp forecolor a ( ( cos ( milliseconds( ) / 1500 ) * 3) - 2.5 ) } itemDef { rect 0 -1000 2400 2400 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 -225 -198 460 252 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER style 3 foreColor 1 1 1 1 textScale 3 border 1 borderSize 1 borderColor 0 0 0 0.35 decoration visible 1 exp material(dvarString(localvarString(ui_selected_image))) } itemDef { rect -113 -199.3 376 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER visible 1 group "mw2_button" style 1 forecolor 1 1 1 0.75 backcolor 0 0 0 0.8 disablecolor 0.6 0.55 0.55 1 background "menu_button_selection_bar" type 1 textfont 9 textAlign 1 textAlignX 22 textalignY 16 textscale 0.29 exp text(dvarString("change_map_title")) action { play "mouse_click"; } onFocus { play "mouse_over"; setLocalVarBool "ui_menuAButton" ( 1 ); setLocalVarFloat "ui_popupYPos" ( getfocuseditemy( ) ); } leaveFocus { setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -225 54 450 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 exp text ( dvarString("desc") ) } #define MAP(row, column, mapid, mapid2, mapname, mapimage) \ itemDef \ { \ rect (-225 + (225*column)) (100 + (row * 30)) 225 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 \ disablecolor 0.6 0.55 0.55 1 \ disabled when( dvarInt("role_value") == 0) \ type 1 \ textAlign 1 \ textAlignY 20 \ textScale 0.275 \ visible 1 \ exp text ( dvarString(mapname) ) \ action \ { \ scriptmenuresponse mapid2; \ } \ onFocus \ { \ play "mouse_over"; \ scriptmenuresponse mapid; \ setLocalVarString "ui_selected_image" (mapimage); \ setItemColor self backcolor 0 0 0 0.57; \ setLocalVarBool "ui_menuAButton" ( 1 ); \ } \ leaveFocus \ { \ leaveFocusArg \ setLocalVarBool "ui_menuAButton" ( 0 ); \ setItemColor self backcolor 0 0 0 0.1 \ } \ } MAP(0, 0, "map_menu_id_0", ",map_menu_id_0", "map_menu_name_0", "map_image_0") MAP(1, 0, "map_menu_id_1", ",map_menu_id_1", "map_menu_name_1", "map_image_1") MAP(2, 0, "map_menu_id_2", ",map_menu_id_2", "map_menu_name_2", "map_image_2") MAP(0, 1, "map_menu_id_3", ",map_menu_id_3", "map_menu_name_3", "map_image_3") MAP(1, 1, "map_menu_id_4", ",map_menu_id_4", "map_menu_name_4", "map_image_4") MAP(2, 1, "map_menu_id_5", ",map_menu_id_5", "map_menu_name_5", "map_image_5") itemDef { rect 43 -199 30 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER decoration visible 1 forecolor 1 1 1 1 textfont 9 textalign 1 textalignx -136 textAlignY 18 textscale 0.375 exp text (dvarString("map_timer")) } } }