IW4-Dump-Files/ui_mp/menu_cas_popup.menu

5512 lines
280 KiB
Plaintext

/*********************************************************
***************** Dumped by aerosoul94 *******************
*********************************************************/
{
menuDef
{
name "menu_cas_popup"
rect 0 0 640 480 0 0
style 1
forecolor 1 1 1 1
focuscolor 1 1 1 1
fullscreen 1
fadeCycle 1
fadeClamp 1
fadeAmount 0.1
soundLoop "music_mainmenu_mp"
execKey 167
{
setLocalVarInt "ui_numStreaks" ( 0 );
setLocalVarString "ui_streak1Name" ( "none" );
setLocalVarString "ui_streak2Name" ( "none" );
setLocalVarString "ui_streak3Name" ( "none" );
}
onOpen
{
setLocalVarInt "ui_unlockedStreaks" ( 0 );
if ( getplayerdata( "killstreakUnlocked" , "uav" ) && "uav" != "uav" && "uav" != "airdrop" && "uav" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "airdrop" ) && "airdrop" != "uav" && "airdrop" != "airdrop" && "airdrop" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "counter_uav" ) && "counter_uav" != "uav" && "counter_uav" != "airdrop" && "counter_uav" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) && "airdrop_sentry_minigun" != "uav" && "airdrop_sentry_minigun" != "airdrop" && "airdrop_sentry_minigun" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "predator_missile" ) && "predator_missile" != "uav" && "predator_missile" != "airdrop" && "predator_missile" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) && "precision_airstrike" != "uav" && "precision_airstrike" != "airdrop" && "precision_airstrike" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) && "harrier_airstrike" != "uav" && "harrier_airstrike" != "airdrop" && "harrier_airstrike" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "helicopter" ) && "helicopter" != "uav" && "helicopter" != "airdrop" && "helicopter" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) && "airdrop_mega" != "uav" && "airdrop_mega" != "airdrop" && "airdrop_mega" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) && "helicopter_flares" != "uav" && "helicopter_flares" != "airdrop" && "helicopter_flares" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) && "stealth_airstrike" != "uav" && "stealth_airstrike" != "airdrop" && "stealth_airstrike" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) && "helicopter_minigun" != "uav" && "helicopter_minigun" != "airdrop" && "helicopter_minigun" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "ac130" ) && "ac130" != "uav" && "ac130" != "airdrop" && "ac130" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "emp" ) && "emp" != "uav" && "emp" != "airdrop" && "emp" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
if ( getplayerdata( "killstreakUnlocked" , "nuke" ) && "nuke" != "uav" && "nuke" != "airdrop" && "nuke" != "predator_missile" )
{
setLocalVarInt "ui_unlockedStreaks" ( localvarint( "ui_unlockedStreaks" ) + 1 );
}
setLocalVarInt "ui_numTokens" ( 0 );
setLocalVarString "ui_nextToken" ( "" );
if ( isitemunlocked( "token_1" ) )
{
setLocalVarInt "ui_numTokens" ( 1 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_1" );
}
}
if ( isitemunlocked( "token_2" ) )
{
setLocalVarInt "ui_numTokens" ( 2 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_2" );
}
}
if ( isitemunlocked( "token_3" ) )
{
setLocalVarInt "ui_numTokens" ( 3 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_3" );
}
}
if ( isitemunlocked( "token_4" ) )
{
setLocalVarInt "ui_numTokens" ( 4 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_4" );
}
}
if ( isitemunlocked( "token_5" ) )
{
setLocalVarInt "ui_numTokens" ( 5 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_5" );
}
}
if ( isitemunlocked( "token_6" ) )
{
setLocalVarInt "ui_numTokens" ( 6 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_6" );
}
}
if ( isitemunlocked( "token_7" ) )
{
setLocalVarInt "ui_numTokens" ( 7 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_7" );
}
}
if ( isitemunlocked( "token_8" ) )
{
setLocalVarInt "ui_numTokens" ( 8 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_8" );
}
}
if ( isitemunlocked( "token_9" ) )
{
setLocalVarInt "ui_numTokens" ( 9 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_9" );
}
}
if ( isitemunlocked( "token_10" ) )
{
setLocalVarInt "ui_numTokens" ( 10 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_10" );
}
}
if ( isitemunlocked( "token_11" ) )
{
setLocalVarInt "ui_numTokens" ( 11 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_11" );
}
}
if ( isitemunlocked( "token_12" ) )
{
setLocalVarInt "ui_numTokens" ( 12 );
}
else
{
if ( localvarstring( "ui_nextToken" ) == "" )
{
setLocalVarString "ui_nextToken" ( "token_12" );
}
}
setLocalVarInt "ui_numTokens" ( max( ( localvarint( "ui_numTokens" ) - localvarint( "ui_unlockedStreaks" ) ) , 0 ) );
setLocalVarBool "ui_buttonFocused" ( 0 );
focusfirst;
if ( int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 0 ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 1 ) , 4 ) ) && int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 0 ) , 4 ) ) )
{
setPlayerData( "killstreaks" , 1 , "none" ) ;;
}
if ( int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 0 ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 2 ) , 4 ) ) && int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 0 ) , 4 ) ) )
{
setPlayerData( "killstreaks" , 2 , "none" ) ;;
}
if ( int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 1 ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 2 ) , 4 ) ) && int( tablelookup( "mp/killstreakTable.csv" , 1 , getplayerdata( "killstreaks" , 1 ) , 4 ) ) )
{
setPlayerData( "killstreaks" , 2 , "none" ) ;;
}
setLocalVarInt "ui_numStreaks" ( 0 );
setLocalVarString "ui_streak1Name" ( getplayerdata( "killstreaks" , 0 ) );
setLocalVarString "ui_streak2Name" ( getplayerdata( "killstreaks" , 1 ) );
setLocalVarString "ui_streak3Name" ( getplayerdata( "killstreaks" , 2 ) );
if ( getplayerdata( "featureNew" , "cas" ) )
{
setPlayerData( "featureNew" , "cas" , "false" );
open "popup_welcometocas";
}
if ( localvarstring( "ui_streak1Name" ) != "none" )
{
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
}
if ( localvarstring( "ui_streak2Name" ) != "none" )
{
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
}
if ( localvarstring( "ui_streak3Name" ) != "none" )
{
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
}
if ( !localvarint( "ui_numTokens" ) )
{
setPlayerData( "featureNew" , "token_1" , "false" );
setPlayerData( "featureNew" , "token_2" , "false" );
setPlayerData( "featureNew" , "token_3" , "false" );
setPlayerData( "featureNew" , "token_4" , "false" );
setPlayerData( "featureNew" , "token_5" , "false" );
setPlayerData( "featureNew" , "token_6" , "false" );
setPlayerData( "featureNew" , "token_7" , "false" );
setPlayerData( "featureNew" , "token_8" , "false" );
setPlayerData( "featureNew" , "token_9" , "false" );
setPlayerData( "featureNew" , "token_10" , "false" );
setPlayerData( "featureNew" , "token_11" , "false" );
setPlayerData( "featureNew" , "token_12" , "false" );
}
else
{
open "popup_tokensavailable";
}
setLocalVarString "ui_selected_ref" ( "uav" );
}
onEsc
{
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || localvarstring( "ui_streak2Name" ) == "none" || localvarstring( "ui_streak3Name" ) == "none" )
{
open "popup_needstreaks";
}
else
{
setPlayerData( "killstreaks" , 0 , "localVarString" ( "ui_streak1Name" ) );
; setPlayerData( "killstreaks" , 1 , "localVarString" ( "ui_streak2Name" ) );
; setPlayerData( "killstreaks" , 2 , "localVarString" ( "ui_streak3Name" ) );
; execnow "uploadstats";
close self;
}
}
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 0 18 640 46 1 1
decoration
visible 1
forecolor 1 1 1 1
textfont 9
textalign 4
textscale 0.45
text "@MENU_KILLSTREAK_REWARDS_CAPS"
}
itemDef
{
rect 0 46 640 338 4 1
decoration
visible 1
style 3
forecolor 0.45 0.45 0.45 0.3
background "white"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -32 14 32 32 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 14 640 32 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_t"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 640 14 32 32 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_tr"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 640 46 32 338 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_r"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 640 384 32 32 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_br"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect 0 384 640 32 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_b"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -32 384 32 32 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_bl"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -32 46 32 338 4 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "drop_shadow_l"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -320 46 320 338 3 1
decoration
visible 1
style 3
forecolor 0.2 0.2 0.2 1
background "white"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -320 46 320 70 3 1
decoration
visible 1
forecolor 1 0.8 0.3 1
disablecolor 1 1 1 0.85
textfont 9
textalign 4
textalignx 12
textscale 0.5
visible when ( 1 )
disabled when ( !getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 2 ) )
}
itemDef
{
rect -320 46 320 70 3 1
decoration
visible 1
forecolor 1 1 1 0.65
textfont 3
textalign 4
textalignx 12
textaligny 20
textscale 0.375
exp text ( locstring( "@MPUI_N_KILLSTREAK" , int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
}
itemDef
{
rect -308 98 228 18 3 1
decoration
autowrapped
visible 1
forecolor 1 1 1 1
type 21
textfont 3
textalign 12
textscale 0.375
exp forecolor a ( 0.65 + ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) )
visible when ( ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) || 1 )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 3 ) )
}
itemDef
{
rect -76 54 64 64 3 1
decoration
visible 1
style 3
forecolor 1 1 1 1
textscale 0.55
visible when ( !( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) && localvarstring( "ui_selected_ref" ) != "" )
exp material ( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 14 ) + "_locked" )
}
itemDef
{
rect -76 54 64 64 3 1
decoration
visible 1
style 3
forecolor 1 1 1 1
textscale 0.55
visible when ( ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) )
exp material ( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 14 ) )
}
itemDef
{
rect -320 46 320 78 3 1
decoration
autowrapped
visible 1
forecolor 0.85 0.4 0.4 1
textfont 3
textalign 12
textalignx 12
textaligny 18
textscale 0.375
visible when ( ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) )
exp text ( localvarstring( "ui_cas_hint" ) )
}
itemDef
{
rect -320 46 320 78 3 1
decoration
visible 1
forecolor 0.55 0.93 0.56 1
textfont 3
textalign 12
textalignx 12
textaligny 18
textscale 0.375
visible when ( !( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) && localvarint( "ui_numTokens" ) )
exp text ( "@PLATFORM_UNLOCK_KILLSTREAK" )
}
itemDef
{
rect -320 46 320 78 3 1
decoration
autowrapped
visible 1
forecolor 0.85 0.4 0.4 1
textfont 3
textalign 12
textalignx 12
textaligny 18
textscale 0.375
visible when ( localvarstring( "ui_conflicting_ref" ) != "" && ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) )
exp text ( locstring( "@MPUI_ATTACHMENT_INCOMPATIBLE" , "@" + tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_conflicting_ref" ) , 2 ) ) )
}
itemDef
{
rect 0 46 220 20 1 1
visible 1
forecolor 1 1 1 1
textfont 3
textalign 5
textaligny 1
textscale 0.375
visible when ( ( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) || ( !( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) && !localvarint( "ui_numTokens" ) ) || !localvarbool( "ui_buttonFocused" ) )
exp text ( "@PLATFORM_UI_CLEAR_KILLSTREAKS" )
action
{
setLocalVarInt "ui_numStreaks" ( 0 );
setLocalVarString "ui_streak1Name" ( "none" );
setLocalVarString "ui_streak2Name" ( "none" );
setLocalVarString "ui_streak3Name" ( "none" );
}
}
itemDef
{
rect 0 46 220 20 1 1
decoration
visible 1
forecolor 1 1 1 1
textfont 3
textalign 5
textaligny 1
textscale 0.375
visible when ( !( isitemunlocked( localvarstring( "ui_selected_ref" ) ) && getplayerdata( "killstreakUnlocked" , localvarstring( "ui_selected_ref" ) ) ) && localvarint( "ui_numTokens" ) && localvarbool( "ui_buttonFocused" ) )
exp text ( "@PLATFORM_UNLOCK_KILLSTREAK" )
}
itemDef
{
rect 0 74 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && 0 )
}
itemDef
{
rect 0 74 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "uav" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "uav" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "uav" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "uav" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "uav" )
{
setLocalVarString "ui_streak2Name" ( "uav" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "uav" && localvarstring( "ui_streak2Name" ) != "uav" )
{
setLocalVarString "ui_streak3Name" ( "uav" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "uav" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 74 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 74 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 74 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) )
}
itemDef
{
rect 0 74 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 74 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 74 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) )
}
itemDef
{
rect 0 74 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) )
}
itemDef
{
rect 0 74 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) )
}
itemDef
{
rect 0 74 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "uav" || localvarstring( "ui_streak2Name" ) == "uav" || localvarstring( "ui_streak3Name" ) == "uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "uav" , 4 ) ) ) ) && ( isitemunlocked( "uav" ) && getplayerdata( "killstreakUnlocked" , "uav" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 94 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && 0 )
}
itemDef
{
rect 0 94 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "airdrop" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "airdrop" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "airdrop" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "airdrop" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "airdrop" )
{
setLocalVarString "ui_streak2Name" ( "airdrop" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "airdrop" && localvarstring( "ui_streak2Name" ) != "airdrop" )
{
setLocalVarString "ui_streak3Name" ( "airdrop" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "airdrop" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 94 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 94 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 94 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) )
}
itemDef
{
rect 0 94 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 94 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 94 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) )
}
itemDef
{
rect 0 94 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) )
}
itemDef
{
rect 0 94 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) )
}
itemDef
{
rect 0 94 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop" || localvarstring( "ui_streak2Name" ) == "airdrop" || localvarstring( "ui_streak3Name" ) == "airdrop" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop" , 4 ) ) ) ) && ( isitemunlocked( "airdrop" ) && getplayerdata( "killstreakUnlocked" , "airdrop" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 114 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && 0 )
}
itemDef
{
rect 0 114 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "counter_uav" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "counter_uav" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "counter_uav" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "counter_uav" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "counter_uav" )
{
setLocalVarString "ui_streak2Name" ( "counter_uav" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "counter_uav" && localvarstring( "ui_streak2Name" ) != "counter_uav" )
{
setLocalVarString "ui_streak3Name" ( "counter_uav" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "counter_uav" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 114 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 114 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 114 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) )
}
itemDef
{
rect 0 114 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 114 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 114 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) )
}
itemDef
{
rect 0 114 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) )
}
itemDef
{
rect 0 114 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) )
}
itemDef
{
rect 0 114 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "counter_uav" || localvarstring( "ui_streak2Name" ) == "counter_uav" || localvarstring( "ui_streak3Name" ) == "counter_uav" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "counter_uav" , 4 ) ) ) ) && ( isitemunlocked( "counter_uav" ) && getplayerdata( "killstreakUnlocked" , "counter_uav" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 134 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && 0 )
}
itemDef
{
rect 0 134 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "airdrop_sentry_minigun" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "airdrop_sentry_minigun" )
{
setLocalVarString "ui_streak2Name" ( "airdrop_sentry_minigun" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "airdrop_sentry_minigun" && localvarstring( "ui_streak2Name" ) != "airdrop_sentry_minigun" )
{
setLocalVarString "ui_streak3Name" ( "airdrop_sentry_minigun" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "airdrop_sentry_minigun" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 134 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 134 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 134 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) )
}
itemDef
{
rect 0 134 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 134 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 134 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) )
}
itemDef
{
rect 0 134 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) )
}
itemDef
{
rect 0 134 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) )
}
itemDef
{
rect 0 134 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak2Name" ) == "airdrop_sentry_minigun" || localvarstring( "ui_streak3Name" ) == "airdrop_sentry_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_sentry_minigun" , 4 ) ) ) ) && ( isitemunlocked( "airdrop_sentry_minigun" ) && getplayerdata( "killstreakUnlocked" , "airdrop_sentry_minigun" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 154 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && 0 )
}
itemDef
{
rect 0 154 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "predator_missile" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "predator_missile" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "predator_missile" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "predator_missile" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "predator_missile" )
{
setLocalVarString "ui_streak2Name" ( "predator_missile" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "predator_missile" && localvarstring( "ui_streak2Name" ) != "predator_missile" )
{
setLocalVarString "ui_streak3Name" ( "predator_missile" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "predator_missile" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 154 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 154 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 154 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) )
}
itemDef
{
rect 0 154 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 154 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 154 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) )
}
itemDef
{
rect 0 154 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) )
}
itemDef
{
rect 0 154 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) )
}
itemDef
{
rect 0 154 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "predator_missile" || localvarstring( "ui_streak2Name" ) == "predator_missile" || localvarstring( "ui_streak3Name" ) == "predator_missile" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "predator_missile" , 4 ) ) ) ) && ( isitemunlocked( "predator_missile" ) && getplayerdata( "killstreakUnlocked" , "predator_missile" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 174 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && 0 )
}
itemDef
{
rect 0 174 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "precision_airstrike" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "precision_airstrike" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "precision_airstrike" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "precision_airstrike" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "precision_airstrike" )
{
setLocalVarString "ui_streak2Name" ( "precision_airstrike" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "precision_airstrike" && localvarstring( "ui_streak2Name" ) != "precision_airstrike" )
{
setLocalVarString "ui_streak3Name" ( "precision_airstrike" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "precision_airstrike" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 174 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 174 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 174 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) )
}
itemDef
{
rect 0 174 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 174 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 174 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) )
}
itemDef
{
rect 0 174 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) )
}
itemDef
{
rect 0 174 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) )
}
itemDef
{
rect 0 174 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "precision_airstrike" || localvarstring( "ui_streak2Name" ) == "precision_airstrike" || localvarstring( "ui_streak3Name" ) == "precision_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "precision_airstrike" , 4 ) ) ) ) && ( isitemunlocked( "precision_airstrike" ) && getplayerdata( "killstreakUnlocked" , "precision_airstrike" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 194 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && 0 )
}
itemDef
{
rect 0 194 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "harrier_airstrike" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "harrier_airstrike" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "harrier_airstrike" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "harrier_airstrike" )
{
setLocalVarString "ui_streak2Name" ( "harrier_airstrike" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "harrier_airstrike" && localvarstring( "ui_streak2Name" ) != "harrier_airstrike" )
{
setLocalVarString "ui_streak3Name" ( "harrier_airstrike" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "harrier_airstrike" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 194 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 194 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 194 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) )
}
itemDef
{
rect 0 194 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 194 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 194 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) )
}
itemDef
{
rect 0 194 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) )
}
itemDef
{
rect 0 194 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) )
}
itemDef
{
rect 0 194 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "harrier_airstrike" || localvarstring( "ui_streak2Name" ) == "harrier_airstrike" || localvarstring( "ui_streak3Name" ) == "harrier_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "harrier_airstrike" , 4 ) ) ) ) && ( isitemunlocked( "harrier_airstrike" ) && getplayerdata( "killstreakUnlocked" , "harrier_airstrike" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 214 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && 0 )
}
itemDef
{
rect 0 214 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "helicopter" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "helicopter" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "helicopter" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "helicopter" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "helicopter" )
{
setLocalVarString "ui_streak2Name" ( "helicopter" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "helicopter" && localvarstring( "ui_streak2Name" ) != "helicopter" )
{
setLocalVarString "ui_streak3Name" ( "helicopter" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "helicopter" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 214 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 214 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 214 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) )
}
itemDef
{
rect 0 214 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 214 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 214 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) )
}
itemDef
{
rect 0 214 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) )
}
itemDef
{
rect 0 214 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) )
}
itemDef
{
rect 0 214 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter" || localvarstring( "ui_streak2Name" ) == "helicopter" || localvarstring( "ui_streak3Name" ) == "helicopter" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter" , 4 ) ) ) ) && ( isitemunlocked( "helicopter" ) && getplayerdata( "killstreakUnlocked" , "helicopter" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 234 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && 0 )
}
itemDef
{
rect 0 234 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "airdrop_mega" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "airdrop_mega" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "airdrop_mega" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "airdrop_mega" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "airdrop_mega" )
{
setLocalVarString "ui_streak2Name" ( "airdrop_mega" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "airdrop_mega" && localvarstring( "ui_streak2Name" ) != "airdrop_mega" )
{
setLocalVarString "ui_streak3Name" ( "airdrop_mega" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "airdrop_mega" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 234 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 234 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 234 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) )
}
itemDef
{
rect 0 234 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 234 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 234 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) )
}
itemDef
{
rect 0 234 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) )
}
itemDef
{
rect 0 234 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) )
}
itemDef
{
rect 0 234 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "airdrop_mega" || localvarstring( "ui_streak2Name" ) == "airdrop_mega" || localvarstring( "ui_streak3Name" ) == "airdrop_mega" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "airdrop_mega" , 4 ) ) ) ) && ( isitemunlocked( "airdrop_mega" ) && getplayerdata( "killstreakUnlocked" , "airdrop_mega" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 254 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && 0 )
}
itemDef
{
rect 0 254 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "helicopter_flares" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "helicopter_flares" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "helicopter_flares" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "helicopter_flares" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "helicopter_flares" )
{
setLocalVarString "ui_streak2Name" ( "helicopter_flares" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "helicopter_flares" && localvarstring( "ui_streak2Name" ) != "helicopter_flares" )
{
setLocalVarString "ui_streak3Name" ( "helicopter_flares" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "helicopter_flares" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 254 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 254 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 254 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) )
}
itemDef
{
rect 0 254 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 254 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 254 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) )
}
itemDef
{
rect 0 254 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) )
}
itemDef
{
rect 0 254 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) )
}
itemDef
{
rect 0 254 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_flares" || localvarstring( "ui_streak2Name" ) == "helicopter_flares" || localvarstring( "ui_streak3Name" ) == "helicopter_flares" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_flares" , 4 ) ) ) ) && ( isitemunlocked( "helicopter_flares" ) && getplayerdata( "killstreakUnlocked" , "helicopter_flares" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 274 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && 0 )
}
itemDef
{
rect 0 274 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "stealth_airstrike" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "stealth_airstrike" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "stealth_airstrike" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "stealth_airstrike" )
{
setLocalVarString "ui_streak2Name" ( "stealth_airstrike" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "stealth_airstrike" && localvarstring( "ui_streak2Name" ) != "stealth_airstrike" )
{
setLocalVarString "ui_streak3Name" ( "stealth_airstrike" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "stealth_airstrike" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 274 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 274 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 274 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) )
}
itemDef
{
rect 0 274 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 274 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 274 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) )
}
itemDef
{
rect 0 274 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) )
}
itemDef
{
rect 0 274 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) )
}
itemDef
{
rect 0 274 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "stealth_airstrike" || localvarstring( "ui_streak2Name" ) == "stealth_airstrike" || localvarstring( "ui_streak3Name" ) == "stealth_airstrike" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "stealth_airstrike" , 4 ) ) ) ) && ( isitemunlocked( "stealth_airstrike" ) && getplayerdata( "killstreakUnlocked" , "stealth_airstrike" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 294 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && 0 )
}
itemDef
{
rect 0 294 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "helicopter_minigun" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "helicopter_minigun" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "helicopter_minigun" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "helicopter_minigun" )
{
setLocalVarString "ui_streak2Name" ( "helicopter_minigun" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "helicopter_minigun" && localvarstring( "ui_streak2Name" ) != "helicopter_minigun" )
{
setLocalVarString "ui_streak3Name" ( "helicopter_minigun" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "helicopter_minigun" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 294 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 294 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 294 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) )
}
itemDef
{
rect 0 294 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 294 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 294 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) )
}
itemDef
{
rect 0 294 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) )
}
itemDef
{
rect 0 294 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) )
}
itemDef
{
rect 0 294 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "helicopter_minigun" || localvarstring( "ui_streak2Name" ) == "helicopter_minigun" || localvarstring( "ui_streak3Name" ) == "helicopter_minigun" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "helicopter_minigun" , 4 ) ) ) ) && ( isitemunlocked( "helicopter_minigun" ) && getplayerdata( "killstreakUnlocked" , "helicopter_minigun" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 314 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && 0 )
}
itemDef
{
rect 0 314 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "ac130" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "ac130" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "ac130" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "ac130" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "ac130" )
{
setLocalVarString "ui_streak2Name" ( "ac130" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "ac130" && localvarstring( "ui_streak2Name" ) != "ac130" )
{
setLocalVarString "ui_streak3Name" ( "ac130" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "ac130" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 314 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 314 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 314 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) )
}
itemDef
{
rect 0 314 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 314 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 314 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) )
}
itemDef
{
rect 0 314 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) )
}
itemDef
{
rect 0 314 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) )
}
itemDef
{
rect 0 314 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "ac130" || localvarstring( "ui_streak2Name" ) == "ac130" || localvarstring( "ui_streak3Name" ) == "ac130" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "ac130" , 4 ) ) ) ) && ( isitemunlocked( "ac130" ) && getplayerdata( "killstreakUnlocked" , "ac130" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 334 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && 0 )
}
itemDef
{
rect 0 334 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "emp" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "emp" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "emp" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "emp" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "emp" )
{
setLocalVarString "ui_streak2Name" ( "emp" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "emp" && localvarstring( "ui_streak2Name" ) != "emp" )
{
setLocalVarString "ui_streak3Name" ( "emp" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "emp" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 334 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 334 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 334 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) )
}
itemDef
{
rect 0 334 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 334 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 334 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) )
}
itemDef
{
rect 0 334 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) )
}
itemDef
{
rect 0 334 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) )
}
itemDef
{
rect 0 334 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "emp" || localvarstring( "ui_streak2Name" ) == "emp" || localvarstring( "ui_streak3Name" ) == "emp" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "emp" , 4 ) ) ) ) && ( isitemunlocked( "emp" ) && getplayerdata( "killstreakUnlocked" , "emp" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 354 220 20 1 1
decoration
visible 1
style 3
forecolor 0.8 0.6 0.1 1
background "ks_button_selected_bar"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && 0 )
}
itemDef
{
rect 0 354 220 20 1 1
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "ks_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -32
textscale 0.375
visible when ( 1 )
disabled when ( ( !( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) ) ) ) )
exp text ( "@" + tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 2 ) )
action
{
play "mouse_click";
if ( ( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) )
{
if ( localvarstring( "ui_streak1Name" ) == "nuke" )
{
setLocalVarString "ui_streak1Name" ( "none" );
}
if ( localvarstring( "ui_streak2Name" ) == "nuke" )
{
setLocalVarString "ui_streak2Name" ( "none" );
}
if ( localvarstring( "ui_streak3Name" ) == "nuke" )
{
setLocalVarString "ui_streak3Name" ( "none" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) - 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && localvarint( "ui_numStreaks" ) < 3 && !( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) ) )
{
if ( localvarstring( "ui_streak1Name" ) == "none" )
{
setLocalVarString "ui_streak1Name" ( "nuke" );
}
if ( localvarstring( "ui_streak2Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "nuke" )
{
setLocalVarString "ui_streak2Name" ( "nuke" );
}
if ( localvarstring( "ui_streak3Name" ) == "none" && localvarstring( "ui_streak1Name" ) != "nuke" && localvarstring( "ui_streak2Name" ) != "nuke" )
{
setLocalVarString "ui_streak3Name" ( "nuke" );
}
setLocalVarInt "ui_numStreaks" ( localvarint( "ui_numStreaks" ) + 1 );
play "mouse_click";
setItemColor self backcolor 0 0 0 1;
}
else
{
if ( !( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) )
{
open "popup_unlockconfirm";
}
}
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak2Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) && localvarstring( "ui_streak3Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_streak3Name" ) );
setLocalVarString "ui_streak3Name" ( localvarstring( "ui_tempStreak" ) );
}
if ( localvarstring( "ui_streak1Name" ) == "none" || ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) < int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) && localvarstring( "ui_streak2Name" ) != "none" ) )
{
setLocalVarString "ui_tempStreak" ( localvarstring( "ui_streak1Name" ) );
setLocalVarString "ui_streak1Name" ( localvarstring( "ui_streak2Name" ) );
setLocalVarString "ui_streak2Name" ( localvarstring( "ui_tempStreak" ) );
}
}
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 );
setLocalVarString "ui_selected_ref" ( "nuke" );
setLocalVarString "ui_cas_hint" ( "" );
setLocalVarBool "ui_buttonFocused" ( 1 );
if ( ( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) )
{
setItemColor self backcolor 0 0 0 1;
}
if ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) )
{
setLocalVarString "ui_cas_hint" ( "@MPUI_3_KILLSTREAKS_SELECTED" );
}
setLocalVarString "ui_conflicting_ref" ( "" );
if ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak1Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak2Name" ) );
}
if ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_selected_ref" ) , 4 ) ) ) )
{
setLocalVarString "ui_conflicting_ref" ( localvarstring( "ui_streak3Name" ) );
}
if ( localvarint( "ui_numStreaks" ) == 3 )
{
setLocalVarString "ui_conflicting_ref" ( "" );
}
if ( ( !( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && !localvarint( "ui_numTokens" ) ) || ( ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && ( ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) ) ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
setLocalVarBool "ui_buttonFocused" ( 0 );
}
}
itemDef
{
rect 0 354 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) )
disabled when ( ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 );
if ( ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) ) || ( localvarint( "ui_numStreaks" ) == 3 && !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) ) )
{
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
leaveFocus
{
setItemColor self backcolor 1 1 1 0;
setLocalVarBool "ui_popupAButton" ( 0 );
}
}
itemDef
{
rect 0 354 220 20 1 1
decoration
visible 1
group "mw2_popup_button"
style 1
forecolor 0.6 0.55 0.55 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 4
textalignx 24
textscale 0.375
visible when ( !( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) )
action
{
play "mouse_click";
}
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 0 354 20 20 1 1
decoration
visible 1
style 3
forecolor 0.6 0.55 0.55 0.5
background "ks_button_check_bg"
textscale 0.55
visible when ( !( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) )
}
itemDef
{
rect 0 354 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.25
background "ks_button_check_locked"
textscale 0.55
visible when ( !( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && !localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 354 20 20 1 1
decoration
visible 1
style 3
forecolor 0.55 0.93 0.56 1
background "ks_button_check_locked"
textscale 0.55
exp forecolor a ( ( ( ( sin( milliseconds( ) / 150 ) * 0.5 + 0.5 ) * 0.75 + 0.25 ) * ( localvarint( "ui_numTokens" ) > 0 ) ) )
visible when ( !( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && localvarint( "ui_numTokens" ) )
}
itemDef
{
rect 0 354 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) )
}
itemDef
{
rect 0 354 20 20 1 1
decoration
visible 1
style 3
forecolor 0 0 0 1
background "ks_button_check_bg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) )
}
itemDef
{
rect 0 354 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 1
background "ks_button_check_fg"
textscale 0.55
visible when ( ( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) )
}
itemDef
{
rect 0 354 20 20 1 1
decoration
visible 1
style 3
forecolor 1 1 1 0.65
background "ks_button_check_x"
textscale 0.55
visible when ( ( !( localvarstring( "ui_streak1Name" ) == "nuke" || localvarstring( "ui_streak2Name" ) == "nuke" || localvarstring( "ui_streak3Name" ) == "nuke" ) && ( int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) || int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) == int( tablelookup( "mp/killstreakTable.csv" , 1 , "nuke" , 4 ) ) ) ) && ( isitemunlocked( "nuke" ) && getplayerdata( "killstreakUnlocked" , "nuke" ) ) && ( localvarint( "ui_numStreaks" ) != 3 ) )
}
itemDef
{
rect 0 54 220 20 1 1
decoration
visible 1
forecolor 1 1 1 1
textfont 1
textalign 10
textalignx -14
textscale 0.28
exp rect y ( getfocuseditemy( ) )
visible when ( ( localvarbool( "ui_popupAButton" ) && !localvarint( "ui_centerPopup" ) ) )
}
itemDef
{
rect -280 214 74 74 3 1
decoration
visible 1
style 3
forecolor 0 0 0 0.15
background "white"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -280 214 74 74 3 1
decoration
visible 1
style 3
forecolor 0 0 0 0.35
background "gradient_inset_rect"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -266 220 48 48 3 1
decoration
visible 1
style 3
forecolor 1 1 1 1
textscale 0.55
exp forecolor a ( min( max( ( milliseconds( ) - localvarint( "ui_update_time" ) ) / 500 , 0 ) , 1 ) )
visible when ( 1 )
exp material ( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 14 ) )
}
itemDef
{
rect -266 220 48 48 3 1
decoration
visible 1
forecolor 1 1 1 0.85
textfont 3
textalign 13
textaligny 16
textscale 0.375
exp forecolor a ( min( max( ( milliseconds( ) - localvarint( "ui_update_time" ) ) / 220 , 0 ) , 1 ) * 0.85 )
visible when ( 1 )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak1Name" ) , 4 ) ) ) )
}
itemDef
{
rect -196 214 74 74 3 1
decoration
visible 1
style 3
forecolor 0 0 0 0.15
background "white"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -196 214 74 74 3 1
decoration
visible 1
style 3
forecolor 0 0 0 0.35
background "gradient_inset_rect"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -182 220 48 48 3 1
decoration
visible 1
style 3
forecolor 1 1 1 1
textscale 0.55
exp forecolor a ( min( max( ( milliseconds( ) - localvarint( "ui_update_time" ) ) / 500 , 0 ) , 1 ) )
visible when ( 1 )
exp material ( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 14 ) )
}
itemDef
{
rect -182 220 48 48 3 1
decoration
visible 1
forecolor 1 1 1 0.85
textfont 3
textalign 13
textaligny 16
textscale 0.375
exp forecolor a ( min( max( ( milliseconds( ) - localvarint( "ui_update_time" ) ) / 220 , 0 ) , 1 ) * 0.85 )
visible when ( 1 )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak2Name" ) , 4 ) ) ) )
}
itemDef
{
rect -112 214 74 74 3 1
decoration
visible 1
style 3
forecolor 0 0 0 0.15
background "white"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -112 214 74 74 3 1
decoration
visible 1
style 3
forecolor 0 0 0 0.35
background "gradient_inset_rect"
textscale 0.55
visible when ( 1 )
}
itemDef
{
rect -98 220 48 48 3 1
decoration
visible 1
style 3
forecolor 1 1 1 1
textscale 0.55
exp forecolor a ( min( max( ( milliseconds( ) - localvarint( "ui_update_time" ) ) / 500 , 0 ) , 1 ) )
visible when ( 1 )
exp material ( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 14 ) )
}
itemDef
{
rect -98 220 48 48 3 1
decoration
visible 1
forecolor 1 1 1 0.85
textfont 3
textalign 13
textaligny 16
textscale 0.375
exp forecolor a ( min( max( ( milliseconds( ) - localvarint( "ui_update_time" ) ) / 220 , 0 ) , 1 ) * 0.85 )
visible when ( 1 )
exp text ( locstring( "@MPUI_N_KILLS" , int( tablelookup( "mp/killstreakTable.csv" , 1 , localvarstring( "ui_streak3Name" ) , 4 ) ) ) )
}
itemDef
{
rect -320 288 320 20 3 1
decoration
visible 1
forecolor 0.85 0.85 0.85 1
textfont 9
textalign 5
textscale 0.5833
exp forecolor g ( 0.4 + ( localvarint( "ui_numStreaks" ) == 3 ) * 0.45 )
exp forecolor b ( 0.4 + ( localvarint( "ui_numStreaks" ) == 3 ) * 0.45 )
visible when ( 1 )
exp text ( locstring( "@MPUI_N_SLASH_N_SELECTED" , localvarint( "ui_numStreaks" ) , 3 ) )
}
itemDef
{
rect -272 0 0 18 3 1
decoration
visible 1
style 1
forecolor 1 1 1 1
background "white"
textfont 3
textalign 4
textalignx 20
textscale 0.375
exp text ( getpartystatus( ) )
}
itemDef
{
rect -22 26 20 20 3 1
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.55 0.93 0.56 1
background "ks_button_check_unlocked"
textfont 9
textalign 10
textalignx -22
textscale 0.3333
exp forecolor a ( min( 0.25 , max( 0 , sin( milliseconds( ) / 700 ) ) ) * 4 )
exp backcolor a ( min( 0.25 , max( 0 , sin( milliseconds( ) / 700 ) ) ) * 4 )
visible when ( 1 )
exp text ( locstring( "@MPUI_N_SLASH_N_UNLOCKED" , 3 + localvarint( "ui_unlockedStreaks" ) , 15 ) )
}
itemDef
{
rect -22 26 20 20 3 1
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.55 0.93 0.56 1
background "ks_button_check_unlocked"
textfont 9
textalign 10
textalignx -22
textscale 0.3333
exp forecolor a ( ( !localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
exp backcolor a ( ( !localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
visible when ( ( int( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_nextToken" ) , 2 ) - levelforexperience( getplayerdata( "experience" ) ) ) ) > 1 )
exp text ( locstring( "@MPUI_UNLOCK_IN_N_LEVELS" , ( int( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_nextToken" ) , 2 ) - levelforexperience( getplayerdata( "experience" ) ) ) ) ) )
}
itemDef
{
rect -22 26 20 20 3 1
decoration
visible 1
style 1
forecolor 1 1 1 1
backcolor 0.55 0.93 0.56 1
background "ks_button_check_unlocked"
textfont 9
textalign 10
textalignx -22
textscale 0.3333
text "@MPUI_UNLOCK_IN_1_LEVEL"
exp forecolor a ( ( !localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
exp backcolor a ( ( !localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
visible when ( ( int( tablelookup( "mp/unlockTable.csv" , 0 , localvarstring( "ui_nextToken" ) , 2 ) - levelforexperience( getplayerdata( "experience" ) ) ) ) == 1 )
}
itemDef
{
rect -22 26 20 20 3 1
decoration
visible 1
style 1
forecolor 0.55 0.93 0.56 1
backcolor 0.55 0.93 0.56 1
background "ks_button_check_unlocked"
textfont 9
textalign 10
textalignx -22
textscale 0.3333
text "@MPUI_UNLOCK_AVAILABLE"
exp forecolor a ( ( localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
exp backcolor a ( ( localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
visible when ( localvarint( "ui_numTokens" ) == 1 )
}
itemDef
{
rect -22 26 20 20 3 1
decoration
visible 1
style 1
forecolor 0.55 0.93 0.56 1
backcolor 0.55 0.93 0.56 1
background "ks_button_check_unlocked"
textfont 9
textalign 10
textalignx -22
textscale 0.3333
exp forecolor a ( ( localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
exp backcolor a ( ( localvarint( "ui_numTokens" ) ) * min( 0.25 , max( 0 , 0 - sin( milliseconds( ) / 700 ) ) ) * 4 )
visible when ( localvarint( "ui_numTokens" ) > 1 )
exp text ( locstring( "@MPUI_N_UNLOCKS_AVAILABLE" , localvarint( "ui_numTokens" ) ) )
}
itemDef
{
rect -64 -20 336 20 1 3
visible 1
group "mw2_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -60
textscale 0.375
text "@PLATFORM_BACK_CAPS"
visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS" )
action
{
play "mouse_click";
play "mouse_click";
"escape" self;
}
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 );
}
leaveFocus
{
setItemColor self backcolor 0 0 0 "0.0";
setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" );
setLocalVarBool "ui_menuAButton" ( 0 );
}
}
itemDef
{
rect -64 -20 336 20 1 3
visible 1
group "mw2_button"
style 1
forecolor 1 1 1 1
disablecolor 0.6 0.55 0.55 1
background "menu_button_selection_bar"
type 1
textfont 3
textalign 6
textalignx -60
textscale 0.375
text "@PLATFORM_BACK_CAPS"
visible when ( "@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS" )
action
{
play "mouse_click";
play "mouse_click";
open "popup_summary";
}
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 );
}
leaveFocus
{
setItemColor self backcolor 0 0 0 "0.0";
setLocalVarString "ui_hint_text" ( "@NULL_EMPTY" );
setLocalVarBool "ui_menuAButton" ( 0 );
}
}
}
}