496 lines
8.9 KiB
Plaintext
496 lines
8.9 KiB
Plaintext
|
/*********************************************************
|
||
|
***************** Dumped by aerosoul94 *******************
|
||
|
*********************************************************/
|
||
|
|
||
|
{
|
||
|
menuDef
|
||
|
{
|
||
|
name "cdkey_menu"
|
||
|
rect -150 -124 300 124 2 2
|
||
|
popup
|
||
|
legacySplitScreenScale
|
||
|
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
|
||
|
onOpen
|
||
|
{
|
||
|
setLocalVarInt "ui_centerPopup" ( 1 );
|
||
|
setfocus "firstkey";
|
||
|
setLocalVarInt "ui_show_cancel" ( 1 );
|
||
|
uiScript "getCDKey";
|
||
|
}
|
||
|
onRequestClose
|
||
|
{
|
||
|
setLocalVarInt "ui_centerPopup" ( 0 );
|
||
|
}
|
||
|
onEsc
|
||
|
{
|
||
|
close self;
|
||
|
close self;
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -1004 -604 1708 960 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 -604 1708 960 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 -150 -124 300 124 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 -124 1708 480 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
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 -124 -1708 -480 2 2
|
||
|
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 - ( ( float( milliseconds( ) % 60000 ) / 60000 ) * ( 854 ) ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -124 300 0 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 1 1 1 1
|
||
|
background "mockup_popup_bg_stencilfill"
|
||
|
textscale 0.55
|
||
|
exp rect h ( ( 24 + 5 * 20 ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -124 -1708 -480 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
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 -124 -1708 -480 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
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 -124 300 0 1 1
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 1 1 1 0
|
||
|
background "small_box_lightfx"
|
||
|
textscale 0.55
|
||
|
exp rect h ( ( 24 + 5 * 20 ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -214 -188 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 -150 -188 300 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 150 -188 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 150 -124 64 0 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_r"
|
||
|
textscale 0.55
|
||
|
exp rect h ( ( 24 + 5 * 20 ) )
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect 150 -124 64 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_br"
|
||
|
textscale 0.55
|
||
|
exp rect y ( ( 0 - 0 ) + ( ( 24 + 5 * 20 ) ) )
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -124 300 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_b"
|
||
|
textscale 0.55
|
||
|
exp rect y ( ( 0 - 0 ) + ( ( 24 + 5 * 20 ) ) )
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -214 -124 64 64 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_bl"
|
||
|
textscale 0.55
|
||
|
exp rect y ( ( 0 - 0 ) + ( ( 24 + 5 * 20 ) ) )
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -214 -124 64 0 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 3
|
||
|
forecolor 0 0 0 1
|
||
|
background "drop_shadow_l"
|
||
|
textscale 0.55
|
||
|
exp rect h ( ( 24 + 5 * 20 ) )
|
||
|
visible when ( 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -150 -124 300 24 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
background "gradient_fadein"
|
||
|
textfont 9
|
||
|
textalign 5
|
||
|
textalignx -4
|
||
|
textscale 0.375
|
||
|
text "@MENU_KEY_CODE"
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -146 -104 292 42 2 2
|
||
|
decoration
|
||
|
autowrapped
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
textfont 3
|
||
|
textalign 5
|
||
|
textscale 0.375
|
||
|
visible when ( localvarint( "ui_show_cancel" ) == 0 )
|
||
|
exp text ( dvarstring( "ui_cdkeyvalid" ) )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -146 -104 292 42 2 2
|
||
|
decoration
|
||
|
autowrapped
|
||
|
visible 1
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
textfont 3
|
||
|
textalign 5
|
||
|
textscale 0.375
|
||
|
text "@MENU_ENTER_YOUR_KEY_CODE_IN_THE_FIELD_BELOW"
|
||
|
visible when ( localvarint( "ui_show_cancel" ) == 1 )
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
name "firstkey"
|
||
|
rect -140 -72 50 20 2 2
|
||
|
visible 1
|
||
|
group "grpcdkey"
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 0 0 0 0.3
|
||
|
type 18
|
||
|
textfont 1
|
||
|
textalign 9
|
||
|
textalignx -20
|
||
|
textscale 0.3
|
||
|
dvar "cdkey1"
|
||
|
maxChars 4
|
||
|
maxCharsGotoNext 1
|
||
|
maxPaintChars 256
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -86 -72 50 20 2 2
|
||
|
visible 1
|
||
|
group "grpcdkey"
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 0 0 0 0.3
|
||
|
type 18
|
||
|
textfont 1
|
||
|
textalign 9
|
||
|
textalignx -20
|
||
|
textscale 0.3
|
||
|
dvar "cdkey2"
|
||
|
maxChars 4
|
||
|
maxCharsGotoNext 1
|
||
|
maxPaintChars 256
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect -32 -72 50 20 2 2
|
||
|
visible 1
|
||
|
group "grpcdkey"
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 0 0 0 0.3
|
||
|
type 18
|
||
|
textfont 1
|
||
|
textalign 9
|
||
|
textalignx -20
|
||
|
textscale 0.3
|
||
|
dvar "cdkey3"
|
||
|
maxChars 4
|
||
|
maxCharsGotoNext 1
|
||
|
maxPaintChars 256
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect 22 -72 50 20 2 2
|
||
|
visible 1
|
||
|
group "grpcdkey"
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 0 0 0 0.3
|
||
|
type 18
|
||
|
textfont 1
|
||
|
textalign 9
|
||
|
textalignx -20
|
||
|
textscale 0.3
|
||
|
dvar "cdkey4"
|
||
|
maxChars 4
|
||
|
maxCharsGotoNext 1
|
||
|
maxPaintChars 256
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
name "datafield"
|
||
|
rect 78 -72 50 20 2 2
|
||
|
decoration
|
||
|
visible 1
|
||
|
group "grpcdkey"
|
||
|
forecolor 1 1 1 1
|
||
|
textfont 1
|
||
|
textalignx 2
|
||
|
textaligny 16
|
||
|
textscale 0.3
|
||
|
text "-"
|
||
|
maxChars 2
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
rect 90 -72 50 20 2 2
|
||
|
visible 1
|
||
|
group "grpcdkey"
|
||
|
style 1
|
||
|
forecolor 1 1 1 1
|
||
|
backcolor 0 0 0 0.3
|
||
|
type 18
|
||
|
textfont 1
|
||
|
textalign 9
|
||
|
textalignx -20
|
||
|
textscale 0.3
|
||
|
dvar "cdkey5"
|
||
|
maxChars 4
|
||
|
maxPaintChars 256
|
||
|
accept
|
||
|
{
|
||
|
uiScript "verifyCDKey";
|
||
|
setLocalVarInt "ui_show_cancel" ( 1 );
|
||
|
}
|
||
|
}
|
||
|
itemDef
|
||
|
{
|
||
|
name "verify"
|
||
|
rect -146 -40 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"
|
||
|
type 1
|
||
|
textfont 3
|
||
|
textalign 6
|
||
|
textalignx -24
|
||
|
textscale 0.375
|
||
|
text "@MENU_VERIFY"
|
||
|
visible when ( 1 )
|
||
|
action
|
||
|
{
|
||
|
play "mouse_click";
|
||
|
uiScript "verifyCDKey";
|
||
|
setLocalVarInt "ui_show_cancel" ( 0 );
|
||
|
}
|
||
|
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"
|
||
|
rect -146 -20 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"
|
||
|
type 1
|
||
|
textfont 3
|
||
|
textalign 6
|
||
|
textalignx -24
|
||
|
textscale 0.375
|
||
|
text "@MENU_CANCEL"
|
||
|
visible when ( localvarint( "ui_show_cancel" ) )
|
||
|
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
|
||
|
{
|
||
|
name "close"
|
||
|
rect -146 -20 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"
|
||
|
type 1
|
||
|
textfont 3
|
||
|
textalign 6
|
||
|
textalignx -24
|
||
|
textscale 0.375
|
||
|
text "@MENU_CLOSE"
|
||
|
visible when ( localvarint( "ui_show_cancel" ) == 0 )
|
||
|
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 );
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|