IW4-Dump-Files/ui_mp/scriptmenus/popup_leavegame.menu

2289 lines
43 KiB
Plaintext

/********************************************
* dumped by: aerosoul94 *
*********************************************/
{
menuDef
{
name "popup_leavegame"
rect -150 -84 300 84 2 2
style 1
popup
legacySplitScreenScale
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "button_no";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect -150 -84 300 84 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -84 1708 480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 300 0 2 2
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 300 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -214 -148 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -150 -148 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -148 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -84 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 150 -84 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -150 -84 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -84 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -84 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect -150 -84 300 24 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@MPUI_LEAVE_GAME1"
}
itemDef
{
name "button_yes"
rect -146 -40 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
action
{
play "mouse_click";
play "mouse_click";
close "popup_leavegame";
exec "disconnect";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "button_no"
rect -146 -20 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect -150 -84 292 22 2 2
decoration
visible 1
forecolor 1 1 1 1
textfont 1
textalign 10
textaligny -1
textscale 0.28
text "@PLATFORM_UI_SELECTBUTTON"
exp rect y ( getfocuseditemy( ) + ( ( 24 + 3 * 20 ) ) )
visible when ( localvarbool( "ui_popupAButton" ) )
}
}
menuDef
{
name "popup_leavegameandparty"
rect -150 -84 300 84 2 2
style 1
popup
legacySplitScreenScale
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "button_no";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect -150 -84 300 84 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -84 1708 480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 300 0 2 2
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 300 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -214 -148 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -150 -148 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -148 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -84 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 150 -84 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -150 -84 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -84 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -84 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect -150 -84 300 24 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@MENU_LEAVE_GAME_AND_PARTY"
}
itemDef
{
name "button_yes"
rect -146 -40 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
action
{
play "mouse_click";
play "mouse_click";
close "popup_leavegameandparty";
exec "disconnect; xstopprivateparty; xstopparty";
exec "xblive_privatematch 0";
exec "xstartprivateparty";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "button_no"
rect -146 -20 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect -150 -84 292 22 2 2
decoration
visible 1
forecolor 1 1 1 1
textfont 1
textalign 10
textaligny -1
textscale 0.28
text "@PLATFORM_UI_SELECTBUTTON"
exp rect y ( getfocuseditemy( ) + ( ( 24 + 3 * 20 ) ) )
visible when ( localvarbool( "ui_popupAButton" ) )
}
}
menuDef
{
name "popup_endgame"
rect -150 -84 300 84 2 2
style 1
popup
legacySplitScreenScale
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
visible when ( dvarbool( "onlineunrankedgameandhost" ) == 1 || dvarbool( "sv_running" ) == 1 )
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "button_no";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -564 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -564 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect -150 -84 300 84 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -84 1708 480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 300 0 2 2
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -84 300 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
}
itemDef
{
rect -214 -148 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -150 -148 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -148 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -84 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 150 -84 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -150 -84 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -84 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 3 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -84 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 3 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect -150 -84 300 24 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@MPUI_END_GAME2"
}
itemDef
{
name "button_yes"
rect -146 -40 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
action
{
play "mouse_click";
play "mouse_click";
close "popup_endgame";
scriptmenuresponse "endround";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "button_no"
rect -146 -20 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect -150 -84 292 22 2 2
decoration
visible 1
forecolor 1 1 1 1
textfont 1
textalign 10
textaligny -1
textscale 0.28
text "@PLATFORM_UI_SELECTBUTTON"
exp rect y ( getfocuseditemy( ) + ( ( 24 + 3 * 20 ) ) )
visible when ( localvarbool( "ui_popupAButton" ) )
}
}
menuDef
{
name "popup_leavegame_ranked"
rect -150 -144 300 144 2 2
style 1
popup
legacySplitScreenScale
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "button_no";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -624 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -624 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect -150 -144 300 144 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -144 1708 480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 300 0 2 2
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 300 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
}
itemDef
{
rect -214 -208 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -150 -208 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -208 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -144 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 150 -144 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -150 -144 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -144 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -144 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect -150 -144 300 24 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@MPUI_LEAVE_GAME1"
}
itemDef
{
rect -146 -120 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED1" )
action
{
play "mouse_click";
}
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 -146 -100 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED2" )
action
{
play "mouse_click";
}
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 -146 -80 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED3" )
action
{
play "mouse_click";
}
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
{
name "button_yes"
rect -146 -40 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
action
{
play "mouse_click";
play "mouse_click";
close "popup_leavegame";
exec "disconnect";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "button_no"
rect -146 -20 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect -150 -144 292 22 2 2
decoration
visible 1
forecolor 1 1 1 1
textfont 1
textalign 10
textaligny -1
textscale 0.28
text "@PLATFORM_UI_SELECTBUTTON"
exp rect y ( getfocuseditemy( ) + ( ( 24 + 6 * 20 ) ) )
visible when ( localvarbool( "ui_popupAButton" ) )
}
}
menuDef
{
name "popup_endgame_ranked"
rect -150 -144 300 144 2 2
style 1
popup
legacySplitScreenScale
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
visible when ( dvarbool( "onlineunrankedgameandhost" ) == 1 )
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "button_no";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -624 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -624 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect -150 -144 300 144 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -144 1708 480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 300 0 2 2
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 300 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
}
itemDef
{
rect -214 -208 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -150 -208 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -208 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -144 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 150 -144 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -150 -144 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -144 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -144 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect -150 -144 300 24 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@MPUI_LEAVE_GAME1"
}
itemDef
{
rect -146 -120 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED1" )
action
{
play "mouse_click";
}
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 -146 -100 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED2" )
action
{
play "mouse_click";
}
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 -146 -80 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED3" )
action
{
play "mouse_click";
}
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
{
name "button_yes"
rect -146 -40 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
action
{
play "mouse_click";
if ( !dvarbool( "scr_gameended" ) )
{
play "mouse_click";
close "popup_endgame";
exec "xpartydisbandafterround";
exec "hostmigration_start";
}
else
{
scriptmenuresponse "endround";
close self;
}
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "button_no"
rect -146 -20 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect -150 -144 292 22 2 2
decoration
visible 1
forecolor 1 1 1 1
textfont 1
textalign 10
textaligny -1
textscale 0.28
text "@PLATFORM_UI_SELECTBUTTON"
exp rect y ( getfocuseditemy( ) + ( ( 24 + 6 * 20 ) ) )
visible when ( localvarbool( "ui_popupAButton" ) )
}
}
menuDef
{
name "popup_leavegameandparty_ranked"
rect -150 -144 300 144 2 2
style 1
popup
legacySplitScreenScale
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "white"
focuscolor 1 1 1 1
onOpen
{
setLocalVarInt "ui_centerPopup" ( 1 );
setfocus "button_no";
}
onClose
{
setLocalVarInt "ui_centerPopup" ( 0 );
}
onEsc
{
close self;
}
itemDef
{
rect -1004 -624 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0 0 0 0.35
background "white"
textscale 0.55
}
itemDef
{
rect -1004 -624 1708 960 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 1 1 1 1
background "xpbar_stencilbase"
textscale 0.55
}
itemDef
{
rect -150 -144 300 144 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
backcolor 0.5 0.5 0.5 1
background "white"
textscale 0.55
}
itemDef
{
rect -150 -144 1708 480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( 0 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 300 0 2 2
style 3
decoration
visible 1
forecolor 1 1 1 1
background "mockup_popup_bg_stencilfill"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 1 1 1 0.75
background "mw2_popup_bg_fogstencil"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 -1708 -480 2 2
style 3
decoration
visible 1
forecolor 0.85 0.85 0.85 1
background "mw2_popup_bg_fogscroll"
textscale 0.55
exp rect x ( ( - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
}
itemDef
{
rect -150 -144 300 0 1 1
style 3
decoration
visible 1
forecolor 1 1 1 0
background "small_box_lightfx"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
}
itemDef
{
rect -214 -208 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -150 -208 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -208 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 150 -144 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect 150 -144 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -150 -144 300 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -144 64 64 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
exp rect y ( ( 0 - 0 ) + ( ( 24 + 6 * 20 ) ) )
visible when ( 1 )
}
itemDef
{
rect -214 -144 64 0 2 2
style 3
decoration
visible 1
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
exp rect h ( ( 24 + 6 * 20 ) )
visible when ( 1 )
}
itemDef
{
rect -150 -144 300 24 2 2
style 1
decoration
visible 1
forecolor 1 1 1 1
background "gradient_fadein"
textfont 9
textalign 5
textscale 0.375
text "@MENU_LEAVE_GAME_AND_PARTY"
}
itemDef
{
rect -146 -120 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED1" )
action
{
play "mouse_click";
}
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 -146 -100 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED2" )
action
{
play "mouse_click";
}
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 -146 -80 292 20 2 2
group "mw2_button"
style 1
decoration
autowrapped
visible 1
forecolor 1 1 1 0.65
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 5
textscale 0.375
exp text ( "@MENU_LEAVE_GAME_RANKED3" )
action
{
play "mouse_click";
}
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
{
name "button_yes"
rect -146 -40 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_YES"
action
{
play "mouse_click";
play "mouse_click";
close "popup_leavegameandparty";
exec "disconnect; xstopprivateparty; xstopparty";
exec "xblive_privatematch 0";
exec "xstartprivateparty";
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
name "button_no"
rect -146 -20 292 20 2 2
group "mw2_popup_button"
style 1
visible 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "popup_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -24
textscale 0.375
text "@MENU_NO"
action
{
play "mouse_click";
close self;
}
onFocus
{
play "mouse_over";
if ( dvarstring( "gameMode" ) != "mp" )
{
setItemColor "mw2_popup_button" backcolor 0 0 0 0;
}
setItemColor self backcolor 0 0 0 1;
setLocalVarBool "ui_popupAButton" ( 1 );
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect -150 -144 292 22 2 2
decoration
visible 1
forecolor 1 1 1 1
textfont 1
textalign 10
textaligny -1
textscale 0.28
text "@PLATFORM_UI_SELECTBUTTON"
exp rect y ( getfocuseditemy( ) + ( ( 24 + 6 * 20 ) ) )
visible when ( localvarbool( "ui_popupAButton" ) )
}
}
}