#include "ui/menudef.h" { menuDef { name vote_map_ui_menu fullscreen 0 rect 0 0 640 480 style 0 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 fadeCycle 0 fadeClamp 0 fadeAmount 0 fadeInAmount 0 blurWorld 7 focusColor 1 1 1 1 visible 1 onOpen { setLocalVarInt "ui_vote_map_timer_time" ( milliseconds( ) + ( dvarint( "ui_vote_map_timer" ) * 1000 ) ); setLocalVarString "my_voted_map" ( "" ); } onClose { } onESC { } #define DONT_DO_THE_SIDEBAR_THINGY #include "ui_mp/bg.inc" 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 } 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 ) ) ) } 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 ) ) ) } 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 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 -100 0 90 -450 10 10 decoration forecolor 1 1 1 1 textalign 14 textscale 0.625 visible 1 exp text ( secondsascountdown( ( max( 0 , ( localvarint( "ui_vote_map_timer_time" ) - milliseconds( ) ) / 1000 ) ) ) ) } itemDef { rect 130 75 272 28 0 0 style 0 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 decoration type 0 align 0 textAlign 0 textAlignX -60 textAlignY 0 textScale 0.3 textStyle 3 textFont 9 feeder 0 visible 1 text "Vote For The Next Map:" } itemDef { rect 130 90 272 28 0 0 style 0 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 decoration type 0 align 0 textAlign 0 textAlignX -60 textAlignY 0 textScale 0.25 textStyle 3 textFont 9 feeder 0 visible 1 exp text ( dvarString( "ui_vote_map_title" ) ) } itemDef { name map_0_picturebackground rect 68 76 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_0_name" ) != "" ) } itemDef { name map_0_picture rect 68 76 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_0_name" ) != "" ) exp material ( dvarString( "ui_vote_map_0_image" ) ) } itemDef { name map_0_button rect 70 100 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_0_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_0" ); scriptMenuResponse "map_0"; } } itemDef { name map_0_selected rect 70 100 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_0" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_0_textbackground rect 71 101 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_0_name" ) != "" ) } itemDef { name map_0_votesbackground rect 69 174 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_0_name" ) != "" ) } itemDef { name map_0_text rect 72.5 115 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_0_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_0_text" ) ) } itemDef { name map_0_votes rect 185 175 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_0_name" ) != "" ) exp text ( dvarString( "ui_vote_map_0_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_1_picturebackground rect 238 76 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_1_name" ) != "" ) } itemDef { name map_1_picture rect 238 76 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_1_name" ) != "" ) exp material ( dvarString( "ui_vote_map_1_image" ) ) } itemDef { name map_1_button rect 240 100 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_1_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_1" ); scriptMenuResponse "map_1"; } } itemDef { name map_1_selected rect 240 100 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_1" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_1_textbackground rect 241 101 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_1_name" ) != "" ) } itemDef { name map_1_votesbackground rect 239 174 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_1_name" ) != "" ) } itemDef { name map_1_text rect 243.5 115 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_1_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_1_text" ) ) } itemDef { name map_1_votes rect 355 175 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_1_name" ) != "" ) exp text ( dvarString( "ui_vote_map_1_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_2_picturebackground rect 408 76 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_2_name" ) != "" ) } itemDef { name map_2_picture rect 408 76 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_2_name" ) != "" ) exp material ( dvarString( "ui_vote_map_2_image" ) ) } itemDef { name map_2_button rect 410 100 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_2_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_2" ); scriptMenuResponse "map_2"; } } itemDef { name map_2_selected rect 410 100 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_2" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_2_textbackground rect 411 101 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_2_name" ) != "" ) } itemDef { name map_2_votesbackground rect 409 174 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_2_name" ) != "" ) } itemDef { name map_2_text rect 413.5 115 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_2_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_2_text" ) ) } itemDef { name map_2_votes rect 525 175 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_2_name" ) != "" ) exp text ( dvarString( "ui_vote_map_2_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_3_picturebackground rect 68 176 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_3_name" ) != "" ) } itemDef { name map_3_picture rect 68 176 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_3_name" ) != "" ) exp material ( dvarString( "ui_vote_map_3_image" ) ) } itemDef { name map_3_button rect 70 200 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_3_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_3" ); scriptMenuResponse "map_3"; } } itemDef { name map_3_selected rect 70 200 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_3" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_3_textbackground rect 71 201 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_3_name" ) != "" ) } itemDef { name map_3_votesbackground rect 69 274 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_3_name" ) != "" ) } itemDef { name map_3_text rect 72.5 215 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_3_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_3_text" ) ) } itemDef { name map_3_votes rect 185 275 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_3_name" ) != "" ) exp text ( dvarString( "ui_vote_map_3_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_4_picturebackground rect 238 176 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_4_name" ) != "" ) } itemDef { name map_4_picture rect 238 176 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_4_name" ) != "" ) exp material ( dvarString( "ui_vote_map_4_image" ) ) } itemDef { name map_4_button rect 240 200 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_4_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_4" ); scriptMenuResponse "map_4"; } } itemDef { name map_4_selected rect 240 200 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_4" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_4_textbackground rect 241 201 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_4_name" ) != "" ) } itemDef { name map_4_votesbackground rect 239 274 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_4_name" ) != "" ) } itemDef { name map_4_text rect 243.5 215 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_4_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_4_text" ) ) } itemDef { name map_4_votes rect 355 275 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_4_name" ) != "" ) exp text ( dvarString( "ui_vote_map_4_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_5_picturebackground rect 408 176 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_5_name" ) != "" ) } itemDef { name map_5_picture rect 408 176 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_5_name" ) != "" ) exp material ( dvarString( "ui_vote_map_5_image" ) ) } itemDef { name map_5_button rect 410 200 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_5_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_5" ); scriptMenuResponse "map_5"; } } itemDef { name map_5_selected rect 410 200 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_5" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_5_textbackground rect 411 201 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_5_name" ) != "" ) } itemDef { name map_5_votesbackground rect 409 274 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_5_name" ) != "" ) } itemDef { name map_5_text rect 413.5 215 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_5_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_5_text" ) ) } itemDef { name map_5_votes rect 525 275 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_5_name" ) != "" ) exp text ( dvarString( "ui_vote_map_5_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_6_picturebackground rect 68 276 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_6_name" ) != "" ) } itemDef { name map_6_picture rect 68 276 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_6_name" ) != "" ) exp material ( dvarString( "ui_vote_map_6_image" ) ) } itemDef { name map_6_button rect 70 300 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_6_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_6" ); scriptMenuResponse "map_6"; } } itemDef { name map_6_selected rect 70 300 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_6" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_6_textbackground rect 71 301 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_6_name" ) != "" ) } itemDef { name map_6_votesbackground rect 69 374 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_6_name" ) != "" ) } itemDef { name map_6_text rect 72.5 315 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_6_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_6_text" ) ) } itemDef { name map_6_votes rect 185 375 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_6_name" ) != "" ) exp text ( dvarString( "ui_vote_map_6_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_7_picturebackground rect 238 276 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_7_name" ) != "" ) } itemDef { name map_7_picture rect 238 276 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_7_name" ) != "" ) exp material ( dvarString( "ui_vote_map_7_image" ) ) } itemDef { name map_7_button rect 240 300 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_7_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_7" ); scriptMenuResponse "map_7"; } } itemDef { name map_7_selected rect 240 300 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_7" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_7_textbackground rect 241 301 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_7_name" ) != "" ) } itemDef { name map_7_votesbackground rect 239 374 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_7_name" ) != "" ) } itemDef { name map_7_text rect 243.5 315 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_7_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_7_text" ) ) } itemDef { name map_7_votes rect 355 375 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_7_name" ) != "" ) exp text ( dvarString( "ui_vote_map_7_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name map_8_picturebackground rect 408 276 162 92 0 0 style 3 border 1 borderSize 1 foreColor 1 1 1 0.75 borderColor 0 0 0 1 background mw2_main_background origin 2 24 decoration textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_8_name" ) != "" ) } itemDef { name map_8_picture rect 408 276 162 92 0 0 style 3 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 backColor 1 1 1 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 origin 2 24 decoration type 0 align 0 textAlign 0 textAlignX 0 textAlignY 0 textScale 0.55 textStyle 0 textFont 0 feeder 0 visible when ( dvarString( "ui_vote_map_8_name" ) != "" ) exp material ( dvarString( "ui_vote_map_8_image" ) ) } itemDef { name map_8_button rect 410 300 162 92 0 0 style 1 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_map_8_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_map" ( "map_8" ); scriptMenuResponse "map_8"; } } itemDef { name map_8_selected rect 410 300 162 92 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_map" ) == "map_8" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name map_8_textbackground rect 411 301 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_map_8_name" ) != "" ) } itemDef { name map_8_votesbackground rect 409 374 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_map_8_name" ) != "" ) } itemDef { name map_8_text rect 413.5 315 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_8_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_map_8_text" ) ) } itemDef { name map_8_votes rect 525 375 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_map_8_name" ) != "" ) exp text ( dvarString( "ui_vote_map_8_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { rect 130 415 272 28 0 0 style 0 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 decoration type 0 align 0 textAlign 0 textAlignX -60 textAlignY 0 textScale 0.3 textStyle 3 textFont 9 feeder 0 visible 1 text "Vote For The Next Gametype:" } itemDef { rect 130 430 272 28 0 0 style 0 border 0 ownerdraw 0 ownerdrawFlag 0 borderSize 0 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 0 outlineColor 0 0 0 0 decoration type 0 align 0 textAlign 0 textAlignX -60 textAlignY 0 textScale 0.25 textStyle 3 textFont 9 feeder 0 visible 1 exp text ( dvarString( "ui_vote_gametype_title" ) ) } itemDef { name gametype_0_button rect 70 435 162 38 0 0 style 1 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_gametype_0_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_gametype" ( "gametype_0" ); scriptMenuResponse "gametype_0"; } } itemDef { name gametype_0_selected rect 70 435 162 38 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_gametype" ) == "gametype_0" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name gametype_0_textbackground rect 71 436 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_gametype_0_name" ) != "" ) } itemDef { name gametype_0_votesbackground rect 69 455 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_gametype_0_name" ) != "" ) } itemDef { name gametype_0_text rect 76 450 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_gametype_0_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_gametype_0_text" ) ) } itemDef { name gametype_0_votes rect 185 455 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_gametype_0_name" ) != "" ) exp text ( dvarString( "ui_vote_gametype_0_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name gametype_1_button rect 240 435 162 38 0 0 style 1 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_gametype_1_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_gametype" ( "gametype_1" ); scriptMenuResponse "gametype_1"; } } itemDef { name gametype_1_selected rect 240 435 162 38 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_gametype" ) == "gametype_1" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name gametype_1_textbackground rect 241 436 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_gametype_1_name" ) != "" ) } itemDef { name gametype_1_votesbackground rect 239 455 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_gametype_1_name" ) != "" ) } itemDef { name gametype_1_text rect 246 450 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_gametype_1_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_gametype_1_text" ) ) } itemDef { name gametype_1_votes rect 355 455 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_gametype_1_name" ) != "" ) exp text ( dvarString( "ui_vote_gametype_1_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } itemDef { name gametype_2_button rect 410 435 162 38 0 0 style 1 border 1 ownerdraw 0 ownerdrawFlag 0 borderSize 1 foreColor 1 1 1 1 backColor 0 0 0 0 borderColor 0 0 0 1 outlineColor 0 0 0 0 group mw2_popup_button type 1 align 0 feeder 0 visible when ( dvarString( "ui_vote_gametype_2_name" ) != "" ) onFocus { play "mouse_over"; setItemColor self "backcolor" 0 1 0 0.25; } leaveFocus { setItemColor self "backcolor" 1 1 1 0; } action { play "mouse_click"; setLocalVarString "my_voted_gametype" ( "gametype_2" ); scriptMenuResponse "gametype_2"; } } itemDef { name gametype_2_selected rect 410 435 162 38 0 0 style 1 border 1 borderSize 1 borderColor 1 1 1 1 decoration backcolor 0 1 0 0.25 visible when ( localVarString( "my_voted_gametype" ) == "gametype_2" ) exp backcolor a ( ( ( sin( milliseconds( ) / 500 ) + 0.1 ) * 0.1 ) + 0.2 ) } itemDef { name gametype_2_textbackground rect 411 436 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient //gradient_bottom decoration visible when ( dvarString( "ui_vote_gametype_2_name" ) != "" ) } itemDef { name gametype_2_votesbackground rect 409 455 162 17.5 0 0 style 3 foreColor 0 0 0 0.9 background gradient_fadein decoration visible when ( dvarString( "ui_vote_gametype_2_name" ) != "" ) } itemDef { name gametype_2_text rect 416 450 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 0 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_gametype_2_name" ) != "" ) exp text ( "@" + dvarString( "ui_vote_gametype_2_text" ) ) } itemDef { name gametype_2_votes rect 525 455 50 50 0 0 style 1 visible 1 forecolor 1 1 1 1 textAlign 5 textAlignX 0 textAlignY 0 textStyle 0 textFont 3 textScale 0.3 decoration visible when ( dvarString( "ui_vote_gametype_2_name" ) != "" ) exp text ( dvarString( "ui_vote_gametype_2_popularity" ) + "/" + dvarString( "ui_vote_map_gamesize" ) ) } } }