348 lines
6.9 KiB
Plaintext
348 lines
6.9 KiB
Plaintext
|
/*********************************************************
|
||
|
***************** Dumped by aerosoul94 *******************
|
||
|
*********************************************************/
|
||
|
|
||
|
{
|
||
|
menuDef
|
||
|
{
|
||
|
name "prestige_reset3"
|
||
|
rect -150 -102 300 204 2 2
|
||
|
popup
|
||
|
outOfBoundsClick
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 1 1 1 1
|
||
|
background "white"
|
||
|
focuscolor 1 1 1 1
|
||
|
fadeCycle 1
|
||
|
fadeClamp 1
|
||
|
fadeAmount 0.1
|
||
|
allowedBinding "+talk"
|
||
|
exp rect y ( 0 - ( 24 + 9 * 20 ) / 2 )
|
||
|
onOpen
|
||
|
{
|
||
|
setfocus "cancel_button";
|
||
|
setLocalVarInt "ui_prestigeState" ( getplayerdata( "prestige" ) + 2 );
|
||
|
setLocalVarInt "ui_prestigeProgress" ( getplayerdata( "prestige" ) + 1 );
|
||
|
}
|
||
|
onEsc
|
||
|
{
|
||
|
close self;
|
||
|
play "exit_prestige";
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -1004 -582 3416 1920 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 0 0 0 0.35
|
||
|
background "white"
|
||
|
textscale 0.55
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -1004 -582 3416 1920 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 1 1 1 1
|
||
|
background "xpbar_stencilbase"
|
||
|
textscale 0.55
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -427 -102 854 204 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 0.5 0.5 0.5 1
|
||
|
background "white"
|
||
|
textscale 0.55
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -102 1708 480 2 9
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 1 1 1 0.75
|
||
|
background "mw2_popup_bg_fogstencil"
|
||
|
textscale 0.55
|
||
|
exp rect x ( ( 0 - ( 854 - 300 ) * 0.5 ) - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -102 -1708 -480 2 9
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0.85 0.85 0.85 1
|
||
|
background "mw2_popup_bg_fogscroll"
|
||
|
textscale 0.55
|
||
|
exp rect x ( ( 0 - ( 854 - 300 ) * 0.5 ) - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -427 -102 854 0 2 9
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 1 1 1 1
|
||
|
background "mockup_popup_bg_stencilfill"
|
||
|
textscale 0.55
|
||
|
exp rect h ( ( 24 + 9 * 20 ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -102 -1708 -480 2 9
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 1 1 1 0.75
|
||
|
background "mw2_popup_bg_fogstencil"
|
||
|
textscale 0.55
|
||
|
exp rect x ( ( 0 - ( 854 - 300 ) * 0.5 ) + ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -102 -1708 -480 2 9
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0.85 0.85 0.85 1
|
||
|
background "mw2_popup_bg_fogscroll"
|
||
|
textscale 0.55
|
||
|
exp rect x ( ( 0 - ( 854 - 300 ) * 0.5 ) + ( 0 - 854 ) + ( ( float( milliseconds( ) % 50000 ) / 50000 ) * ( 854 ) ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -491 -166 64 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_tl"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -427 -166 854 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_t"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect 427 -166 64 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_tr"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect 427 -102 64 204 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_r"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect 427 102 64 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_br"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -427 102 854 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_b"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -491 102 64 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_bl"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -491 -102 64 204 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_l"
|
||
|
textscale 0.55
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -102 300 24 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
background "gradient_fadein"
|
||
|
textfont 9
|
||
|
textalign 5
|
||
|
textscale 0.375
|
||
|
exp text ( "@MENU_PRESTIGE_RESET_TITLE3" )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -146 -78 292 20 2 2
|
||
|
decoration
|
||
|
autowrapped
|
||
|
visible 1
|
||
|
group "mw2_button"
|
||
|
style 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 4
|
||
|
textscale 0.375
|
||
|
exp text ( "@MENU_PRESTIGE_RESET_WARNING3" )
|
||
|
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 62 292 20 2 2
|
||
|
visible 1
|
||
|
group "mw2_popup_button"
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
disablecolor 0.6 0.55 0.55 1
|
||
|
background "popup_button_selection_bar_flipped"
|
||
|
type 1
|
||
|
textfont 3
|
||
|
textalign 4
|
||
|
textalignx 4
|
||
|
textscale 0.375
|
||
|
text "@MENU_PRESTIGE_ENTER"
|
||
|
action
|
||
|
{
|
||
|
play "mouse_click";
|
||
|
play "enter_prestige";
|
||
|
execnow "prestigeReset";
|
||
|
if ( getplayerdata( "prestige" ) == 10 )
|
||
|
{
|
||
|
setPlayerData( "challengeState" , "ch_prestige_10" , 2 ) setPlayerData( "challengeProgress" , "ch_prestige_10" , 1 );
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
setPlayerData( "challengeState" , "ch_prestige" , "localVarInt" ( "ui_prestigeState" ) ) setPlayerData( "challengeProgress" , "ch_prestige" , "localVarInt" ( "ui_prestigeProgress" ) );
|
||
|
}
|
||
|
execnow "updategamerprofile";
|
||
|
execnow "uploadStats";
|
||
|
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 "cancel_button"
|
||
|
rect -146 82 292 20 2 2
|
||
|
visible 1
|
||
|
group "mw2_popup_button"
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
disablecolor 0.6 0.55 0.55 1
|
||
|
background "popup_button_selection_bar_flipped"
|
||
|
type 1
|
||
|
textfont 3
|
||
|
textalign 4
|
||
|
textalignx 4
|
||
|
textscale 0.375
|
||
|
text "@MENU_CANCEL"
|
||
|
action
|
||
|
{
|
||
|
play "mouse_click";
|
||
|
play "exit_prestige";
|
||
|
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 );
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|