#include "ui/menudef.h" #include "ui_mp/main.inc" { menuDef { name "final_map" 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; } onEsc { open "popup_leavegame"; } 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 -300 -168 600 337 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("loadscreen_" + dvarString("next_map_id")) } itemDef { name "santaclaus" rect 230 98 70 70 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER style 3 foreColor 1 1 1 0.9 textScale 3 decoration visible when(dvarInt("xmas") == 1) exp material("santaclaus")) } itemDef { name "text" rect -85 34.8 415.5 20 HORIZONTAL_ALIGN_CENTER 1 visible when (dvarInt("ended") == 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 20 textalignY 16 textscale 0.29 exp text(dvarString("map_text")+ "^3" + dvarString("next_map_name")) 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 -426.667 -163 1600 200 2 3 decoration visible when (dvarInt("ended") == 1) style 3 forecolor 1 1 1 0.75 background "gradient_bottom" textscale 0.55 } itemDef { name "change_map" rect 63.6 354.1 336 20 1 1 visible when (dvarInt("ended") == 1 && dvarString("map_text") == "Random Map: ") 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 6 textalignx -89 textaligny 2.6 textscale 0.29 exp text("Choose another map") action { play "mouse_click"; close self; open "startup_messages"; } 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.8; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect 497.6 348 165 25 1 1 visible when (dvarInt("ended") == 1 && dvarString("map_text") == "Random Map: " && dvarInt("role_value") >= 3) style 1 backcolor 0 0 0 0.8 border 1 borderSize 1 borderColor 0 0 0 0.35 disablecolor 0.6 0.55 0.55 1 type 1 textfont 9 textAlign 1 textAlignY 17.5 textScale 0.275 exp text("[^2Admin^7] More maps") action { play "mouse_click"; close self; open "change_map"; } 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.8; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -82.5 190 165 25 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER visible when (dvarInt("ended") == 1 && dvarInt("trickshot_server") == 1) style 1 backcolor 0 0 0 0.8 border 1 borderSize 1 borderColor 0 0 0 0.35 disablecolor 0.6 0.55 0.55 1 type 1 textfont 9 textAlign 1 textAlignY 17.5 textScale 0.275 exp text("Distance leaderboard") action { play "mouse_click"; close self; open "cdkey_menu"; } 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.8; setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" ); setLocalVarBool "ui_menuAButton" ( 0 ); } } itemDef { rect -212 354 336 20 1 1 decoration visible when (dvarInt("ended") == 1 && dvarString("map_text") == "Random Map: ") forecolor 1 1 1 1 textfont 9 textalign 6 textaligny 2.6 textalignx -15 textscale 0.29 exp text ("[^3VIP^7]") } itemDef { rect -76 34.8 330 20 HORIZONTAL_ALIGN_CENTER 1 decoration visible 1 forecolor 1 1 1 1 textfont 9 textalign 1 textalignx -136 textAlignY 18 textscale 0.375 exp text (dvarString("map_timer")) } } }