From bc4b43d87180b25d4ab0f633999f15aa197f7f14 Mon Sep 17 00:00:00 2001 From: diamante0018 Date: Thu, 9 Jan 2025 11:45:08 +0100 Subject: [PATCH] init --- .../iw4x_code_post_gfx_mp.str | 34 + iw4x_code_post_gfx_mp | 1 + mp/playerdata.def | 9451 +++++++++++++++++ ui_mp/auconfirm.menu | 293 + ui_mp/cac_popup.menu | 1394 +++ ui_mp/changelog.menu | 162 + ui_mp/connect.menu | 228 + ui_mp/controls_multi.menu | 453 + ui_mp/createfavorite_popmenu.menu | 314 + ui_mp/createserver.menu | 829 ++ ui_mp/dpad_hd.menu | 150 + ui_mp/filter_popmenu.menu | 540 + ui_mp/hostchangewarning.menu | 311 + ui_mp/hud_fullscreen.menu | 184 + ui_mp/iw4x_credits.menu | 179 + ui_mp/leavelobbywarning.menu | 312 + ui_mp/main_text.menu | 970 ++ ui_mp/menu_first_launch.menu | 227 + ui_mp/menu_online_barracks.menu | 1313 +++ ui_mp/menu_xboxlive_lobby.menu | 1748 +++ ui_mp/menu_xboxlive_privatelobby.menu | 12 + ui_mp/minimap_fullscreen.menu | 156 + ui_mp/mod_download_popmenu.menu | 320 + ui_mp/mods_menu.menu | 407 + ui_mp/onlineupdate.menu | 251 + ui_mp/patch_mp_menus.txt | 65 + ui_mp/pc_join_unranked.menu | 889 ++ ui_mp/pc_options_actions.menu | 1022 ++ ui_mp/pc_options_advanced_video.menu | 1004 ++ ui_mp/pc_options_audio.menu | 909 ++ ui_mp/pc_options_controls.menu | 899 ++ ui_mp/pc_options_game.menu | 986 ++ ui_mp/pc_options_gamepad.menu | 1200 +++ ui_mp/pc_options_look.menu | 649 ++ ui_mp/pc_options_movement.menu | 969 ++ ui_mp/pc_options_multi.menu | 1153 ++ ui_mp/pc_options_video.menu | 1264 +++ ui_mp/pc_theater_menu.menu | 461 + ui_mp/player_popup_party.menu | 281 + ui_mp/player_popup_privatematch.menu | 281 + ui_mp/player_popup_publiclobby.menu | 292 + ui_mp/playerdataread.menu | 73 + ui_mp/popup_cac_assault_primary.menu | 2581 +++++ ui_mp/popup_cac_handgun_secondary.menu | 1626 +++ ui_mp/popup_cac_primary_camo.menu | 2126 ++++ ui_mp/popup_cac_smg_primary.menu | 2008 ++++ ui_mp/popup_cac_sniper_primary.menu | 1817 ++++ ui_mp/popup_cac_weapon_primary.menu | 862 ++ ui_mp/popup_customclan.menu | 249 + ui_mp/popup_customtitle.menu | 249 + ui_mp/popup_friends.menu | 259 + ui_mp/popup_gamesetup.menu | 434 + ui_mp/popup_joinpassword.menu | 249 + ui_mp/popup_playername.menu | 252 + ui_mp/popup_ready.menu | 860 ++ ui_mp/popup_serverpassword.menu | 251 + ui_mp/quickmessage.menu | 128 + ui_mp/resetclass.menu | 157 + ui_mp/scriptmenus/callvote.menu | 420 + ui_mp/scriptmenus/changeclass.menu | 2051 ++++ ui_mp/scriptmenus/changegametype.menu | 487 + ui_mp/scriptmenus/changemap.menu | 488 + ui_mp/scriptmenus/class.menu | 790 ++ ui_mp/scriptmenus/kickplayer.menu | 401 + ui_mp/scriptmenus/onemanarmy.menu | 1921 ++++ ui_mp/scriptmenus/quickcommands.menu | 218 + ui_mp/scriptmenus/quickresponses.menu | 182 + ui_mp/scriptmenus/quickstatements.menu | 200 + ui_mp/scriptmenus/team_marinesopfor.menu | 689 ++ ui_mp/security_increase_popmenu.menu | 315 + ui_mp/serverinfo_popmenu.menu | 575 + ui_mp/settings_bonus_map.menu | 875 ++ ui_mp/settings_gametype.menu | 739 ++ ui_mp/settings_map.menu | 2996 ++++++ ui_mp/startup_messages.menu | 273 + ui_mp/stats_reset.menu | 282 + ui_mp/stats_unlock.menu | 282 + ui_mp/youarehost.menu | 278 + zone_source/iw4x_code_post_gfx_mp.zone | 151 + 79 files changed, 61357 insertions(+) create mode 100644 english/localizedstrings/iw4x_code_post_gfx_mp.str create mode 100644 iw4x_code_post_gfx_mp create mode 100644 mp/playerdata.def create mode 100644 ui_mp/auconfirm.menu create mode 100644 ui_mp/cac_popup.menu create mode 100644 ui_mp/changelog.menu create mode 100644 ui_mp/connect.menu create mode 100644 ui_mp/controls_multi.menu create mode 100644 ui_mp/createfavorite_popmenu.menu create mode 100644 ui_mp/createserver.menu create mode 100644 ui_mp/dpad_hd.menu create mode 100644 ui_mp/filter_popmenu.menu create mode 100644 ui_mp/hostchangewarning.menu create mode 100644 ui_mp/hud_fullscreen.menu create mode 100644 ui_mp/iw4x_credits.menu create mode 100644 ui_mp/leavelobbywarning.menu create mode 100644 ui_mp/main_text.menu create mode 100644 ui_mp/menu_first_launch.menu create mode 100644 ui_mp/menu_online_barracks.menu create mode 100644 ui_mp/menu_xboxlive_lobby.menu create mode 100644 ui_mp/menu_xboxlive_privatelobby.menu create mode 100644 ui_mp/minimap_fullscreen.menu create mode 100644 ui_mp/mod_download_popmenu.menu create mode 100644 ui_mp/mods_menu.menu create mode 100644 ui_mp/onlineupdate.menu create mode 100644 ui_mp/patch_mp_menus.txt create mode 100644 ui_mp/pc_join_unranked.menu create mode 100644 ui_mp/pc_options_actions.menu create mode 100644 ui_mp/pc_options_advanced_video.menu create mode 100644 ui_mp/pc_options_audio.menu create mode 100644 ui_mp/pc_options_controls.menu create mode 100644 ui_mp/pc_options_game.menu create mode 100644 ui_mp/pc_options_gamepad.menu create mode 100644 ui_mp/pc_options_look.menu create mode 100644 ui_mp/pc_options_movement.menu create mode 100644 ui_mp/pc_options_multi.menu create mode 100644 ui_mp/pc_options_video.menu create mode 100644 ui_mp/pc_theater_menu.menu create mode 100644 ui_mp/player_popup_party.menu create mode 100644 ui_mp/player_popup_privatematch.menu create mode 100644 ui_mp/player_popup_publiclobby.menu create mode 100644 ui_mp/playerdataread.menu create mode 100644 ui_mp/popup_cac_assault_primary.menu create mode 100644 ui_mp/popup_cac_handgun_secondary.menu create mode 100644 ui_mp/popup_cac_primary_camo.menu create mode 100644 ui_mp/popup_cac_smg_primary.menu create mode 100644 ui_mp/popup_cac_sniper_primary.menu create mode 100644 ui_mp/popup_cac_weapon_primary.menu create mode 100644 ui_mp/popup_customclan.menu create mode 100644 ui_mp/popup_customtitle.menu create mode 100644 ui_mp/popup_friends.menu create mode 100644 ui_mp/popup_gamesetup.menu create mode 100644 ui_mp/popup_joinpassword.menu create mode 100644 ui_mp/popup_playername.menu create mode 100644 ui_mp/popup_ready.menu create mode 100644 ui_mp/popup_serverpassword.menu create mode 100644 ui_mp/quickmessage.menu create mode 100644 ui_mp/resetclass.menu create mode 100644 ui_mp/scriptmenus/callvote.menu create mode 100644 ui_mp/scriptmenus/changeclass.menu create mode 100644 ui_mp/scriptmenus/changegametype.menu create mode 100644 ui_mp/scriptmenus/changemap.menu create mode 100644 ui_mp/scriptmenus/class.menu create mode 100644 ui_mp/scriptmenus/kickplayer.menu create mode 100644 ui_mp/scriptmenus/onemanarmy.menu create mode 100644 ui_mp/scriptmenus/quickcommands.menu create mode 100644 ui_mp/scriptmenus/quickresponses.menu create mode 100644 ui_mp/scriptmenus/quickstatements.menu create mode 100644 ui_mp/scriptmenus/team_marinesopfor.menu create mode 100644 ui_mp/security_increase_popmenu.menu create mode 100644 ui_mp/serverinfo_popmenu.menu create mode 100644 ui_mp/settings_bonus_map.menu create mode 100644 ui_mp/settings_gametype.menu create mode 100644 ui_mp/settings_map.menu create mode 100644 ui_mp/startup_messages.menu create mode 100644 ui_mp/stats_reset.menu create mode 100644 ui_mp/stats_unlock.menu create mode 100644 ui_mp/youarehost.menu create mode 100644 zone_source/iw4x_code_post_gfx_mp.zone diff --git a/english/localizedstrings/iw4x_code_post_gfx_mp.str b/english/localizedstrings/iw4x_code_post_gfx_mp.str new file mode 100644 index 0000000..89fed72 --- /dev/null +++ b/english/localizedstrings/iw4x_code_post_gfx_mp.str @@ -0,0 +1,34 @@ +// Dumped from fastfile "iw4x_code_post_gfx_mp". +// In their original format the strings might have been separated in multiple files. +VERSION "1" +CONFIG "C:/trees/cod3/cod3/bin/StringEd.cfg" +FILENOTES "" + +REFERENCE MENU_DESC_BUTTON_LAYOUT +LANG_ENGLISH "Change the button layout for the gamepad" + +REFERENCE MENU_DESC_DRAWFPS +LANG_ENGLISH "Draw frames per second" + +REFERENCE MENU_DESC_FPSLABELS +LANG_ENGLISH "Draw viewpos" + +REFERENCE MENU_DESC_LOOK_SENSITIVITY_PRESET +LANG_ENGLISH "Choose different sensitivity presets" + +REFERENCE MENU_DESC_MAXPACKETS +LANG_ENGLISH "Maximum number of packets sent per frame" + +REFERENCE MENU_DESC_SNAPS +LANG_ENGLISH "Snapshot rate" + +REFERENCE MENU_DESC_THUMBSTICK_LAYOUT +LANG_ENGLISH "Change the thumbstick layout for the gamepad" + +REFERENCE MPUI_DESC_ENABLE_VOICE_CHAT +LANG_ENGLISH "Use voice communications" + +REFERENCE MPUI_DESC_FRIENDNOTIFY +LANG_ENGLISH "Should you send status notifications to your friends?" + +ENDMARKER \ No newline at end of file diff --git a/iw4x_code_post_gfx_mp b/iw4x_code_post_gfx_mp new file mode 100644 index 0000000..2d5958d --- /dev/null +++ b/iw4x_code_post_gfx_mp @@ -0,0 +1 @@ +Legalize Nuclear Bombs \ No newline at end of file diff --git a/mp/playerdata.def b/mp/playerdata.def new file mode 100644 index 0000000..d60fb40 --- /dev/null +++ b/mp/playerdata.def @@ -0,0 +1,9451 @@ +// ==================== +// Version 159 +// Calculated checksum did not match checksum in file +// Overriding checksum to match original value +// ==================== +version 159 +{ + checksumoverride 2074144879; + + enum(32) ENUM_0 + { + "cac", + "demolitions", + "sniper", + "challenges", + "hardcore", + "oldschool", + "clantag", + "prestige", + "cas", + "playercard", + "playercard_title", + "playercard_icon", + "token_1", + "token_2", + "token_3", + "token_4", + "token_5", + "token_6", + "token_7", + "token_8", + "token_9", + "token_10", + "token_11", + "token_12", + "ghillie_urban", + "ghillie_arctic", + "ghillie_desert", + "ghillie_forest" + }; + + enum(128) ENUM_1 + { + "none", + "beretta393", + "beretta", + "usp", + "deserteagle", + "deserteaglegold", + "coltanaconda", + "glock", + "ak47", + "mp44", + "g3", + "g36c", + "m16", + "m4", + "fn2000", + "famas", + "fal", + "scar", + "tavor", + "masada", + "mp5k", + "uzi", + "p90", + "kriss", + "ump45", + "pp2000", + "tmp", + "m1014", + "ranger", + "striker", + "aa12", + "model1887", + "spas12", + "rpd", + "sa80", + "aug", + "mg4", + "m240", + "barrett", + "cheytac", + "m21", + "wa2000", + "gl", + "rpg", + "c4", + "c4Death", + "claymore", + "javelin", + "stinger", + "at4", + "m79", + "frag_grenade", + "frag_scavenger_grenade", + "flash_grenade", + "smoke_grenade", + "concussion_grenade", + "emp_grenade", + "riotshield", + "throwingknife", + "m40a3", + "ak47classic", + "ak74u", + "peacekeeper", + "dragunov", + "onemanarmy" + }; + + enum(20) ENUM_2 + { + "none", + "gl", + "reflex", + "silencer", + "acog", + "grip", + "akimbo", + "thermal", + "shotgun", + "heartbeat", + "fmj", + "xmags", + "rof", + "boom", + "eotech", + "tactical" + }; + + enum(512) ENUM_3 + { + "ch_prestige", + "pr_marksman_m16", + "pr_expert_m16", + "pr_marksman_famas", + "pr_expert_famas", + "pr_marksman_tavor", + "pr_expert_tavor", + "pr_marksman_fal", + "pr_expert_fal", + "pr_marksman_ak47", + "pr_expert_ak47", + "pr_marksman_m240", + "pr_expert_m240", + "pr_marksman_m4", + "pr_expert_m4", + "pr_marksman_masada", + "pr_expert_masada", + "pr_marksman_scar", + "pr_expert_scar", + "pr_marksman_fn2000", + "pr_expert_fn2000", + "pr_marksman_cheytac", + "pr_expert_cheytac", + "pr_marksman_barrett", + "pr_expert_barrett", + "pr_marksman_m21", + "pr_expert_m21", + "pr_marksman_kriss", + "pr_expert_kriss", + "pr_marksman_ump45", + "pr_expert_ump45", + "pr_marksman_uzi", + "pr_expert_uzi", + "pr_marksman_p90", + "pr_expert_p90", + "pr_marksman_mp5k", + "pr_expert_mp5k", + "pr_marksman_rpd", + "pr_expert_rpd", + "pr_marksman_sa80", + "pr_expert_sa80", + "pr_marksman_aug", + "pr_expert_aug", + "pr_marksman_tmp", + "pr_expert_tmp", + "pr_marksman_pp2000", + "pr_expert_pp2000", + "pr_marksman_glock", + "pr_expert_glock", + "pr_marksman_beretta393", + "pr_expert_beretta393", + "pr_marksman_striker", + "pr_expert_striker", + "pr_marksman_m1014", + "pr_expert_m1014", + "pr_marksman_spas12", + "pr_expert_spas12", + "pr_marksman_aa12", + "pr_expert_aa12", + "pr_marksman_model1887", + "pr_expert_model1887", + "pr_marksman_ranger", + "pr_expert_ranger", + "pr_marksman_beretta", + "pr_expert_beretta", + "pr_marksman_usp", + "pr_expert_usp", + "pr_marksman_deserteagle", + "pr_expert_deserteagle", + "pr_marksman_coltanaconda", + "pr_expert_coltanaconda", + "pr_marksman_wa2000", + "pr_expert_wa2000", + "pr_marksman_mg4", + "pr_expert_mg4", + "pr_marksman_at4", + "pr_expert_at4", + "pr_marksman_rpg", + "pr_expert_rpg", + "pr_marksman_javelin", + "pr_expert_javelin", + "pr_marksman_m79", + "pr_expert_m79", + "pr_marksman_stinger", + "pr_expert_stinger", + "ch_marksman_m16", + "ch_expert_m16", + "ch_m16_gl", + "ch_m16_reflex", + "ch_m16_silencer", + "ch_m16_acog", + "ch_m16_fmj", + "ch_m16_mastery", + "ch_marksman_famas", + "ch_expert_famas", + "ch_famas_gl", + "ch_famas_reflex", + "ch_famas_silencer", + "ch_famas_acog", + "ch_famas_fmj", + "ch_famas_mastery", + "ch_marksman_tavor", + "ch_expert_tavor", + "ch_tavor_gl", + "ch_tavor_reflex", + "ch_tavor_silencer", + "ch_tavor_acog", + "ch_tavor_fmj", + "ch_tavor_mastery", + "ch_marksman_fal", + "ch_expert_fal", + "ch_fal_gl", + "ch_fal_reflex", + "ch_fal_silencer", + "ch_fal_acog", + "ch_fal_fmj", + "ch_fal_mastery", + "ch_marksman_ak47", + "ch_expert_ak47", + "ch_ak47_gl", + "ch_ak47_reflex", + "ch_ak47_silencer", + "ch_ak47_acog", + "ch_ak47_fmj", + "ch_ak47_mastery", + "ch_marksman_m240", + "ch_expert_m240", + "ch_m240_reflex", + "ch_m240_silencer", + "ch_m240_acog", + "ch_m240_fmj", + "ch_m240_mastery", + "ch_marksman_m4", + "ch_expert_m4", + "ch_m4_gl", + "ch_m4_reflex", + "ch_m4_silencer", + "ch_m4_acog", + "ch_m4_fmj", + "ch_m4_mastery", + "ch_marksman_masada", + "ch_expert_masada", + "ch_masada_gl", + "ch_masada_reflex", + "ch_masada_silencer", + "ch_masada_acog", + "ch_masada_fmj", + "ch_masada_mastery", + "ch_marksman_scar", + "ch_expert_scar", + "ch_scar_gl", + "ch_scar_reflex", + "ch_scar_silencer", + "ch_scar_acog", + "ch_scar_fmj", + "ch_scar_mastery", + "ch_marksman_fn2000", + "ch_expert_fn2000", + "ch_fn2000_gl", + "ch_fn2000_reflex", + "ch_fn2000_silencer", + "ch_fn2000_acog", + "ch_fn2000_fmj", + "ch_fn2000_mastery", + "ch_marksman_cheytac", + "ch_expert_cheytac", + "ch_cheytac_silencer", + "ch_cheytac_acog", + "ch_cheytac_fmj", + "ch_cheytac_mastery", + "ch_marksman_barrett", + "ch_expert_barrett", + "ch_barrett_silencer", + "ch_barrett_acog", + "ch_barrett_fmj", + "ch_barrett_mastery", + "ch_marksman_m21", + "ch_expert_m21", + "ch_m21_silencer", + "ch_m21_acog", + "ch_m21_fmj", + "ch_m21_mastery", + "ch_marksman_kriss", + "ch_expert_kriss", + "ch_kriss_rof", + "ch_kriss_reflex", + "ch_kriss_acog", + "ch_kriss_fmj", + "ch_kriss_mastery", + "ch_marksman_ump45", + "ch_expert_ump45", + "ch_ump45_rof", + "ch_ump45_reflex", + "ch_ump45_acog", + "ch_ump45_fmj", + "ch_ump45_mastery", + "ch_marksman_uzi", + "ch_expert_uzi", + "ch_uzi_rof", + "ch_uzi_reflex", + "ch_uzi_acog", + "ch_uzi_fmj", + "ch_uzi_mastery", + "ch_marksman_p90", + "ch_expert_p90", + "ch_p90_rof", + "ch_p90_reflex", + "ch_p90_acog", + "ch_p90_fmj", + "ch_p90_mastery", + "ch_marksman_mp5k", + "ch_expert_mp5k", + "ch_mp5k_rof", + "ch_mp5k_reflex", + "ch_mp5k_acog", + "ch_mp5k_fmj", + "ch_mp5k_mastery", + "ch_marksman_rpd", + "ch_expert_rpd", + "ch_rpd_silencer", + "ch_rpd_reflex", + "ch_rpd_acog", + "ch_rpd_fmj", + "ch_rpd_mastery", + "ch_marksman_sa80", + "ch_expert_sa80", + "ch_sa80_silencer", + "ch_sa80_reflex", + "ch_sa80_acog", + "ch_sa80_fmj", + "ch_sa80_mastery", + "ch_marksman_aug", + "ch_expert_aug", + "ch_aug_silencer", + "ch_aug_reflex", + "ch_aug_acog", + "ch_aug_fmj", + "ch_aug_mastery", + "ch_marksman_wa2000", + "ch_expert_wa2000", + "ch_wa2000_silencer", + "ch_wa2000_acog", + "ch_wa2000_fmj", + "ch_wa2000_mastery", + "ch_expert_mg4", + "ch_marksman_mg4", + "ch_mg4_silencer", + "ch_mg4_reflex", + "ch_mg4_acog", + "ch_mg4_fmj", + "ch_mg4_mastery", + "ch_marksman_tmp", + "ch_expert_tmp", + "ch_marksman_pp2000", + "ch_expert_pp2000", + "ch_marksman_glock", + "ch_expert_glock", + "ch_marksman_beretta393", + "ch_expert_beretta393", + "ch_marksman_striker", + "ch_expert_striker", + "ch_marksman_m1014", + "ch_expert_m1014", + "ch_marksman_spas12", + "ch_expert_spas12", + "ch_marksman_aa12", + "ch_expert_aa12", + "ch_marksman_model1887", + "ch_expert_model1887", + "ch_marksman_ranger", + "ch_expert_ranger", + "ch_marksman_beretta", + "ch_expert_beretta", + "ch_marksman_usp", + "ch_expert_usp", + "ch_marksman_deserteagle", + "ch_expert_deserteagle", + "ch_marksman_coltanaconda", + "ch_expert_coltanaconda", + "ch_marksman_at4", + "ch_marksman_rpg", + "ch_marksman_javelin", + "ch_marksman_m79", + "ch_marksman_stinger", + "ch_marathon_pro", + "ch_bulletaccuracy_pro", + "ch_deadsilence_pro", + "ch_scrambler_pro", + "ch_sleightofhand_pro", + "ch_bling_pro", + "ch_stoppingpower_pro", + "ch_hardline_pro", + "ch_onemanarmy_pro", + "ch_coldblooded_pro", + "ch_laststand_pro", + "ch_scavenger_pro", + "ch_extendedmelee_pro", + "ch_detectexplosives_pro", + "ch_lightweight_pro", + "ch_dangerclose_pro", + "ch_uav", + "ch_airdrop", + "ch_counter_uav", + "ch_sentry", + "ch_predator_missile", + "ch_precision_airstrike", + "ch_harrier_strike", + "ch_helicopter", + "ch_airdrop_mega", + "ch_helicopter_flares", + "ch_stealth_airstrike", + "ch_helicopter_minigun", + "ch_ac130", + "ch_emp", + "ch_nuke", + "ch_uavs", + "ch_airstrikes", + "ch_helicopters", + "ch_airdrops", + "ch_grenadekill", + "ch_claymoreshot", + "ch_jackinthebox", + "ch_carnie", + "ch_masterblaster", + "ch_bullseye", + "ch_c4shot", + "ch_didyouseethat", + "ch_darkbringer", + "ch_tacticaldeletion", + "ch_its_personal", + "ch_heads_up", + "ch_looknohands", + "ch_predator", + "ch_carpetbomber", + "ch_yourefired", + "ch_choppervet", + "ch_jollygreengiant", + "ch_thespirit", + "ch_cobracommander", + "ch_spectre", + "ch_droppincrates", + "ch_absentee", + "ch_dronekiller", + "ch_finishingtouch", + "ch_truelies", + "ch_og", + "ch_transformer", + "ch_technokiller", + "ch_hidef", + "ch_deathfromabove", + "ch_theedge", + "ch_unbelievable", + "ch_owned", + "ch_stickman", + "ch_lastresort", + "ch_ghillie", + "ch_hotpotato", + "ch_carbomb", + "ch_backstabber", + "ch_slowbutsure", + "ch_miserylovescompany", + "ch_ouch", + "ch_rival", + "ch_cruelty", + "ch_thinkfast", + "ch_thinkfastconcussion", + "ch_thinkfastflash", + "ch_returntosender", + "ch_blindfire", + "ch_hardlanding", + "ch_extremecruelty", + "ch_tangodown", + "ch_countermvp", + "ch_goodbye", + "ch_basejump", + "ch_flyswatter", + "ch_vandalism", + "ch_crouchshot", + "ch_proneshot", + "ch_assists", + "ch_xrayvision", + "ch_backdraft", + "ch_shieldvet", + "ch_smasher", + "ch_backsmasher", + "ch_shield_damage", + "ch_shield_bullet", + "ch_shield_explosive", + "ch_surgical_assault", + "ch_surgical_smg", + "ch_surgical_lmg", + "ch_surgical_sniper", + "ch_expert_assault", + "ch_expert_smg", + "ch_expert_lmg", + "ch_multirpg", + "ch_multiclaymore", + "ch_multifrag", + "ch_multic4", + "ch_collateraldamage", + "ch_flawless", + "ch_fearless", + "ch_grouphug", + "ch_nbk", + "ch_allpro", + "ch_airborne", + "ch_moneyshot", + "ch_robinhood", + "ch_bangforbuck", + "ch_overdraft", + "ch_identitytheft", + "ch_atm", + "ch_timeismoney", + "ch_iamrich", + "ch_breakbank", + "ch_colorofmoney", + "ch_neverforget", + "ch_thebrink", + "ch_fastswap", + "ch_starplayer", + "ch_howthe", + "ch_dominos", + "ch_masterchef", + "ch_invincible", + "ch_survivalist", + "ch_counterclaymore", + "ch_counterc4", + "ch_enemyofthestate", + "ch_resourceful", + "ch_survivor", + "ch_bothbarrels", + "ch_omnicide", + "ch_wargasm", + "ch_thebiggertheyare", + "ch_thehardertheyfall", + "ch_crabmeat", + "ch_wopr", + "ch_thedenier", + "ch_carpetbomb", + "ch_redcarpet", + "ch_reaper", + "ch_nosecrets", + "ch_sunblock", + "ch_afterburner", + "ch_airsuperiority", + "ch_mgmaster", + "ch_slasher", + "ch_radiationsickness", + "ch_infected", + "ch_plague", + "ch_renaissance", + "ch_theloner", + "ch_6fears7", + "ch_thenumb", + "ch_martyr", + "ch_livingdead", + "ch_sidekick", + "ch_clickclickboom", + "ch_hijacker", + "ch_no", + "ch_victor_dm", + "ch_teamplayer", + "ch_victor_sd", + "ch_mvp_tdm", + "ch_teamplayer_hc", + "ch_victor_sab", + "ch_mvp_thc", + "ch_bombdown", + "ch_bombdefender", + "ch_bombplanter", + "ch_hero", + "ch_lastmanstanding", + "ch_saboteur", + "ch_knifevet", + "ch_laststandvet", + "ch_stealth", + "ch_concussionvet", + "ch_flashbangvet", + "ch_avenger", + "ch_prestige_10", + "" + }; + + enum(16) ENUM_4 + { + "none", + "desert", + "woodland", + "digital", + "red_tiger", + "blue_tiger", + "gold", + "prestige", + "arctic", + "red_urban", + "orange_fall" + }; + + enum(128) ENUM_5 + { + "specialty_null", + "specialty_null_gl", + "specialty_null_grip", + "specialty_null_shotgun", + "specialty_null_attachment", + "specialty_parabolic", + "specialty_gpsjammer", + "specialty_holdbreath", + "specialty_quieter", + "specialty_longersprint", + "specialty_detectexplosive", + "specialty_explosivedamage", + "specialty_pistoldeath", + "specialty_grenadepulldeath", + "specialty_bulletdamage", + "specialty_bulletpenetration", + "specialty_bulletaccuracy", + "specialty_bulletaccuracy2", + "specialty_rof", + "specialty_fastreload", + "specialty_extraammo", + "specialty_twoprimaries", + "specialty_armorvest", + "specialty_fraggrenade", + "specialty_specialgrenade", + "specialty_burstfire", + "specialty_blastshield", + "specialty_akimbo", + "specialty_siege", + "specialty_shield", + "specialty_falldamage", + "specialty_fmj", + "specialty_delaymine", + "specialty_feigndeath", + "specialty_jumpdive", + "specialty_localjammer", + "specialty_shellshock", + "specialty_fastmantle", + "specialty_explosivebullets", + "specialty_thermal", + "specialty_lightweight", + "specialty_finalstand", + "specialty_blackbox", + "specialty_steelnerves", + "specialty_quickdraw", + "specialty_flashgrenade", + "specialty_concussiongrenade", + "specialty_smokegrenade", + "specialty_empgrenade", + "specialty_scavenger", + "specialty_sitrep", + "specialty_amplify", + "specialty_extendedmags", + "specialty_saboteur", + "specialty_coldblooded", + "specialty_marathon", + "specialty_challenger", + "specialty_rearview", + "specialty_tacticalinsertion", + "specialty_endgame", + "specialty_carepackage", + "specialty_onemanarmy", + "specialty_littlebird_support", + "specialty_extendedmelee", + "specialty_bling", + "specialty_heartbreaker", + "specialty_selectivehearing", + "specialty_fastsnipe", + "specialty_improvedholdbreath", + "specialty_primarydeath", + "specialty_secondarybling", + "specialty_spygame", + "specialty_spygame2", + "specialty_automantle", + "specialty_fastsprintrecovery", + "specialty_c4death", + "specialty_hardline", + "specialty_combathigh", + "specialty_laststandoffhand", + "specialty_dangerclose", + "javelin_mp", + "stinger_mp", + "c4_mp", + "claymore_mp", + "rpg_mp", + "at4_mp", + "m79_mp", + "throwingknife_mp", + "semtex_mp", + "frag_grenade_mp", + "specialty_armorpiercing", + "specialty_omaquickchange", + "specialty_fastmeleerecovery", + "specialty_rollover", + "specialty_extraspecialduration", + "specialty_freerunner", + "specialty_copycat" + }; + + enum(48) ENUM_6 + { + "none", + "uav", + "airstrike", + "helicopter", + "ac130", + "predator_missile", + "helicopter_minigun", + "helicopter_mk19", + "nuke", + "double_uav", + "precision_airstrike", + "counter_uav", + "sentry", + "sentry_gl", + "airdrop", + "tank", + "airdrop_sentry_minigun", + "airdrop_predator_missile", + "littlebird_support", + "stealth_airstrike", + "harrier_airstrike", + "super_airstrike", + "helicopter_blackbox", + "helicopter_flares", + "emp", + "airdrop_mega" + }; + + enum(256) ENUM_7 + { + "none", + "killstreak", + "headshots", + "damagedone", + "damagetaken", + "knifekills", + "assists", + "pistolkills", + "grenadekills", + "multikill", + "finalkill", + "deaths", + "kills", + "uavs", + "airstrikes", + "helicopters", + "mvp", + "overkill", + "suicides", + "flankkills", + "flankdeaths", + "fragkills", + "c4kills", + "semtexkills", + "claymorekills", + "throwingknifekills", + "smgkills", + "arkills", + "rocketkills", + "shotgunkills", + "lmgkills", + "sniperkills", + "pistolheadshots", + "smgheadshots", + "arheadshots", + "shotgunheadshots", + "lmgheadshots", + "sniperheadshots", + "punisher", + "equipmentkills", + "bulletpenkills", + "revengekills", + "avengekills", + "rescues", + "longshots", + "higherrankkills", + "adskills", + "hipfirekills", + "laststandkills", + "laststanderkills", + "lowerrankkills", + "otherweaponkills", + "shotgundeaths", + "shortestlife", + "highlander", + "kdratio10", + "noawards", + "noflankdeaths", + "deathstreak", + "mostmultikills", + "killedotherteam", + "killedotherteamonelife", + "distancetraveled", + "sprinttime", + "crouchtime", + "pronetime", + "comebacks", + "longestlife", + "killcamtimewatched", + "killcamskipped", + "mostreloads", + "mostswaps", + "mostshotsfired", + "timeinspot", + "mostcamperkills", + "greatestavgalt", + "leastavgalt", + "killsteals", + "mostff", + "killedsameplayer", + "mostweaponsused", + "closertoenemies", + "mostclasseschanged", + "mosttacprevented", + "explosionssurvived", + "shieldblocks", + "fbhits", + "stunhits", + "scopedkills", + "thermalkills", + "thumperkills", + "kdratio", + "afk", + "participant", + "shieldkills", + "shielddeaths", + "throwbacks", + "bombsplanted", + "bombsdefused", + "targetsdestroyed", + "bombcarrierkills", + "killsasbombcarrier", + "bombscarried", + "pointscaptured", + "hqscaptured", + "hqsdestroyed", + "flagscaptured", + "flagsreturned", + "flagscarried", + "flagcarrierkills", + "killsasflagcarrier" + }; + + enum(1024) ENUM_8 + { + "cardicon_default", + "cardicon_aug_marksman", + "cardicon_aug_expert", + "cardicon_m240_marksman", + "cardicon_m240_expert", + "cardicon_sa80_marksman", + "cardicon_sa80_expert", + "cardicon_rpd_marksman", + "cardicon_rpd_expert", + "cardicon_mg4_marksman", + "cardicon_mg4_expert", + "cardicon_ak47_marksman", + "cardicon_ak47_expert", + "cardicon_masada_marksman", + "cardicon_masada_expert", + "cardicon_m16_marksman", + "cardicon_m16_expert", + "cardicon_tavor_marksman", + "cardicon_tavor_expert", + "cardicon_fn2000_marksman", + "cardicon_fn2000_expert", + "cardicon_m4_marksman", + "cardicon_m4_expert", + "cardicon_scar_marksman", + "cardicon_scar_expert", + "cardicon_fal_marksman", + "cardicon_fal_expert", + "cardicon_famas_marksman", + "cardicon_famas_expert", + "cardicon_mp5k_marksman", + "cardicon_mp5k_expert", + "cardicon_uzi_marksman", + "cardicon_uzi_expert", + "cardicon_kriss_marksman", + "cardicon_kriss_expert", + "cardicon_ump45_marksman", + "cardicon_ump45_expert", + "cardicon_p90_marksman", + "cardicon_p90_expert", + "cardicon_cheytac_marksman", + "cardicon_cheytac_expert", + "cardicon_m21_marksman", + "cardicon_m21_expert", + "cardicon_barrett_marksman", + "cardicon_barrett_expert", + "cardicon_wa2000_marksman", + "cardicon_wa2000_expert", + "cardicon_glock_marksman", + "cardicon_glock_expert", + "cardicon_tmp_marksman", + "cardicon_tmp_expert", + "cardicon_beretta393_marksman", + "cardicon_beretta393_expert", + "cardicon_pp2000_marksman", + "cardicon_pp2000_expert", + "cardicon_striker_marksman", + "cardicon_striker_expert", + "cardicon_aa12_marksman", + "cardicon_aa12_expert", + "cardicon_m1014_marksman", + "cardicon_m1014_expert", + "cardicon_spas12_marksman", + "cardicon_spas12_expert", + "cardicon_model1887_marksman", + "cardicon_model1887_expert", + "cardicon_ranger_marksman", + "cardicon_ranger_expert", + "cardicon_beretta_marksman", + "cardicon_beretta_expert", + "cardicon_usp_marksman", + "cardicon_usp_expert", + "cardicon_deserteagle_marksman", + "cardicon_deserteagle_expert", + "cardicon_coltanaconda_marksman", + "cardicon_coltanaconda_expert", + "cardicon_iwlogo", + "cardicon_heartbeatsensor", + "cardicon_minigun", + "cardicon_harrier", + "cardicon_pavelow", + "cardicon_noseart1", + "cardicon_seasnipers", + "cardicon_nightvision_1", + "cardicon_nightvision_2", + "cardicon_sniperscope", + "cardicon_compass", + "cardicon_moon", + "cardicon_biohazard", + "cardicon_radiation", + "cardicon_redhand", + "cardicon_spetsnaz", + "cardicon_tf141", + "cardicon_umbracatervae", + "cardicon_headshot", + "cardicon_car", + "cardicon_gumby", + "cardicon_doubletap", + "cardicon_fmj", + "cardicon_soap", + "cardicon_humantrophy", + "cardicon_skull", + "cardicon_xray", + "cardicon_skull_black", + "cardicon_pirate", + "cardicon_pirateflag", + "cardicon_treasurechest", + "cardicon_treasuremap", + "cardicon_league_grenade", + "cardicon_ball_soccer_1", + "cardicon_ball_baseball_1", + "cardicon_ball_basketball_1", + "cardicon_ball_football_1", + "cardicon_rhino", + "cardicon_lion", + "cardicon_bear", + "cardicon_tiger", + "cardicon_hyena", + "cardicon_kinggorilla", + "cardicon_thecow", + "cardicon_birdbrain", + "cardicon_claw", + "cardicon_stop", + "cardicon_burgertown", + "cardicon_bulb", + "cardicon_patch", + "cardicon_tire", + "cardicon_boot", + "cardicon_brassknuckle", + "cardicon_8ball", + "cardicon_mushroom", + "cardicon_assad", + "cardicon_makarov", + "cardicon_sheppard", + "cardicon_comic_shepherd", + "cardicon_grigsby", + "cardicon_taskforcearmy01", + "cardicon_ghillie", + "cardicon_price_ww2", + "cardicon_pricewoodland", + "cardicon_pricearctic", + "cardicon_comic_price", + "cardicon_toon_price_1", + "cardicon_brad", + "cardicon_tsuenami", + "cardicon_brock", + "cardicon_macgregor", + "cardicon_porterjustice", + "cardicon_grunt", + "cardicon_grunt_2", + "cardicon_readhead", + "cardicon_pacifier_blue", + "cardicon_pacifier_pink", + "cardicon_pushingupdaisies", + "cardicon_girlskull", + "cardicon_blue", + "cardicon_badgirl", + "cardicon_goodgirl", + "cardicon_sniper", + "cardicon_abduction", + "cardicon_illuminati", + "cardicon_cod4", + "cardicon_iw", + "cardicon_prestige1", + "cardicon_prestige2", + "cardicon_prestige3", + "cardicon_prestige4", + "cardicon_prestige5", + "cardicon_prestige6", + "cardicon_prestige7", + "cardicon_prestige8", + "cardicon_prestige9", + "cardicon_prestige10", + "cardicon_mw2_prestige1", + "cardicon_mw2_prestige2", + "cardicon_mw2_prestige3", + "cardicon_mw2_prestige4", + "cardicon_mw2_prestige5", + "cardicon_mw2_prestige6", + "cardicon_mw2_prestige7", + "cardicon_mw2_prestige8", + "cardicon_mw2_prestige9", + "cardicon_mw2_prestige10", + "cardicon_prestige10_02", + "cardicon_honeybadger01", + "cardicon_kitten", + "cardicon_nates", + "cardicon_tsunami", + "cardicon_warpig", + "cardicon_8bit_price", + "cardicon_ball_volleyball_1", + "cardicon_helmet_baseball_1", + "cardicon_helmet_football_1", + "cardicon_hockey_1", + "cardicon_hockey_2", + "cardicon_tennisracket", + "cardicon_ghost_bust", + "cardicon_koiker_hound", + "cardicon_sugarglider", + "cardicon_gears", + "cardicon_brassknuckles", + "cardicon_devilfinger", + "cardicon_gold", + "cardicon_icecream", + "cardicon_korean", + "cardicon_loadedfinger", + "cardicon_ac130", + "cardicon_uav", + "cardicon_carepackage", + "cardicon_counteruav", + "cardicon_sentrygun", + "cardicon_predatormissile", + "cardicon_harrierstrike", + "cardicon_attackchopper", + "cardicon_emergencyair", + "cardicon_pavelowkillstreak", + "cardicon_stealthkillstreak", + "cardicon_choppergunner", + "cardicon_empkillstreak", + "cardicon_tacticalnuke", + "cardicon_precair", + "cardicon_marathon", + "cardicon_sleightofhand", + "cardicon_scavenger", + "cardicon_dangerclose", + "cardicon_bling", + "cardicon_stoppingpower", + "cardicon_lightweight", + "cardicon_hardline", + "cardicon_coldblooded", + "cardicon_oma", + "cardicon_commando", + "cardicon_steadyaim", + "cardicon_scrambler", + "cardicon_sitrep", + "cardicon_laststand", + "cardicon_ninja", + "cardicon_frag", + "cardicon_semtex", + "cardicon_throwingknife", + "cardicon_tacticalinsertion", + "cardicon_blastshield", + "cardicon_c4", + "cardicon_claymore", + "cardicon_pvt1", + "cardicon_pfc1", + "cardicon_spc1", + "cardicon_cpl1", + "cardicon_sgt1", + "cardicon_ssgt1", + "cardicon_sfc1", + "cardicon_msgt1", + "cardicon_1stsgt1", + "cardicon_sgtmaj1", + "cardicon_cmdsgtmaj1", + "cardicon_2ndlt1", + "cardicon_1stlt1", + "cardicon_capt1", + "cardicon_maj1", + "cardicon_ltcol1", + "cardicon_col1", + "cardicon_bgen1", + "cardicon_majgen1", + "cardicon_ltgen1", + "cardicon_gen1", + "cardicon_comm1", + "cardicon_martyrdom", + "cardicon_painkiller", + "cardicon_finalstand", + "cardicon_copycat", + "cardicon_impale", + "cardicon_stab", + "cardicon_riotdeath", + "cardicon_b2", + "cardicon_bulletcase", + "cardicon_league_1911", + "cardicon_league_magnum", + "cardicon_opfor", + "cardicon_rangers", + "cardicon_seals", + "cardicon_usmc", + "cardicon_sas", + "cardicon_skullaward", + "cardicon_skullnbones", + "cardicon_chicken", + "cardicon_gametype", + "cardicon_tictac", + "cardicon_jets", + "cardicon_joystick", + "cardicon_devil", + "cardicon_knife", + "cardicon_thebomb", + "cardicon_juggernaut_2", + "cardicon_juggernaut_1", + "cardicon_ac130_angelflare", + "cardicon_bullets_50cal", + "cardicon_weed", + "cardicon_riot_shield", + "cardicon_dive", + "cardicon_ghost_skull", + "cardicon_gasmask", + "cardicon_iss", + "cardicon_knife_logo", + "cardicon_shotgun_shells", + "cardicon_rtrolling" + }; + + enum(1024) ENUM_9 + { + "cardtitle_default", + "cardtitle_theextreme", + "cardtitle_earlydetection", + "cardtitle_trackstar", + "cardtitle_freerunner", + "cardtitle_decathlete", + "cardtitle_2fast", + "cardtitle_hairtrigger", + "cardtitle_oneinchpunch", + "cardtitle_reloaded", + "cardtitle_bandolier", + "cardtitle_vulture", + "cardtitle_fullforce", + "cardtitle_sonicboom", + "cardtitle_dangerclose", + "cardtitle_doubledown", + "cardtitle_blingbling", + "cardtitle_armedanddangerous", + "cardtitle_highcaliber", + "cardtitle_kfactor", + "cardtitle_bitethebullet", + "cardtitle_speeddemon", + "cardtitle_readyfire", + "cardtitle_pathfinder", + "cardtitle_deadline", + "cardtitle_closesupport", + "cardtitle_invisible", + "cardtitle_uavjammer", + "cardtitle_doubleagent", + "cardtitle_fullarsenal", + "cardtitle_quickchange", + "cardtitle_armyof1", + "cardtitle_impaler", + "cardtitle_ninja", + "cardtitle_excalibur", + "cardtitle_sureshot", + "cardtitle_ironlungs", + "cardtitle_steelnerves", + "cardtitle_hardtokill", + "cardtitle_deadmansswitch", + "cardtitle_dyingbreath", + "cardtitle_disruptor", + "cardtitle_heartbreaker", + "cardtitle_counterintel", + "cardtitle_xrayvision", + "cardtitle_amplifier", + "cardtitle_eod", + "cardtitle_silentstrike", + "cardtitle_spygame", + "cardtitle_artofstealth", + "cardtitle_aug_sharpshooter", + "cardtitle_aug_marksman", + "cardtitle_aug_veteran", + "cardtitle_aug_expert", + "cardtitle_aug_master", + "cardtitle_m240_sharpshooter", + "cardtitle_m240_marksman", + "cardtitle_m240_veteran", + "cardtitle_m240_expert", + "cardtitle_m240_master", + "cardtitle_sa80_sharpshooter", + "cardtitle_sa80_marksman", + "cardtitle_sa80_veteran", + "cardtitle_sa80_expert", + "cardtitle_sa80_master", + "cardtitle_rpd_sharpshooter", + "cardtitle_rpd_marksman", + "cardtitle_rpd_veteran", + "cardtitle_rpd_expert", + "cardtitle_rpd_master", + "cardtitle_mg4_sharpshooter", + "cardtitle_mg4_marksman", + "cardtitle_mg4_veteran", + "cardtitle_mg4_expert", + "cardtitle_mg4_master", + "cardtitle_ak47_sharpshooter", + "cardtitle_ak47_marksman", + "cardtitle_ak47_veteran", + "cardtitle_ak47_expert", + "cardtitle_ak47_master", + "cardtitle_masada_sharpshooter", + "cardtitle_masada_marksman", + "cardtitle_masada_veteran", + "cardtitle_masada_expert", + "cardtitle_masada_master", + "cardtitle_m16_sharpshooter", + "cardtitle_m16_marksman", + "cardtitle_m16_veteran", + "cardtitle_m16_expert", + "cardtitle_m16_master", + "cardtitle_tavor_sharpshooter", + "cardtitle_tavor_marksman", + "cardtitle_tavor_veteran", + "cardtitle_tavor_expert", + "cardtitle_tavor_master", + "cardtitle_fn2000_sharpshooter", + "cardtitle_fn2000_marksman", + "cardtitle_fn2000_veteran", + "cardtitle_fn2000_expert", + "cardtitle_fn2000_master", + "cardtitle_m4_sharpshooter", + "cardtitle_m4_marksman", + "cardtitle_m4_veteran", + "cardtitle_m4_expert", + "cardtitle_m4_master", + "cardtitle_scar_sharpshooter", + "cardtitle_scar_marksman", + "cardtitle_scar_veteran", + "cardtitle_scar_expert", + "cardtitle_scar_master", + "cardtitle_fal_sharpshooter", + "cardtitle_fal_marksman", + "cardtitle_fal_veteran", + "cardtitle_fal_expert", + "cardtitle_fal_master", + "cardtitle_famas_sharpshooter", + "cardtitle_famas_marksman", + "cardtitle_famas_veteran", + "cardtitle_famas_expert", + "cardtitle_famas_master", + "cardtitle_mp5k_sharpshooter", + "cardtitle_mp5k_marksman", + "cardtitle_mp5k_veteran", + "cardtitle_mp5k_expert", + "cardtitle_mp5k_master", + "cardtitle_uzi_sharpshooter", + "cardtitle_uzi_marksman", + "cardtitle_uzi_veteran", + "cardtitle_uzi_expert", + "cardtitle_uzi_master", + "cardtitle_kriss_sharpshooter", + "cardtitle_kriss_marksman", + "cardtitle_kriss_veteran", + "cardtitle_kriss_expert", + "cardtitle_kriss_master", + "cardtitle_ump45_sharpshooter", + "cardtitle_ump45_marksman", + "cardtitle_ump45_veteran", + "cardtitle_ump45_expert", + "cardtitle_ump45_master", + "cardtitle_p90_sharpshooter", + "cardtitle_p90_marksman", + "cardtitle_p90_veteran", + "cardtitle_p90_expert", + "cardtitle_p90_master", + "cardtitle_cheytac_sharpshooter", + "cardtitle_cheytac_marksman", + "cardtitle_cheytac_veteran", + "cardtitle_cheytac_expert", + "cardtitle_cheytac_master", + "cardtitle_m21_sharpshooter", + "cardtitle_m21_marksman", + "cardtitle_m21_veteran", + "cardtitle_m21_expert", + "cardtitle_m21_master", + "cardtitle_barrett_sharpshooter", + "cardtitle_barrett_marksman", + "cardtitle_barrett_veteran", + "cardtitle_barrett_expert", + "cardtitle_barrett_master", + "cardtitle_wa2000_sharpshooter", + "cardtitle_wa2000_marksman", + "cardtitle_wa2000_veteran", + "cardtitle_wa2000_expert", + "cardtitle_wa2000_master", + "cardtitle_glock_marksman", + "cardtitle_glock_veteran", + "cardtitle_glock_expert", + "cardtitle_glock_master", + "cardtitle_tmp_marksman", + "cardtitle_tmp_veteran", + "cardtitle_tmp_expert", + "cardtitle_tmp_master", + "cardtitle_beretta393_marksman", + "cardtitle_beretta393_veteran", + "cardtitle_beretta393_expert", + "cardtitle_beretta393_master", + "cardtitle_pp2000_marksman", + "cardtitle_pp2000_veteran", + "cardtitle_pp2000_expert", + "cardtitle_pp2000_master", + "cardtitle_striker_marksman", + "cardtitle_striker_veteran", + "cardtitle_striker_expert", + "cardtitle_striker_master", + "cardtitle_aa12_marksman", + "cardtitle_aa12_veteran", + "cardtitle_aa12_expert", + "cardtitle_aa12_master", + "cardtitle_m1014_marksman", + "cardtitle_m1014_veteran", + "cardtitle_m1014_expert", + "cardtitle_m1014_master", + "cardtitle_spas12_marksman", + "cardtitle_spas12_veteran", + "cardtitle_spas12_expert", + "cardtitle_spas12_master", + "cardtitle_model1887_marksman", + "cardtitle_model1887_veteran", + "cardtitle_model1887_expert", + "cardtitle_model1887_master", + "cardtitle_ranger_marksman", + "cardtitle_ranger_veteran", + "cardtitle_ranger_expert", + "cardtitle_ranger_master", + "cardtitle_beretta_marksman", + "cardtitle_beretta_veteran", + "cardtitle_beretta_expert", + "cardtitle_beretta_master", + "cardtitle_usp_marksman", + "cardtitle_usp_veteran", + "cardtitle_usp_expert", + "cardtitle_usp_master", + "cardtitle_deserteagle_marksman", + "cardtitle_deserteagle_veteran", + "cardtitle_deserteagle_expert", + "cardtitle_deserteagle_master", + "cardtitle_coltanaconda_marksman", + "cardtitle_coltanaconda_veteran", + "cardtitle_coltanaconda_expert", + "cardtitle_coltanaconda_master", + "cardtitle_shotdown", + "cardtitle_dishtherock", + "cardtitle_flyswatter", + "cardtitle_lonewolf", + "cardtitle_getreal", + "cardtitle_overwatch", + "cardtitle_tangodown", + "cardtitle_teamplayer", + "cardtitle_destroyer", + "cardtitle_its_sabotage", + "cardtitle_dzclear", + "cardtitle_fireforget", + "cardtitle_flag_united_states", + "cardtitle_patriot", + "cardtitle_flag_uk", + "cardtitle_fng", + "cardtitle_flag_canada", + "cardtitle_greatwhite", + "cardtitle_flag_australia", + "cardtitle_continental", + "cardtitle_flag_swiss", + "cardtitle_neutral", + "cardtitle_flag_mexico", + "cardtitle_flag_spain", + "cardtitle_conquerer", + "cardtitle_flag_austria", + "cardtitle_terminator", + "cardtitle_flag_japan", + "cardtitle_risingsun", + "cardtitle_flag_brazil", + "cardtitle_redeemer", + "cardtitle_flag_russia", + "cardtitle_flag_france", + "cardtitle_flag_germany", + "cardtitle_flag_italy", + "cardtitle_flag_norway", + "cardtitle_flag_greece", + "cardtitle_flag_sweden", + "cardtitle_flag_ireland", + "cardtitle_flag_belgium", + "cardtitle_flag_finland", + "cardtitle_flag_luxemburg", + "cardtitle_flag_czech", + "cardtitle_flag_netherlands", + "cardtitle_flag_newzealand", + "cardtitle_flag_philippines", + "cardtitle_flag_poland", + "cardtitle_flag_portugal", + "cardtitle_flag_denmark", + "cardtitle_flag_saudiarabia", + "cardtitle_flag_singapore", + "cardtitle_flag_southafrica", + "cardtitle_flag_southkorea", + "cardtitle_flag_hongkong", + "cardtitle_flag_india", + "cardtitle_flag_taiwan", + "cardtitle_flag_united_arab_emirates", + "cardtitle_flag_elsalvador", + "cardtitle_flag_china", + "cardtitle_flag_iran", + "cardtitle_pyro", + "cardtitle_fired", + "cardtitle_hotshot", + "cardtitle_deathfromabove", + "cardtitle_steelreign", + "cardtitle_feared", + "cardtitle_preemptive", + "cardtitle_timeontarget", + "cardtitle_publicenemy", + "cardtitle_bombshell", + "cardtitle_thabomb", + "cardtitle_brokenarrow", + "cardtitle_explosiveordinance", + "cardtitle_madbomber", + "cardtitle_givinstatic", + "cardtitle_jumpjet", + "cardtitle_droppincrates", + "cardtitle_submittoauthority", + "cardtitle_harcoreonly", + "cardtitle_lowprofile", + "cardtitle_sigint", + "cardtitle_intergalactic", + "cardtitle_nohands", + "cardtitle_bowdown", + "cardtitle_drifter", + "cardtitle_bob", + "cardtitle_ghostrider", + "cardtitle_survivor", + "cardtitle_accidentprone", + "cardtitle_squawkbox", + "cardtitle_cr1zby", + "cardtitle_companioncrate", + "cardtitle_straightup", + "cardtitle_pushindaisy", + "cardtitle_voyeur", + "cardtitle_sprayandpray", + "cardtitle_jointops", + "cardtitle_avenger", + "cardtitle_sharepackage", + "cardtitle_blackout", + "cardtitle_jollygreen", + "cardtitle_spirit", + "cardtitle_grimreaper", + "cardtitle_cobracommander", + "cardtitle_spectre", + "cardtitle_rainoffire", + "cardtitle_chickmagnet", + "cardtitle_starfishprime", + "cardtitle_endofline", + "cardtitle_wopr", + "cardtitle_watchman", + "cardtitle_omnipotent", + "cardtitle_planewhisperer", + "cardtitle_rollingthunder", + "cardtitle_fullthrottle", + "cardtitle_airwolf", + "cardtitle_gambler", + "cardtitle_santaclaus", + "cardtitle_pineappleexpress", + "cardtitle_catchshrapnel", + "cardtitle_mastermind", + "cardtitle_jackinthebox", + "cardtitle_copperfield", + "cardtitle_takeastab", + "cardtitle_masterblaster", + "cardtitle_juggernaut", + "cardtitle_bullseye", + "cardtitle_stuckonyou", + "cardtitle_plasticman", + "cardtitle_c4andafter", + "cardtitle_silentknight", + "cardtitle_darkbringer", + "cardtitle_tacticaldeletion", + "cardtitle_itspersonal", + "cardtitle_fragout", + "cardtitle_cloakanddagger", + "cardtitle_mylilpwny", + "cardtitle_gettothechoppa", + "cardtitle_booyah", + "cardtitle_streaker", + "cardtitle_1bullet2kills", + "cardtitle_dictator", + "cardtitle_surgical", + "cardtitle_crackinskulls", + "cardtitle_popoff", + "cardtitle_boomheadshot", + "cardtitle_faceoff", + "cardtitle_headrush", + "cardtitle_mach5", + "cardtitle_notintheface", + "cardtitle_perfectionist", + "cardtitle_badaboom", + "cardtitle_genocidal", + "cardtitle_partinggift", + "cardtitle_ambush", + "cardtitle_pinpuller", + "cardtitle_boomboompow", + "cardtitle_anarchist", + "cardtitle_highlander", + "cardtitle_enemybenefits", + "cardtitle_nbk", + "cardtitle_allpro", + "cardtitle_hardtarget", + "cardtitle_dronekiller", + "cardtitle_truelies", + "cardtitle_transformer", + "cardtitle_angelofdeath", + "cardtitle_hidef", + "cardtitle_unbelievable", + "cardtitle_stickman", + "cardtitle_lastresort", + "cardtitle_philanthropist", + "cardtitle_absenteekiller", + "cardtitle_finishingtouch", + "cardtitle_og", + "cardtitle_technokiller", + "cardtitle_owned", + "cardtitle_tagyoureit", + "cardtitle_boilermaker", + "cardtitle_backstabber", + "cardtitle_stungun", + "cardtitle_heart", + "cardtitle_noobtuber", + "cardtitle_rival", + "cardtitle_omfg", + "cardtitle_thinkfast", + "cardtitle_concussive", + "cardtitle_lightsout", + "cardtitle_backfire", + "cardtitle_blindfire", + "cardtitle_duckhunter", + "cardtitle_omnicide", + "cardtitle_devastator", + "cardtitle_mvpassassin", + "cardtitle_timeismoney", + "cardtitle_imrich", + "cardtitle_moneyshot", + "cardtitle_makeitrain", + "cardtitle_clayback", + "cardtitle_robinhood", + "cardtitle_madman", + "cardtitle_idthief", + "cardtitle_newjack", + "cardtitle_bloodmoney", + "cardtitle_flatliner", + "cardtitle_evildead", + "cardtitle_quickdraw", + "cardtitle_hiredgun", + "cardtitle_mastatdon", + "cardtitle_howthe", + "cardtitle_dominofx", + "cardtitle_halfbaked", + "cardtitle_bam", + "cardtitle_invincible", + "cardtitle_livelong", + "cardtitle_claypigeon", + "cardtitle_reversaloffortune", + "cardtitle_iceman", + "cardtitle_enemyofthestate", + "cardtitle_friendswith", + "cardtitle_legend", + "cardtitle_wargasm", + "cardtitle_biggertheyare", + "cardtitle_harderthey", + "cardtitle_epic", + "cardtitle_denier", + "cardtitle_carpetbomber", + "cardtitle_bombsaway", + "cardtitle_bigbrother", + "cardtitle_uavrays", + "cardtitle_afterburner", + "cardtitle_topgun", + "cardtitle_gat", + "cardtitle_theripper", + "cardtitle_allyourbase", + "cardtitle_globalthermo", + "cardtitle_sbd", + "cardtitle_toxicavenger", + "cardtitle_infected", + "cardtitle_plague", + "cardtitle_klepto", + "cardtitle_behindenemy", + "cardtitle_6fears7", + "cardtitle_comfortablynumb", + "cardtitle_martyr", + "cardtitle_livingdead", + "cardtitle_sidekick", + "cardtitle_clickclickboom", + "cardtitle_hijacker", + "cardtitle_bountyhunter", + "cardtitle_no", + "cardtitle_sentrymaster", + "cardtitle_predatormaster", + "cardtitle_airstrikemaster", + "cardtitle_harriermaster", + "cardtitle_helimaster", + "cardtitle_pavelowmaster", + "cardtitle_stealthmaster", + "cardtitle_choppermaster", + "cardtitle_ac130master", + "cardtitle_blademaster", + "cardtitle_laststandmaster", + "cardtitle_silencermaster", + "cardtitle_flashmaster", + "cardtitle_stunmaster", + "cardtitle_sentryveteran", + "cardtitle_predatorveteran", + "cardtitle_airstrikeveteran", + "cardtitle_harrierveteran", + "cardtitle_heliveteran", + "cardtitle_pavelowveteran", + "cardtitle_stealthveteran", + "cardtitle_chopperveteran", + "cardtitle_ac130veteran", + "cardtitle_bladeveteran", + "cardtitle_laststandveteran", + "cardtitle_silencerveteran", + "cardtitle_flashveteran", + "cardtitle_stunveteran", + "cardtitle_headsup", + "cardtitle_predator", + "cardtitle_automator", + "cardtitle_shotover", + "cardtitle_stringfellow", + "cardtitle_doctor", + "cardtitle_coldsteel", + "cardtitle_inciser", + "cardtitle_phoenixrising", + "cardtitle_suppressor", + "cardtitle_shockandawe", + "cardtitle_flasher", + "cardtitle_handsfree", + "cardtitle_clusterbomb", + "cardtitle_rejected", + "cardtitle_skycaptain", + "cardtitle_cobrakai", + "cardtitle_godhand", + "cardtitle_unseen", + "cardtitle_at4_marksman", + "cardtitle_javelin_marksman", + "cardtitle_m79_marksman", + "cardtitle_rpg_marksman", + "cardtitle_stinger_marksman", + "cardtitle_at4_expert", + "cardtitle_javelin_expert", + "cardtitle_m79_expert", + "cardtitle_rpg_expert", + "cardtitle_stinger_expert", + "cardtitle_at4_veteran", + "cardtitle_javelin_veteran", + "cardtitle_m79_veteran", + "cardtitle_rpg_veteran", + "cardtitle_stinger_veteran", + "cardtitle_at4_master", + "cardtitle_javelin_master", + "cardtitle_m79_master", + "cardtitle_rpg_master", + "cardtitle_stinger_master", + "cardtitle_ssdd", + "cardtitle_prestige1", + "cardtitle_prestige2", + "cardtitle_prestige3", + "cardtitle_prestige4", + "cardtitle_prestige5", + "cardtitle_prestige6", + "cardtitle_prestige7", + "cardtitle_prestige8", + "cardtitle_prestige9", + "cardtitle_prestige10", + "cardtitle_20", + "cardtitle_30", + "cardtitle_40", + "cardtitle_50", + "cardtitle_60", + "cardtitle_70", + "cardtitle_20a", + "cardtitle_30a", + "cardtitle_40a", + "cardtitle_50a", + "cardtitle_60a", + "cardtitle_70a", + "cardtitle_grassyknoll", + "cardtitle_ghilliemist", + "cardtitle_rezero", + "cardtitle_blunttrauma", + "cardtitle_smashhit", + "cardtitle_backsmasher", + "cardtitle_protectserve", + "cardtitle_bulletproof", + "cardtitle_unbreakable", + "cardtitle_evilchicken", + "cardtitle_nolaststand" + }; + + enum(8) ENUM_10 + { + "cardnameplate_default", + "cardnameplate_test" + }; + + enum ENUM_11 + { + "none", + "neutral", + "allies", + "axis" + }; + + enum(16) ENUM_12 + { + "dm", + "tdm", + "dsd", + "sab", + "dom", + "koth", + "oneflag", + "arena", + "ctf" + }; + + struct root + { + int awards[ENUM_7]; + int bests[ENUM_7]; + int experience; + int restXPGoal; + int prestige; + int level; + int score; + int kills; + int killStreak; + int deaths; + int deathStreak; + int assists; + int headshots; + int teamkills; + int suicides; + int timePlayedAllies; + int timePlayedOpfor; + int timePlayedOther; + int timePlayedTotal; + int kdRatio; + int wins; + int losses; + int ties; + int winStreak; + int currentWinStreak; + int winLossRatio; + int hits; + int misses; + int totalShots; + int accuracy; + int money; + int timeSinceLastLoot; + int lastPlayedTime; + STRUCT_4 round; + bool weaponNew[ENUM_1]; + bool camoNew[ENUM_1][ENUM_4]; + bool attachmentNew[ENUM_1][ENUM_2]; + bool perkNew[ENUM_5]; + bool featureNew[ENUM_0]; + bool challengeTierNew[100]; + bool killstreakNew[ENUM_6]; + STRUCT_2 customClasses[15]; + byte challengeState[ENUM_3]; + int challengeProgress[ENUM_3]; + ENUM_8 cardIcon; + ENUM_9 cardTitle; + ENUM_10 cardNameplate; + ENUM_6 killstreaks[3]; + short skills[ENUM_12]; + bool iconNew[ENUM_8]; + bool titleNew[ENUM_9]; + bool iconUnlocked[ENUM_8]; + bool titleUnlocked[ENUM_9]; + bool killstreakUnlocked[ENUM_6]; + }; + + struct STRUCT_1 + { + ENUM_1 weapon; + ENUM_2 attachment[2]; + ENUM_4 camo; + pad(4); + }; + + struct STRUCT_2 + { + bool inUse; + STRUCT_1 weaponSetups[2]; + ENUM_5 perks[5]; + ENUM_1 specialGrenade; + string(21) name; + ENUM_5 _deathstreak; + pad(4); + }; + + struct STRUCT_3 + { + ENUM_7 award; + int value; + }; + + struct STRUCT_4 + { + int kills; + int killStreak; + int deaths; + int score; + int timePlayed; + bool win; + bool loss; + ENUM_11 scoreboardType; + int totalXp; + int scoreXp; + int challengeXp; + int matchXp; + int miscXp; + byte awardCount; + STRUCT_3 awards[5]; + pad(54); + }; +} + + +// ==================== +// Version 158 +// Calculated checksum did not match checksum in file +// Overriding checksum to match original value +// ==================== +version 158 +{ + checksumoverride 2074144879; + + enum(32) ENUM_0 + { + "cac", + "demolitions", + "sniper", + "challenges", + "hardcore", + "oldschool", + "clantag", + "prestige", + "cas", + "playercard", + "playercard_title", + "playercard_icon", + "token_1", + "token_2", + "token_3", + "token_4", + "token_5", + "token_6", + "token_7", + "token_8", + "token_9", + "token_10", + "token_11", + "token_12", + "ghillie_urban", + "ghillie_arctic", + "ghillie_desert", + "ghillie_forest" + }; + + enum(128) ENUM_1 + { + "none", + "beretta393", + "beretta", + "usp", + "deserteagle", + "deserteaglegold", + "coltanaconda", + "glock", + "ak47", + "mp44", + "g3", + "g36c", + "m16", + "m4", + "fn2000", + "famas", + "fal", + "scar", + "tavor", + "masada", + "mp5k", + "uzi", + "p90", + "kriss", + "ump45", + "pp2000", + "tmp", + "m1014", + "ranger", + "striker", + "aa12", + "model1887", + "spas12", + "rpd", + "sa80", + "aug", + "mg4", + "m240", + "barrett", + "cheytac", + "m21", + "wa2000", + "gl", + "rpg", + "c4", + "c4Death", + "claymore", + "javelin", + "stinger", + "at4", + "m79", + "frag_grenade", + "frag_scavenger_grenade", + "flash_grenade", + "smoke_grenade", + "concussion_grenade", + "emp_grenade", + "riotshield", + "throwingknife", + "m40a3", + "ak47classic", + "ak74u", + "peacekeeper", + "dragunov", + "onemanarmy" + }; + + enum(20) ENUM_2 + { + "none", + "gl", + "reflex", + "silencer", + "acog", + "grip", + "akimbo", + "thermal", + "shotgun", + "heartbeat", + "fmj", + "xmags", + "rof", + "boom", + "eotech", + "tactical" + }; + + enum(512) ENUM_3 + { + "ch_prestige", + "pr_marksman_m16", + "pr_expert_m16", + "pr_marksman_famas", + "pr_expert_famas", + "pr_marksman_tavor", + "pr_expert_tavor", + "pr_marksman_fal", + "pr_expert_fal", + "pr_marksman_ak47", + "pr_expert_ak47", + "pr_marksman_m240", + "pr_expert_m240", + "pr_marksman_m4", + "pr_expert_m4", + "pr_marksman_masada", + "pr_expert_masada", + "pr_marksman_scar", + "pr_expert_scar", + "pr_marksman_fn2000", + "pr_expert_fn2000", + "pr_marksman_cheytac", + "pr_expert_cheytac", + "pr_marksman_barrett", + "pr_expert_barrett", + "pr_marksman_m21", + "pr_expert_m21", + "pr_marksman_kriss", + "pr_expert_kriss", + "pr_marksman_ump45", + "pr_expert_ump45", + "pr_marksman_uzi", + "pr_expert_uzi", + "pr_marksman_p90", + "pr_expert_p90", + "pr_marksman_mp5k", + "pr_expert_mp5k", + "pr_marksman_rpd", + "pr_expert_rpd", + "pr_marksman_sa80", + "pr_expert_sa80", + "pr_marksman_aug", + "pr_expert_aug", + "pr_marksman_tmp", + "pr_expert_tmp", + "pr_marksman_pp2000", + "pr_expert_pp2000", + "pr_marksman_glock", + "pr_expert_glock", + "pr_marksman_beretta393", + "pr_expert_beretta393", + "pr_marksman_striker", + "pr_expert_striker", + "pr_marksman_m1014", + "pr_expert_m1014", + "pr_marksman_spas12", + "pr_expert_spas12", + "pr_marksman_aa12", + "pr_expert_aa12", + "pr_marksman_model1887", + "pr_expert_model1887", + "pr_marksman_ranger", + "pr_expert_ranger", + "pr_marksman_beretta", + "pr_expert_beretta", + "pr_marksman_usp", + "pr_expert_usp", + "pr_marksman_deserteagle", + "pr_expert_deserteagle", + "pr_marksman_coltanaconda", + "pr_expert_coltanaconda", + "pr_marksman_wa2000", + "pr_expert_wa2000", + "pr_marksman_mg4", + "pr_expert_mg4", + "pr_marksman_at4", + "pr_expert_at4", + "pr_marksman_rpg", + "pr_expert_rpg", + "pr_marksman_javelin", + "pr_expert_javelin", + "pr_marksman_m79", + "pr_expert_m79", + "pr_marksman_stinger", + "pr_expert_stinger", + "ch_marksman_m16", + "ch_expert_m16", + "ch_m16_gl", + "ch_m16_reflex", + "ch_m16_silencer", + "ch_m16_acog", + "ch_m16_fmj", + "ch_m16_mastery", + "ch_marksman_famas", + "ch_expert_famas", + "ch_famas_gl", + "ch_famas_reflex", + "ch_famas_silencer", + "ch_famas_acog", + "ch_famas_fmj", + "ch_famas_mastery", + "ch_marksman_tavor", + "ch_expert_tavor", + "ch_tavor_gl", + "ch_tavor_reflex", + "ch_tavor_silencer", + "ch_tavor_acog", + "ch_tavor_fmj", + "ch_tavor_mastery", + "ch_marksman_fal", + "ch_expert_fal", + "ch_fal_gl", + "ch_fal_reflex", + "ch_fal_silencer", + "ch_fal_acog", + "ch_fal_fmj", + "ch_fal_mastery", + "ch_marksman_ak47", + "ch_expert_ak47", + "ch_ak47_gl", + "ch_ak47_reflex", + "ch_ak47_silencer", + "ch_ak47_acog", + "ch_ak47_fmj", + "ch_ak47_mastery", + "ch_marksman_m240", + "ch_expert_m240", + "ch_m240_reflex", + "ch_m240_silencer", + "ch_m240_acog", + "ch_m240_fmj", + "ch_m240_mastery", + "ch_marksman_m4", + "ch_expert_m4", + "ch_m4_gl", + "ch_m4_reflex", + "ch_m4_silencer", + "ch_m4_acog", + "ch_m4_fmj", + "ch_m4_mastery", + "ch_marksman_masada", + "ch_expert_masada", + "ch_masada_gl", + "ch_masada_reflex", + "ch_masada_silencer", + "ch_masada_acog", + "ch_masada_fmj", + "ch_masada_mastery", + "ch_marksman_scar", + "ch_expert_scar", + "ch_scar_gl", + "ch_scar_reflex", + "ch_scar_silencer", + "ch_scar_acog", + "ch_scar_fmj", + "ch_scar_mastery", + "ch_marksman_fn2000", + "ch_expert_fn2000", + "ch_fn2000_gl", + "ch_fn2000_reflex", + "ch_fn2000_silencer", + "ch_fn2000_acog", + "ch_fn2000_fmj", + "ch_fn2000_mastery", + "ch_marksman_cheytac", + "ch_expert_cheytac", + "ch_cheytac_silencer", + "ch_cheytac_acog", + "ch_cheytac_fmj", + "ch_cheytac_mastery", + "ch_marksman_barrett", + "ch_expert_barrett", + "ch_barrett_silencer", + "ch_barrett_acog", + "ch_barrett_fmj", + "ch_barrett_mastery", + "ch_marksman_m21", + "ch_expert_m21", + "ch_m21_silencer", + "ch_m21_acog", + "ch_m21_fmj", + "ch_m21_mastery", + "ch_marksman_kriss", + "ch_expert_kriss", + "ch_kriss_rof", + "ch_kriss_reflex", + "ch_kriss_acog", + "ch_kriss_fmj", + "ch_kriss_mastery", + "ch_marksman_ump45", + "ch_expert_ump45", + "ch_ump45_rof", + "ch_ump45_reflex", + "ch_ump45_acog", + "ch_ump45_fmj", + "ch_ump45_mastery", + "ch_marksman_uzi", + "ch_expert_uzi", + "ch_uzi_rof", + "ch_uzi_reflex", + "ch_uzi_acog", + "ch_uzi_fmj", + "ch_uzi_mastery", + "ch_marksman_p90", + "ch_expert_p90", + "ch_p90_rof", + "ch_p90_reflex", + "ch_p90_acog", + "ch_p90_fmj", + "ch_p90_mastery", + "ch_marksman_mp5k", + "ch_expert_mp5k", + "ch_mp5k_rof", + "ch_mp5k_reflex", + "ch_mp5k_acog", + "ch_mp5k_fmj", + "ch_mp5k_mastery", + "ch_marksman_rpd", + "ch_expert_rpd", + "ch_rpd_silencer", + "ch_rpd_reflex", + "ch_rpd_acog", + "ch_rpd_fmj", + "ch_rpd_mastery", + "ch_marksman_sa80", + "ch_expert_sa80", + "ch_sa80_silencer", + "ch_sa80_reflex", + "ch_sa80_acog", + "ch_sa80_fmj", + "ch_sa80_mastery", + "ch_marksman_aug", + "ch_expert_aug", + "ch_aug_silencer", + "ch_aug_reflex", + "ch_aug_acog", + "ch_aug_fmj", + "ch_aug_mastery", + "ch_marksman_wa2000", + "ch_expert_wa2000", + "ch_wa2000_silencer", + "ch_wa2000_acog", + "ch_wa2000_fmj", + "ch_wa2000_mastery", + "ch_expert_mg4", + "ch_marksman_mg4", + "ch_mg4_silencer", + "ch_mg4_reflex", + "ch_mg4_acog", + "ch_mg4_fmj", + "ch_mg4_mastery", + "ch_marksman_tmp", + "ch_expert_tmp", + "ch_marksman_pp2000", + "ch_expert_pp2000", + "ch_marksman_glock", + "ch_expert_glock", + "ch_marksman_beretta393", + "ch_expert_beretta393", + "ch_marksman_striker", + "ch_expert_striker", + "ch_marksman_m1014", + "ch_expert_m1014", + "ch_marksman_spas12", + "ch_expert_spas12", + "ch_marksman_aa12", + "ch_expert_aa12", + "ch_marksman_model1887", + "ch_expert_model1887", + "ch_marksman_ranger", + "ch_expert_ranger", + "ch_marksman_beretta", + "ch_expert_beretta", + "ch_marksman_usp", + "ch_expert_usp", + "ch_marksman_deserteagle", + "ch_expert_deserteagle", + "ch_marksman_coltanaconda", + "ch_expert_coltanaconda", + "ch_marksman_at4", + "ch_marksman_rpg", + "ch_marksman_javelin", + "ch_marksman_m79", + "ch_marksman_stinger", + "ch_marathon_pro", + "ch_bulletaccuracy_pro", + "ch_deadsilence_pro", + "ch_scrambler_pro", + "ch_sleightofhand_pro", + "ch_bling_pro", + "ch_stoppingpower_pro", + "ch_hardline_pro", + "ch_onemanarmy_pro", + "ch_coldblooded_pro", + "ch_laststand_pro", + "ch_scavenger_pro", + "ch_extendedmelee_pro", + "ch_detectexplosives_pro", + "ch_lightweight_pro", + "ch_dangerclose_pro", + "ch_uav", + "ch_airdrop", + "ch_counter_uav", + "ch_sentry", + "ch_predator_missile", + "ch_precision_airstrike", + "ch_harrier_strike", + "ch_helicopter", + "ch_airdrop_mega", + "ch_helicopter_flares", + "ch_stealth_airstrike", + "ch_helicopter_minigun", + "ch_ac130", + "ch_emp", + "ch_nuke", + "ch_uavs", + "ch_airstrikes", + "ch_helicopters", + "ch_airdrops", + "ch_grenadekill", + "ch_claymoreshot", + "ch_jackinthebox", + "ch_carnie", + "ch_masterblaster", + "ch_bullseye", + "ch_c4shot", + "ch_didyouseethat", + "ch_darkbringer", + "ch_tacticaldeletion", + "ch_its_personal", + "ch_heads_up", + "ch_looknohands", + "ch_predator", + "ch_carpetbomber", + "ch_yourefired", + "ch_choppervet", + "ch_jollygreengiant", + "ch_thespirit", + "ch_cobracommander", + "ch_spectre", + "ch_droppincrates", + "ch_absentee", + "ch_dronekiller", + "ch_finishingtouch", + "ch_truelies", + "ch_og", + "ch_transformer", + "ch_technokiller", + "ch_hidef", + "ch_deathfromabove", + "ch_theedge", + "ch_unbelievable", + "ch_owned", + "ch_stickman", + "ch_lastresort", + "ch_ghillie", + "ch_hotpotato", + "ch_carbomb", + "ch_backstabber", + "ch_slowbutsure", + "ch_miserylovescompany", + "ch_ouch", + "ch_rival", + "ch_cruelty", + "ch_thinkfast", + "ch_thinkfastconcussion", + "ch_thinkfastflash", + "ch_returntosender", + "ch_blindfire", + "ch_hardlanding", + "ch_extremecruelty", + "ch_tangodown", + "ch_countermvp", + "ch_goodbye", + "ch_basejump", + "ch_flyswatter", + "ch_vandalism", + "ch_crouchshot", + "ch_proneshot", + "ch_assists", + "ch_xrayvision", + "ch_backdraft", + "ch_shieldvet", + "ch_smasher", + "ch_backsmasher", + "ch_shield_damage", + "ch_shield_bullet", + "ch_shield_explosive", + "ch_surgical_assault", + "ch_surgical_smg", + "ch_surgical_lmg", + "ch_surgical_sniper", + "ch_expert_assault", + "ch_expert_smg", + "ch_expert_lmg", + "ch_multirpg", + "ch_multiclaymore", + "ch_multifrag", + "ch_multic4", + "ch_collateraldamage", + "ch_flawless", + "ch_fearless", + "ch_grouphug", + "ch_nbk", + "ch_allpro", + "ch_airborne", + "ch_moneyshot", + "ch_robinhood", + "ch_bangforbuck", + "ch_overdraft", + "ch_identitytheft", + "ch_atm", + "ch_timeismoney", + "ch_iamrich", + "ch_breakbank", + "ch_colorofmoney", + "ch_neverforget", + "ch_thebrink", + "ch_fastswap", + "ch_starplayer", + "ch_howthe", + "ch_dominos", + "ch_masterchef", + "ch_invincible", + "ch_survivalist", + "ch_counterclaymore", + "ch_counterc4", + "ch_enemyofthestate", + "ch_resourceful", + "ch_survivor", + "ch_bothbarrels", + "ch_omnicide", + "ch_wargasm", + "ch_thebiggertheyare", + "ch_thehardertheyfall", + "ch_crabmeat", + "ch_wopr", + "ch_thedenier", + "ch_carpetbomb", + "ch_redcarpet", + "ch_reaper", + "ch_nosecrets", + "ch_sunblock", + "ch_afterburner", + "ch_airsuperiority", + "ch_mgmaster", + "ch_slasher", + "ch_radiationsickness", + "ch_infected", + "ch_plague", + "ch_renaissance", + "ch_theloner", + "ch_6fears7", + "ch_thenumb", + "ch_martyr", + "ch_livingdead", + "ch_sidekick", + "ch_clickclickboom", + "ch_hijacker", + "ch_no", + "ch_victor_dm", + "ch_teamplayer", + "ch_victor_sd", + "ch_mvp_tdm", + "ch_teamplayer_hc", + "ch_victor_sab", + "ch_mvp_thc", + "ch_bombdown", + "ch_bombdefender", + "ch_bombplanter", + "ch_hero", + "ch_lastmanstanding", + "ch_saboteur", + "ch_knifevet", + "ch_laststandvet", + "ch_stealth", + "ch_concussionvet", + "ch_flashbangvet", + "ch_avenger", + "ch_prestige_10", + "" + }; + + enum(16) ENUM_4 + { + "none", + "desert", + "woodland", + "digital", + "red_tiger", + "blue_tiger", + "gold", + "prestige", + "arctic", + "red_urban", + "orange_fall" + }; + + enum(128) ENUM_5 + { + "specialty_null", + "specialty_null_gl", + "specialty_null_grip", + "specialty_null_shotgun", + "specialty_null_attachment", + "specialty_parabolic", + "specialty_gpsjammer", + "specialty_holdbreath", + "specialty_quieter", + "specialty_longersprint", + "specialty_detectexplosive", + "specialty_explosivedamage", + "specialty_pistoldeath", + "specialty_grenadepulldeath", + "specialty_bulletdamage", + "specialty_bulletpenetration", + "specialty_bulletaccuracy", + "specialty_bulletaccuracy2", + "specialty_rof", + "specialty_fastreload", + "specialty_extraammo", + "specialty_twoprimaries", + "specialty_armorvest", + "specialty_fraggrenade", + "specialty_specialgrenade", + "specialty_burstfire", + "specialty_blastshield", + "specialty_akimbo", + "specialty_siege", + "specialty_shield", + "specialty_falldamage", + "specialty_fmj", + "specialty_delaymine", + "specialty_feigndeath", + "specialty_jumpdive", + "specialty_localjammer", + "specialty_shellshock", + "specialty_fastmantle", + "specialty_explosivebullets", + "specialty_thermal", + "specialty_lightweight", + "specialty_finalstand", + "specialty_blackbox", + "specialty_steelnerves", + "specialty_quickdraw", + "specialty_flashgrenade", + "specialty_concussiongrenade", + "specialty_smokegrenade", + "specialty_empgrenade", + "specialty_scavenger", + "specialty_sitrep", + "specialty_amplify", + "specialty_extendedmags", + "specialty_saboteur", + "specialty_coldblooded", + "specialty_marathon", + "specialty_challenger", + "specialty_rearview", + "specialty_tacticalinsertion", + "specialty_endgame", + "specialty_carepackage", + "specialty_onemanarmy", + "specialty_littlebird_support", + "specialty_extendedmelee", + "specialty_bling", + "specialty_heartbreaker", + "specialty_selectivehearing", + "specialty_fastsnipe", + "specialty_improvedholdbreath", + "specialty_primarydeath", + "specialty_secondarybling", + "specialty_spygame", + "specialty_spygame2", + "specialty_automantle", + "specialty_fastsprintrecovery", + "specialty_c4death", + "specialty_hardline", + "specialty_combathigh", + "specialty_laststandoffhand", + "specialty_dangerclose", + "javelin_mp", + "stinger_mp", + "c4_mp", + "claymore_mp", + "rpg_mp", + "at4_mp", + "m79_mp", + "throwingknife_mp", + "semtex_mp", + "frag_grenade_mp", + "specialty_armorpiercing", + "specialty_omaquickchange", + "specialty_fastmeleerecovery", + "specialty_rollover", + "specialty_extraspecialduration", + "specialty_freerunner", + "specialty_copycat" + }; + + enum(48) ENUM_6 + { + "none", + "uav", + "airstrike", + "helicopter", + "ac130", + "predator_missile", + "helicopter_minigun", + "helicopter_mk19", + "nuke", + "double_uav", + "precision_airstrike", + "counter_uav", + "sentry", + "sentry_gl", + "airdrop", + "tank", + "airdrop_sentry_minigun", + "airdrop_predator_missile", + "littlebird_support", + "stealth_airstrike", + "harrier_airstrike", + "super_airstrike", + "helicopter_blackbox", + "helicopter_flares", + "emp", + "airdrop_mega" + }; + + enum(256) ENUM_7 + { + "none", + "killstreak", + "headshots", + "damagedone", + "damagetaken", + "knifekills", + "assists", + "pistolkills", + "grenadekills", + "multikill", + "finalkill", + "deaths", + "kills", + "uavs", + "airstrikes", + "helicopters", + "mvp", + "overkill", + "suicides", + "flankkills", + "flankdeaths", + "fragkills", + "c4kills", + "semtexkills", + "claymorekills", + "throwingknifekills", + "smgkills", + "arkills", + "rocketkills", + "shotgunkills", + "lmgkills", + "sniperkills", + "pistolheadshots", + "smgheadshots", + "arheadshots", + "shotgunheadshots", + "lmgheadshots", + "sniperheadshots", + "punisher", + "equipmentkills", + "bulletpenkills", + "revengekills", + "avengekills", + "rescues", + "longshots", + "higherrankkills", + "adskills", + "hipfirekills", + "laststandkills", + "laststanderkills", + "lowerrankkills", + "otherweaponkills", + "shotgundeaths", + "shortestlife", + "highlander", + "kdratio10", + "noawards", + "noflankdeaths", + "deathstreak", + "mostmultikills", + "killedotherteam", + "killedotherteamonelife", + "distancetraveled", + "sprinttime", + "crouchtime", + "pronetime", + "comebacks", + "longestlife", + "killcamtimewatched", + "killcamskipped", + "mostreloads", + "mostswaps", + "mostshotsfired", + "timeinspot", + "mostcamperkills", + "greatestavgalt", + "leastavgalt", + "killsteals", + "mostff", + "killedsameplayer", + "mostweaponsused", + "closertoenemies", + "mostclasseschanged", + "mosttacprevented", + "explosionssurvived", + "shieldblocks", + "fbhits", + "stunhits", + "scopedkills", + "thermalkills", + "thumperkills", + "kdratio", + "afk", + "participant", + "shieldkills", + "shielddeaths", + "throwbacks", + "bombsplanted", + "bombsdefused", + "targetsdestroyed", + "bombcarrierkills", + "killsasbombcarrier", + "bombscarried", + "pointscaptured", + "hqscaptured", + "hqsdestroyed", + "flagscaptured", + "flagsreturned", + "flagscarried", + "flagcarrierkills", + "killsasflagcarrier" + }; + + enum(1024) ENUM_8 + { + "cardicon_default", + "cardicon_aug_marksman", + "cardicon_aug_expert", + "cardicon_m240_marksman", + "cardicon_m240_expert", + "cardicon_sa80_marksman", + "cardicon_sa80_expert", + "cardicon_rpd_marksman", + "cardicon_rpd_expert", + "cardicon_mg4_marksman", + "cardicon_mg4_expert", + "cardicon_ak47_marksman", + "cardicon_ak47_expert", + "cardicon_masada_marksman", + "cardicon_masada_expert", + "cardicon_m16_marksman", + "cardicon_m16_expert", + "cardicon_tavor_marksman", + "cardicon_tavor_expert", + "cardicon_fn2000_marksman", + "cardicon_fn2000_expert", + "cardicon_m4_marksman", + "cardicon_m4_expert", + "cardicon_scar_marksman", + "cardicon_scar_expert", + "cardicon_fal_marksman", + "cardicon_fal_expert", + "cardicon_famas_marksman", + "cardicon_famas_expert", + "cardicon_mp5k_marksman", + "cardicon_mp5k_expert", + "cardicon_uzi_marksman", + "cardicon_uzi_expert", + "cardicon_kriss_marksman", + "cardicon_kriss_expert", + "cardicon_ump45_marksman", + "cardicon_ump45_expert", + "cardicon_p90_marksman", + "cardicon_p90_expert", + "cardicon_cheytac_marksman", + "cardicon_cheytac_expert", + "cardicon_m21_marksman", + "cardicon_m21_expert", + "cardicon_barrett_marksman", + "cardicon_barrett_expert", + "cardicon_wa2000_marksman", + "cardicon_wa2000_expert", + "cardicon_glock_marksman", + "cardicon_glock_expert", + "cardicon_tmp_marksman", + "cardicon_tmp_expert", + "cardicon_beretta393_marksman", + "cardicon_beretta393_expert", + "cardicon_pp2000_marksman", + "cardicon_pp2000_expert", + "cardicon_striker_marksman", + "cardicon_striker_expert", + "cardicon_aa12_marksman", + "cardicon_aa12_expert", + "cardicon_m1014_marksman", + "cardicon_m1014_expert", + "cardicon_spas12_marksman", + "cardicon_spas12_expert", + "cardicon_model1887_marksman", + "cardicon_model1887_expert", + "cardicon_ranger_marksman", + "cardicon_ranger_expert", + "cardicon_beretta_marksman", + "cardicon_beretta_expert", + "cardicon_usp_marksman", + "cardicon_usp_expert", + "cardicon_deserteagle_marksman", + "cardicon_deserteagle_expert", + "cardicon_coltanaconda_marksman", + "cardicon_coltanaconda_expert", + "cardicon_iwlogo", + "cardicon_heartbeatsensor", + "cardicon_minigun", + "cardicon_harrier", + "cardicon_pavelow", + "cardicon_noseart1", + "cardicon_seasnipers", + "cardicon_nightvision_1", + "cardicon_nightvision_2", + "cardicon_sniperscope", + "cardicon_compass", + "cardicon_moon", + "cardicon_biohazard", + "cardicon_radiation", + "cardicon_redhand", + "cardicon_spetsnaz", + "cardicon_tf141", + "cardicon_umbracatervae", + "cardicon_headshot", + "cardicon_car", + "cardicon_gumby", + "cardicon_doubletap", + "cardicon_fmj", + "cardicon_soap", + "cardicon_humantrophy", + "cardicon_skull", + "cardicon_xray", + "cardicon_skull_black", + "cardicon_pirate", + "cardicon_pirateflag", + "cardicon_treasurechest", + "cardicon_treasuremap", + "cardicon_league_grenade", + "cardicon_ball_soccer_1", + "cardicon_ball_baseball_1", + "cardicon_ball_basketball_1", + "cardicon_ball_football_1", + "cardicon_rhino", + "cardicon_lion", + "cardicon_bear", + "cardicon_tiger", + "cardicon_hyena", + "cardicon_kinggorilla", + "cardicon_thecow", + "cardicon_birdbrain", + "cardicon_claw", + "cardicon_stop", + "cardicon_burgertown", + "cardicon_bulb", + "cardicon_patch", + "cardicon_tire", + "cardicon_boot", + "cardicon_brassknuckle", + "cardicon_8ball", + "cardicon_mushroom", + "cardicon_assad", + "cardicon_makarov", + "cardicon_sheppard", + "cardicon_comic_shepherd", + "cardicon_grigsby", + "cardicon_taskforcearmy01", + "cardicon_ghillie", + "cardicon_price_ww2", + "cardicon_pricewoodland", + "cardicon_pricearctic", + "cardicon_comic_price", + "cardicon_toon_price_1", + "cardicon_brad", + "cardicon_tsuenami", + "cardicon_brock", + "cardicon_macgregor", + "cardicon_porterjustice", + "cardicon_grunt", + "cardicon_grunt_2", + "cardicon_readhead", + "cardicon_pacifier_blue", + "cardicon_pacifier_pink", + "cardicon_pushingupdaisies", + "cardicon_girlskull", + "cardicon_blue", + "cardicon_badgirl", + "cardicon_goodgirl", + "cardicon_sniper", + "cardicon_abduction", + "cardicon_illuminati", + "cardicon_cod4", + "cardicon_iw", + "cardicon_prestige1", + "cardicon_prestige2", + "cardicon_prestige3", + "cardicon_prestige4", + "cardicon_prestige5", + "cardicon_prestige6", + "cardicon_prestige7", + "cardicon_prestige8", + "cardicon_prestige9", + "cardicon_prestige10", + "cardicon_mw2_prestige1", + "cardicon_mw2_prestige2", + "cardicon_mw2_prestige3", + "cardicon_mw2_prestige4", + "cardicon_mw2_prestige5", + "cardicon_mw2_prestige6", + "cardicon_mw2_prestige7", + "cardicon_mw2_prestige8", + "cardicon_mw2_prestige9", + "cardicon_mw2_prestige10", + "cardicon_prestige10_02", + "cardicon_honeybadger01", + "cardicon_kitten", + "cardicon_nates", + "cardicon_tsunami", + "cardicon_warpig", + "cardicon_8bit_price", + "cardicon_ball_volleyball_1", + "cardicon_helmet_baseball_1", + "cardicon_helmet_football_1", + "cardicon_hockey_1", + "cardicon_hockey_2", + "cardicon_tennisracket", + "cardicon_ghost_bust", + "cardicon_koiker_hound", + "cardicon_sugarglider", + "cardicon_gears", + "cardicon_brassknuckles", + "cardicon_devilfinger", + "cardicon_gold", + "cardicon_icecream", + "cardicon_korean", + "cardicon_loadedfinger", + "cardicon_ac130", + "cardicon_uav", + "cardicon_carepackage", + "cardicon_counteruav", + "cardicon_sentrygun", + "cardicon_predatormissile", + "cardicon_harrierstrike", + "cardicon_attackchopper", + "cardicon_emergencyair", + "cardicon_pavelowkillstreak", + "cardicon_stealthkillstreak", + "cardicon_choppergunner", + "cardicon_empkillstreak", + "cardicon_tacticalnuke", + "cardicon_precair", + "cardicon_marathon", + "cardicon_sleightofhand", + "cardicon_scavenger", + "cardicon_dangerclose", + "cardicon_bling", + "cardicon_stoppingpower", + "cardicon_lightweight", + "cardicon_hardline", + "cardicon_coldblooded", + "cardicon_oma", + "cardicon_commando", + "cardicon_steadyaim", + "cardicon_scrambler", + "cardicon_sitrep", + "cardicon_laststand", + "cardicon_ninja", + "cardicon_frag", + "cardicon_semtex", + "cardicon_throwingknife", + "cardicon_tacticalinsertion", + "cardicon_blastshield", + "cardicon_c4", + "cardicon_claymore", + "cardicon_pvt1", + "cardicon_pfc1", + "cardicon_spc1", + "cardicon_cpl1", + "cardicon_sgt1", + "cardicon_ssgt1", + "cardicon_sfc1", + "cardicon_msgt1", + "cardicon_1stsgt1", + "cardicon_sgtmaj1", + "cardicon_cmdsgtmaj1", + "cardicon_2ndlt1", + "cardicon_1stlt1", + "cardicon_capt1", + "cardicon_maj1", + "cardicon_ltcol1", + "cardicon_col1", + "cardicon_bgen1", + "cardicon_majgen1", + "cardicon_ltgen1", + "cardicon_gen1", + "cardicon_comm1", + "cardicon_martyrdom", + "cardicon_painkiller", + "cardicon_finalstand", + "cardicon_copycat", + "cardicon_impale", + "cardicon_stab", + "cardicon_riotdeath", + "cardicon_b2", + "cardicon_bulletcase", + "cardicon_league_1911", + "cardicon_league_magnum", + "cardicon_opfor", + "cardicon_rangers", + "cardicon_seals", + "cardicon_usmc", + "cardicon_sas", + "cardicon_skullaward", + "cardicon_skullnbones", + "cardicon_chicken", + "cardicon_gametype", + "cardicon_tictac", + "cardicon_jets", + "cardicon_joystick", + "cardicon_devil", + "cardicon_knife", + "cardicon_thebomb", + "cardicon_juggernaut_2", + "cardicon_juggernaut_1", + "cardicon_ac130_angelflare", + "cardicon_bullets_50cal", + "cardicon_weed", + "cardicon_riot_shield", + "cardicon_dive", + "cardicon_ghost_skull", + "cardicon_gasmask", + "cardicon_iss", + "cardicon_knife_logo", + "cardicon_shotgun_shells", + "cardicon_rtrolling" + }; + + enum(1024) ENUM_9 + { + "cardtitle_default", + "cardtitle_theextreme", + "cardtitle_earlydetection", + "cardtitle_trackstar", + "cardtitle_freerunner", + "cardtitle_decathlete", + "cardtitle_2fast", + "cardtitle_hairtrigger", + "cardtitle_oneinchpunch", + "cardtitle_reloaded", + "cardtitle_bandolier", + "cardtitle_vulture", + "cardtitle_fullforce", + "cardtitle_sonicboom", + "cardtitle_dangerclose", + "cardtitle_doubledown", + "cardtitle_blingbling", + "cardtitle_armedanddangerous", + "cardtitle_highcaliber", + "cardtitle_kfactor", + "cardtitle_bitethebullet", + "cardtitle_speeddemon", + "cardtitle_readyfire", + "cardtitle_pathfinder", + "cardtitle_deadline", + "cardtitle_closesupport", + "cardtitle_invisible", + "cardtitle_uavjammer", + "cardtitle_doubleagent", + "cardtitle_fullarsenal", + "cardtitle_quickchange", + "cardtitle_armyof1", + "cardtitle_impaler", + "cardtitle_ninja", + "cardtitle_excalibur", + "cardtitle_sureshot", + "cardtitle_ironlungs", + "cardtitle_steelnerves", + "cardtitle_hardtokill", + "cardtitle_deadmansswitch", + "cardtitle_dyingbreath", + "cardtitle_disruptor", + "cardtitle_heartbreaker", + "cardtitle_counterintel", + "cardtitle_xrayvision", + "cardtitle_amplifier", + "cardtitle_eod", + "cardtitle_silentstrike", + "cardtitle_spygame", + "cardtitle_artofstealth", + "cardtitle_aug_sharpshooter", + "cardtitle_aug_marksman", + "cardtitle_aug_veteran", + "cardtitle_aug_expert", + "cardtitle_aug_master", + "cardtitle_m240_sharpshooter", + "cardtitle_m240_marksman", + "cardtitle_m240_veteran", + "cardtitle_m240_expert", + "cardtitle_m240_master", + "cardtitle_sa80_sharpshooter", + "cardtitle_sa80_marksman", + "cardtitle_sa80_veteran", + "cardtitle_sa80_expert", + "cardtitle_sa80_master", + "cardtitle_rpd_sharpshooter", + "cardtitle_rpd_marksman", + "cardtitle_rpd_veteran", + "cardtitle_rpd_expert", + "cardtitle_rpd_master", + "cardtitle_mg4_sharpshooter", + "cardtitle_mg4_marksman", + "cardtitle_mg4_veteran", + "cardtitle_mg4_expert", + "cardtitle_mg4_master", + "cardtitle_ak47_sharpshooter", + "cardtitle_ak47_marksman", + "cardtitle_ak47_veteran", + "cardtitle_ak47_expert", + "cardtitle_ak47_master", + "cardtitle_masada_sharpshooter", + "cardtitle_masada_marksman", + "cardtitle_masada_veteran", + "cardtitle_masada_expert", + "cardtitle_masada_master", + "cardtitle_m16_sharpshooter", + "cardtitle_m16_marksman", + "cardtitle_m16_veteran", + "cardtitle_m16_expert", + "cardtitle_m16_master", + "cardtitle_tavor_sharpshooter", + "cardtitle_tavor_marksman", + "cardtitle_tavor_veteran", + "cardtitle_tavor_expert", + "cardtitle_tavor_master", + "cardtitle_fn2000_sharpshooter", + "cardtitle_fn2000_marksman", + "cardtitle_fn2000_veteran", + "cardtitle_fn2000_expert", + "cardtitle_fn2000_master", + "cardtitle_m4_sharpshooter", + "cardtitle_m4_marksman", + "cardtitle_m4_veteran", + "cardtitle_m4_expert", + "cardtitle_m4_master", + "cardtitle_scar_sharpshooter", + "cardtitle_scar_marksman", + "cardtitle_scar_veteran", + "cardtitle_scar_expert", + "cardtitle_scar_master", + "cardtitle_fal_sharpshooter", + "cardtitle_fal_marksman", + "cardtitle_fal_veteran", + "cardtitle_fal_expert", + "cardtitle_fal_master", + "cardtitle_famas_sharpshooter", + "cardtitle_famas_marksman", + "cardtitle_famas_veteran", + "cardtitle_famas_expert", + "cardtitle_famas_master", + "cardtitle_mp5k_sharpshooter", + "cardtitle_mp5k_marksman", + "cardtitle_mp5k_veteran", + "cardtitle_mp5k_expert", + "cardtitle_mp5k_master", + "cardtitle_uzi_sharpshooter", + "cardtitle_uzi_marksman", + "cardtitle_uzi_veteran", + "cardtitle_uzi_expert", + "cardtitle_uzi_master", + "cardtitle_kriss_sharpshooter", + "cardtitle_kriss_marksman", + "cardtitle_kriss_veteran", + "cardtitle_kriss_expert", + "cardtitle_kriss_master", + "cardtitle_ump45_sharpshooter", + "cardtitle_ump45_marksman", + "cardtitle_ump45_veteran", + "cardtitle_ump45_expert", + "cardtitle_ump45_master", + "cardtitle_p90_sharpshooter", + "cardtitle_p90_marksman", + "cardtitle_p90_veteran", + "cardtitle_p90_expert", + "cardtitle_p90_master", + "cardtitle_cheytac_sharpshooter", + "cardtitle_cheytac_marksman", + "cardtitle_cheytac_veteran", + "cardtitle_cheytac_expert", + "cardtitle_cheytac_master", + "cardtitle_m21_sharpshooter", + "cardtitle_m21_marksman", + "cardtitle_m21_veteran", + "cardtitle_m21_expert", + "cardtitle_m21_master", + "cardtitle_barrett_sharpshooter", + "cardtitle_barrett_marksman", + "cardtitle_barrett_veteran", + "cardtitle_barrett_expert", + "cardtitle_barrett_master", + "cardtitle_wa2000_sharpshooter", + "cardtitle_wa2000_marksman", + "cardtitle_wa2000_veteran", + "cardtitle_wa2000_expert", + "cardtitle_wa2000_master", + "cardtitle_glock_marksman", + "cardtitle_glock_veteran", + "cardtitle_glock_expert", + "cardtitle_glock_master", + "cardtitle_tmp_marksman", + "cardtitle_tmp_veteran", + "cardtitle_tmp_expert", + "cardtitle_tmp_master", + "cardtitle_beretta393_marksman", + "cardtitle_beretta393_veteran", + "cardtitle_beretta393_expert", + "cardtitle_beretta393_master", + "cardtitle_pp2000_marksman", + "cardtitle_pp2000_veteran", + "cardtitle_pp2000_expert", + "cardtitle_pp2000_master", + "cardtitle_striker_marksman", + "cardtitle_striker_veteran", + "cardtitle_striker_expert", + "cardtitle_striker_master", + "cardtitle_aa12_marksman", + "cardtitle_aa12_veteran", + "cardtitle_aa12_expert", + "cardtitle_aa12_master", + "cardtitle_m1014_marksman", + "cardtitle_m1014_veteran", + "cardtitle_m1014_expert", + "cardtitle_m1014_master", + "cardtitle_spas12_marksman", + "cardtitle_spas12_veteran", + "cardtitle_spas12_expert", + "cardtitle_spas12_master", + "cardtitle_model1887_marksman", + "cardtitle_model1887_veteran", + "cardtitle_model1887_expert", + "cardtitle_model1887_master", + "cardtitle_ranger_marksman", + "cardtitle_ranger_veteran", + "cardtitle_ranger_expert", + "cardtitle_ranger_master", + "cardtitle_beretta_marksman", + "cardtitle_beretta_veteran", + "cardtitle_beretta_expert", + "cardtitle_beretta_master", + "cardtitle_usp_marksman", + "cardtitle_usp_veteran", + "cardtitle_usp_expert", + "cardtitle_usp_master", + "cardtitle_deserteagle_marksman", + "cardtitle_deserteagle_veteran", + "cardtitle_deserteagle_expert", + "cardtitle_deserteagle_master", + "cardtitle_coltanaconda_marksman", + "cardtitle_coltanaconda_veteran", + "cardtitle_coltanaconda_expert", + "cardtitle_coltanaconda_master", + "cardtitle_shotdown", + "cardtitle_dishtherock", + "cardtitle_flyswatter", + "cardtitle_lonewolf", + "cardtitle_getreal", + "cardtitle_overwatch", + "cardtitle_tangodown", + "cardtitle_teamplayer", + "cardtitle_destroyer", + "cardtitle_its_sabotage", + "cardtitle_dzclear", + "cardtitle_fireforget", + "cardtitle_flag_united_states", + "cardtitle_patriot", + "cardtitle_flag_uk", + "cardtitle_fng", + "cardtitle_flag_canada", + "cardtitle_greatwhite", + "cardtitle_flag_australia", + "cardtitle_continental", + "cardtitle_flag_swiss", + "cardtitle_neutral", + "cardtitle_flag_mexico", + "cardtitle_flag_spain", + "cardtitle_conquerer", + "cardtitle_flag_austria", + "cardtitle_terminator", + "cardtitle_flag_japan", + "cardtitle_risingsun", + "cardtitle_flag_brazil", + "cardtitle_redeemer", + "cardtitle_flag_russia", + "cardtitle_flag_france", + "cardtitle_flag_germany", + "cardtitle_flag_italy", + "cardtitle_flag_norway", + "cardtitle_flag_greece", + "cardtitle_flag_sweden", + "cardtitle_flag_ireland", + "cardtitle_flag_belgium", + "cardtitle_flag_finland", + "cardtitle_flag_luxemburg", + "cardtitle_flag_czech", + "cardtitle_flag_netherlands", + "cardtitle_flag_newzealand", + "cardtitle_flag_philippines", + "cardtitle_flag_poland", + "cardtitle_flag_portugal", + "cardtitle_flag_denmark", + "cardtitle_flag_saudiarabia", + "cardtitle_flag_singapore", + "cardtitle_flag_southafrica", + "cardtitle_flag_southkorea", + "cardtitle_flag_hongkong", + "cardtitle_flag_india", + "cardtitle_flag_taiwan", + "cardtitle_flag_united_arab_emirates", + "cardtitle_flag_elsalvador", + "cardtitle_flag_china", + "cardtitle_flag_iran", + "cardtitle_pyro", + "cardtitle_fired", + "cardtitle_hotshot", + "cardtitle_deathfromabove", + "cardtitle_steelreign", + "cardtitle_feared", + "cardtitle_preemptive", + "cardtitle_timeontarget", + "cardtitle_publicenemy", + "cardtitle_bombshell", + "cardtitle_thabomb", + "cardtitle_brokenarrow", + "cardtitle_explosiveordinance", + "cardtitle_madbomber", + "cardtitle_givinstatic", + "cardtitle_jumpjet", + "cardtitle_droppincrates", + "cardtitle_submittoauthority", + "cardtitle_harcoreonly", + "cardtitle_lowprofile", + "cardtitle_sigint", + "cardtitle_intergalactic", + "cardtitle_nohands", + "cardtitle_bowdown", + "cardtitle_drifter", + "cardtitle_bob", + "cardtitle_ghostrider", + "cardtitle_survivor", + "cardtitle_accidentprone", + "cardtitle_squawkbox", + "cardtitle_cr1zby", + "cardtitle_companioncrate", + "cardtitle_straightup", + "cardtitle_pushindaisy", + "cardtitle_voyeur", + "cardtitle_sprayandpray", + "cardtitle_jointops", + "cardtitle_avenger", + "cardtitle_sharepackage", + "cardtitle_blackout", + "cardtitle_jollygreen", + "cardtitle_spirit", + "cardtitle_grimreaper", + "cardtitle_cobracommander", + "cardtitle_spectre", + "cardtitle_rainoffire", + "cardtitle_chickmagnet", + "cardtitle_starfishprime", + "cardtitle_endofline", + "cardtitle_wopr", + "cardtitle_watchman", + "cardtitle_omnipotent", + "cardtitle_planewhisperer", + "cardtitle_rollingthunder", + "cardtitle_fullthrottle", + "cardtitle_airwolf", + "cardtitle_gambler", + "cardtitle_santaclaus", + "cardtitle_pineappleexpress", + "cardtitle_catchshrapnel", + "cardtitle_mastermind", + "cardtitle_jackinthebox", + "cardtitle_copperfield", + "cardtitle_takeastab", + "cardtitle_masterblaster", + "cardtitle_juggernaut", + "cardtitle_bullseye", + "cardtitle_stuckonyou", + "cardtitle_plasticman", + "cardtitle_c4andafter", + "cardtitle_silentknight", + "cardtitle_darkbringer", + "cardtitle_tacticaldeletion", + "cardtitle_itspersonal", + "cardtitle_fragout", + "cardtitle_cloakanddagger", + "cardtitle_mylilpwny", + "cardtitle_gettothechoppa", + "cardtitle_booyah", + "cardtitle_streaker", + "cardtitle_1bullet2kills", + "cardtitle_dictator", + "cardtitle_surgical", + "cardtitle_crackinskulls", + "cardtitle_popoff", + "cardtitle_boomheadshot", + "cardtitle_faceoff", + "cardtitle_headrush", + "cardtitle_mach5", + "cardtitle_notintheface", + "cardtitle_perfectionist", + "cardtitle_badaboom", + "cardtitle_genocidal", + "cardtitle_partinggift", + "cardtitle_ambush", + "cardtitle_pinpuller", + "cardtitle_boomboompow", + "cardtitle_anarchist", + "cardtitle_highlander", + "cardtitle_enemybenefits", + "cardtitle_nbk", + "cardtitle_allpro", + "cardtitle_hardtarget", + "cardtitle_dronekiller", + "cardtitle_truelies", + "cardtitle_transformer", + "cardtitle_angelofdeath", + "cardtitle_hidef", + "cardtitle_unbelievable", + "cardtitle_stickman", + "cardtitle_lastresort", + "cardtitle_philanthropist", + "cardtitle_absenteekiller", + "cardtitle_finishingtouch", + "cardtitle_og", + "cardtitle_technokiller", + "cardtitle_owned", + "cardtitle_tagyoureit", + "cardtitle_boilermaker", + "cardtitle_backstabber", + "cardtitle_stungun", + "cardtitle_heart", + "cardtitle_noobtuber", + "cardtitle_rival", + "cardtitle_omfg", + "cardtitle_thinkfast", + "cardtitle_concussive", + "cardtitle_lightsout", + "cardtitle_backfire", + "cardtitle_blindfire", + "cardtitle_duckhunter", + "cardtitle_omnicide", + "cardtitle_devastator", + "cardtitle_mvpassassin", + "cardtitle_timeismoney", + "cardtitle_imrich", + "cardtitle_moneyshot", + "cardtitle_makeitrain", + "cardtitle_clayback", + "cardtitle_robinhood", + "cardtitle_madman", + "cardtitle_idthief", + "cardtitle_newjack", + "cardtitle_bloodmoney", + "cardtitle_flatliner", + "cardtitle_evildead", + "cardtitle_quickdraw", + "cardtitle_hiredgun", + "cardtitle_mastatdon", + "cardtitle_howthe", + "cardtitle_dominofx", + "cardtitle_halfbaked", + "cardtitle_bam", + "cardtitle_invincible", + "cardtitle_livelong", + "cardtitle_claypigeon", + "cardtitle_reversaloffortune", + "cardtitle_iceman", + "cardtitle_enemyofthestate", + "cardtitle_friendswith", + "cardtitle_legend", + "cardtitle_wargasm", + "cardtitle_biggertheyare", + "cardtitle_harderthey", + "cardtitle_epic", + "cardtitle_denier", + "cardtitle_carpetbomber", + "cardtitle_bombsaway", + "cardtitle_bigbrother", + "cardtitle_uavrays", + "cardtitle_afterburner", + "cardtitle_topgun", + "cardtitle_gat", + "cardtitle_theripper", + "cardtitle_allyourbase", + "cardtitle_globalthermo", + "cardtitle_sbd", + "cardtitle_toxicavenger", + "cardtitle_infected", + "cardtitle_plague", + "cardtitle_klepto", + "cardtitle_behindenemy", + "cardtitle_6fears7", + "cardtitle_comfortablynumb", + "cardtitle_martyr", + "cardtitle_livingdead", + "cardtitle_sidekick", + "cardtitle_clickclickboom", + "cardtitle_hijacker", + "cardtitle_bountyhunter", + "cardtitle_no", + "cardtitle_sentrymaster", + "cardtitle_predatormaster", + "cardtitle_airstrikemaster", + "cardtitle_harriermaster", + "cardtitle_helimaster", + "cardtitle_pavelowmaster", + "cardtitle_stealthmaster", + "cardtitle_choppermaster", + "cardtitle_ac130master", + "cardtitle_blademaster", + "cardtitle_laststandmaster", + "cardtitle_silencermaster", + "cardtitle_flashmaster", + "cardtitle_stunmaster", + "cardtitle_sentryveteran", + "cardtitle_predatorveteran", + "cardtitle_airstrikeveteran", + "cardtitle_harrierveteran", + "cardtitle_heliveteran", + "cardtitle_pavelowveteran", + "cardtitle_stealthveteran", + "cardtitle_chopperveteran", + "cardtitle_ac130veteran", + "cardtitle_bladeveteran", + "cardtitle_laststandveteran", + "cardtitle_silencerveteran", + "cardtitle_flashveteran", + "cardtitle_stunveteran", + "cardtitle_headsup", + "cardtitle_predator", + "cardtitle_automator", + "cardtitle_shotover", + "cardtitle_stringfellow", + "cardtitle_doctor", + "cardtitle_coldsteel", + "cardtitle_inciser", + "cardtitle_phoenixrising", + "cardtitle_suppressor", + "cardtitle_shockandawe", + "cardtitle_flasher", + "cardtitle_handsfree", + "cardtitle_clusterbomb", + "cardtitle_rejected", + "cardtitle_skycaptain", + "cardtitle_cobrakai", + "cardtitle_godhand", + "cardtitle_unseen", + "cardtitle_at4_marksman", + "cardtitle_javelin_marksman", + "cardtitle_m79_marksman", + "cardtitle_rpg_marksman", + "cardtitle_stinger_marksman", + "cardtitle_at4_expert", + "cardtitle_javelin_expert", + "cardtitle_m79_expert", + "cardtitle_rpg_expert", + "cardtitle_stinger_expert", + "cardtitle_at4_veteran", + "cardtitle_javelin_veteran", + "cardtitle_m79_veteran", + "cardtitle_rpg_veteran", + "cardtitle_stinger_veteran", + "cardtitle_at4_master", + "cardtitle_javelin_master", + "cardtitle_m79_master", + "cardtitle_rpg_master", + "cardtitle_stinger_master", + "cardtitle_ssdd", + "cardtitle_prestige1", + "cardtitle_prestige2", + "cardtitle_prestige3", + "cardtitle_prestige4", + "cardtitle_prestige5", + "cardtitle_prestige6", + "cardtitle_prestige7", + "cardtitle_prestige8", + "cardtitle_prestige9", + "cardtitle_prestige10", + "cardtitle_20", + "cardtitle_30", + "cardtitle_40", + "cardtitle_50", + "cardtitle_60", + "cardtitle_70", + "cardtitle_20a", + "cardtitle_30a", + "cardtitle_40a", + "cardtitle_50a", + "cardtitle_60a", + "cardtitle_70a", + "cardtitle_grassyknoll", + "cardtitle_ghilliemist", + "cardtitle_rezero", + "cardtitle_blunttrauma", + "cardtitle_smashhit", + "cardtitle_backsmasher", + "cardtitle_protectserve", + "cardtitle_bulletproof", + "cardtitle_unbreakable", + "cardtitle_evilchicken", + "cardtitle_nolaststand" + }; + + enum(8) ENUM_10 + { + "cardnameplate_default", + "cardnameplate_test" + }; + + enum ENUM_11 + { + "none", + "neutral", + "allies", + "axis" + }; + + enum(16) ENUM_12 + { + "dm", + "tdm", + "dsd", + "sab", + "dom", + "koth", + "oneflag", + "arena", + "ctf" + }; + + struct root + { + int awards[ENUM_7]; + int bests[ENUM_7]; + int experience; + int restXPGoal; + int prestige; + int level; + int score; + int kills; + int killStreak; + int deaths; + int deathStreak; + int assists; + int headshots; + int teamkills; + int suicides; + int timePlayedAllies; + int timePlayedOpfor; + int timePlayedOther; + int timePlayedTotal; + int kdRatio; + int wins; + int losses; + int ties; + int winStreak; + int currentWinStreak; + int winLossRatio; + int hits; + int misses; + int totalShots; + int accuracy; + int money; + int timeSinceLastLoot; + int lastPlayedTime; + STRUCT_4 round; + bool weaponNew[ENUM_1]; + bool camoNew[ENUM_1][ENUM_4]; + bool attachmentNew[ENUM_1][ENUM_2]; + bool perkNew[ENUM_5]; + bool featureNew[ENUM_0]; + bool challengeTierNew[100]; + bool killstreakNew[ENUM_6]; + STRUCT_2 customClasses[15]; + byte challengeState[ENUM_3]; + int challengeProgress[ENUM_3]; + ENUM_8 cardIcon; + ENUM_9 cardTitle; + ENUM_10 cardNameplate; + ENUM_6 killstreaks[3]; + short skills[ENUM_12]; + bool iconNew[ENUM_8]; + bool titleNew[ENUM_9]; + bool iconUnlocked[ENUM_8]; + bool titleUnlocked[ENUM_9]; + bool killstreakUnlocked[ENUM_6]; + }; + + struct STRUCT_1 + { + ENUM_1 weapon; + ENUM_2 attachment[2]; + ENUM_4 camo; + pad(4); + }; + + struct STRUCT_2 + { + bool inUse; + STRUCT_1 weaponSetups[2]; + ENUM_5 perks[5]; + ENUM_1 specialGrenade; + string(21) name; + ENUM_5 _deathstreak; + pad(4); + }; + + struct STRUCT_3 + { + ENUM_7 award; + int value; + }; + + struct STRUCT_4 + { + int kills; + int killStreak; + int deaths; + int score; + int timePlayed; + bool win; + bool loss; + ENUM_11 scoreboardType; + int totalXp; + int scoreXp; + int challengeXp; + int matchXp; + int miscXp; + byte awardCount; + STRUCT_3 awards[5]; + pad(54); + }; +} + + +// ==================== +// Version 157 +// Calculated checksum did not match checksum in file +// Overriding checksum to match original value +// ==================== +version 157 +{ + checksumoverride 2074144879; + + enum(32) ENUM_0 + { + "cac", + "demolitions", + "sniper", + "challenges", + "hardcore", + "oldschool", + "clantag", + "prestige", + "cas", + "playercard", + "playercard_title", + "playercard_icon", + "token_1", + "token_2", + "token_3", + "token_4", + "token_5", + "token_6", + "token_7", + "token_8", + "token_9", + "token_10", + "token_11", + "token_12", + "ghillie_urban", + "ghillie_arctic", + "ghillie_desert", + "ghillie_forest" + }; + + enum(128) ENUM_1 + { + "none", + "beretta393", + "beretta", + "usp", + "deserteagle", + "deserteaglegold", + "coltanaconda", + "glock", + "ak47", + "mp44", + "g3", + "g36c", + "m16", + "m4", + "fn2000", + "famas", + "fal", + "scar", + "tavor", + "masada", + "mp5k", + "uzi", + "p90", + "kriss", + "ump45", + "pp2000", + "tmp", + "m1014", + "ranger", + "striker", + "aa12", + "model1887", + "spas12", + "rpd", + "sa80", + "aug", + "mg4", + "m240", + "barrett", + "cheytac", + "m21", + "wa2000", + "gl", + "rpg", + "c4", + "c4Death", + "claymore", + "javelin", + "stinger", + "at4", + "m79", + "frag_grenade", + "frag_scavenger_grenade", + "flash_grenade", + "smoke_grenade", + "concussion_grenade", + "emp_grenade", + "riotshield", + "throwingknife", + "onemanarmy", + "m40a3", + "ak47classic", + "ak74u", + "peacekeeper" + }; + + enum(20) ENUM_2 + { + "none", + "gl", + "reflex", + "silencer", + "acog", + "grip", + "akimbo", + "thermal", + "shotgun", + "heartbeat", + "fmj", + "xmags", + "rof", + "boom", + "eotech", + "tactical" + }; + + enum(512) ENUM_3 + { + "ch_prestige", + "pr_marksman_m16", + "pr_expert_m16", + "pr_marksman_famas", + "pr_expert_famas", + "pr_marksman_tavor", + "pr_expert_tavor", + "pr_marksman_fal", + "pr_expert_fal", + "pr_marksman_ak47", + "pr_expert_ak47", + "pr_marksman_m240", + "pr_expert_m240", + "pr_marksman_m4", + "pr_expert_m4", + "pr_marksman_masada", + "pr_expert_masada", + "pr_marksman_scar", + "pr_expert_scar", + "pr_marksman_fn2000", + "pr_expert_fn2000", + "pr_marksman_cheytac", + "pr_expert_cheytac", + "pr_marksman_barrett", + "pr_expert_barrett", + "pr_marksman_m21", + "pr_expert_m21", + "pr_marksman_kriss", + "pr_expert_kriss", + "pr_marksman_ump45", + "pr_expert_ump45", + "pr_marksman_uzi", + "pr_expert_uzi", + "pr_marksman_p90", + "pr_expert_p90", + "pr_marksman_mp5k", + "pr_expert_mp5k", + "pr_marksman_rpd", + "pr_expert_rpd", + "pr_marksman_sa80", + "pr_expert_sa80", + "pr_marksman_aug", + "pr_expert_aug", + "pr_marksman_tmp", + "pr_expert_tmp", + "pr_marksman_pp2000", + "pr_expert_pp2000", + "pr_marksman_glock", + "pr_expert_glock", + "pr_marksman_beretta393", + "pr_expert_beretta393", + "pr_marksman_striker", + "pr_expert_striker", + "pr_marksman_m1014", + "pr_expert_m1014", + "pr_marksman_spas12", + "pr_expert_spas12", + "pr_marksman_aa12", + "pr_expert_aa12", + "pr_marksman_model1887", + "pr_expert_model1887", + "pr_marksman_ranger", + "pr_expert_ranger", + "pr_marksman_beretta", + "pr_expert_beretta", + "pr_marksman_usp", + "pr_expert_usp", + "pr_marksman_deserteagle", + "pr_expert_deserteagle", + "pr_marksman_coltanaconda", + "pr_expert_coltanaconda", + "pr_marksman_wa2000", + "pr_expert_wa2000", + "pr_marksman_mg4", + "pr_expert_mg4", + "pr_marksman_at4", + "pr_expert_at4", + "pr_marksman_rpg", + "pr_expert_rpg", + "pr_marksman_javelin", + "pr_expert_javelin", + "pr_marksman_m79", + "pr_expert_m79", + "pr_marksman_stinger", + "pr_expert_stinger", + "ch_marksman_m16", + "ch_expert_m16", + "ch_m16_gl", + "ch_m16_reflex", + "ch_m16_silencer", + "ch_m16_acog", + "ch_m16_fmj", + "ch_m16_mastery", + "ch_marksman_famas", + "ch_expert_famas", + "ch_famas_gl", + "ch_famas_reflex", + "ch_famas_silencer", + "ch_famas_acog", + "ch_famas_fmj", + "ch_famas_mastery", + "ch_marksman_tavor", + "ch_expert_tavor", + "ch_tavor_gl", + "ch_tavor_reflex", + "ch_tavor_silencer", + "ch_tavor_acog", + "ch_tavor_fmj", + "ch_tavor_mastery", + "ch_marksman_fal", + "ch_expert_fal", + "ch_fal_gl", + "ch_fal_reflex", + "ch_fal_silencer", + "ch_fal_acog", + "ch_fal_fmj", + "ch_fal_mastery", + "ch_marksman_ak47", + "ch_expert_ak47", + "ch_ak47_gl", + "ch_ak47_reflex", + "ch_ak47_silencer", + "ch_ak47_acog", + "ch_ak47_fmj", + "ch_ak47_mastery", + "ch_marksman_m240", + "ch_expert_m240", + "ch_m240_reflex", + "ch_m240_silencer", + "ch_m240_acog", + "ch_m240_fmj", + "ch_m240_mastery", + "ch_marksman_m4", + "ch_expert_m4", + "ch_m4_gl", + "ch_m4_reflex", + "ch_m4_silencer", + "ch_m4_acog", + "ch_m4_fmj", + "ch_m4_mastery", + "ch_marksman_masada", + "ch_expert_masada", + "ch_masada_gl", + "ch_masada_reflex", + "ch_masada_silencer", + "ch_masada_acog", + "ch_masada_fmj", + "ch_masada_mastery", + "ch_marksman_scar", + "ch_expert_scar", + "ch_scar_gl", + "ch_scar_reflex", + "ch_scar_silencer", + "ch_scar_acog", + "ch_scar_fmj", + "ch_scar_mastery", + "ch_marksman_fn2000", + "ch_expert_fn2000", + "ch_fn2000_gl", + "ch_fn2000_reflex", + "ch_fn2000_silencer", + "ch_fn2000_acog", + "ch_fn2000_fmj", + "ch_fn2000_mastery", + "ch_marksman_cheytac", + "ch_expert_cheytac", + "ch_cheytac_silencer", + "ch_cheytac_acog", + "ch_cheytac_fmj", + "ch_cheytac_mastery", + "ch_marksman_barrett", + "ch_expert_barrett", + "ch_barrett_silencer", + "ch_barrett_acog", + "ch_barrett_fmj", + "ch_barrett_mastery", + "ch_marksman_m21", + "ch_expert_m21", + "ch_m21_silencer", + "ch_m21_acog", + "ch_m21_fmj", + "ch_m21_mastery", + "ch_marksman_kriss", + "ch_expert_kriss", + "ch_kriss_rof", + "ch_kriss_reflex", + "ch_kriss_acog", + "ch_kriss_fmj", + "ch_kriss_mastery", + "ch_marksman_ump45", + "ch_expert_ump45", + "ch_ump45_rof", + "ch_ump45_reflex", + "ch_ump45_acog", + "ch_ump45_fmj", + "ch_ump45_mastery", + "ch_marksman_uzi", + "ch_expert_uzi", + "ch_uzi_rof", + "ch_uzi_reflex", + "ch_uzi_acog", + "ch_uzi_fmj", + "ch_uzi_mastery", + "ch_marksman_p90", + "ch_expert_p90", + "ch_p90_rof", + "ch_p90_reflex", + "ch_p90_acog", + "ch_p90_fmj", + "ch_p90_mastery", + "ch_marksman_mp5k", + "ch_expert_mp5k", + "ch_mp5k_rof", + "ch_mp5k_reflex", + "ch_mp5k_acog", + "ch_mp5k_fmj", + "ch_mp5k_mastery", + "ch_marksman_rpd", + "ch_expert_rpd", + "ch_rpd_silencer", + "ch_rpd_reflex", + "ch_rpd_acog", + "ch_rpd_fmj", + "ch_rpd_mastery", + "ch_marksman_sa80", + "ch_expert_sa80", + "ch_sa80_silencer", + "ch_sa80_reflex", + "ch_sa80_acog", + "ch_sa80_fmj", + "ch_sa80_mastery", + "ch_marksman_aug", + "ch_expert_aug", + "ch_aug_silencer", + "ch_aug_reflex", + "ch_aug_acog", + "ch_aug_fmj", + "ch_aug_mastery", + "ch_marksman_wa2000", + "ch_expert_wa2000", + "ch_wa2000_silencer", + "ch_wa2000_acog", + "ch_wa2000_fmj", + "ch_wa2000_mastery", + "ch_expert_mg4", + "ch_marksman_mg4", + "ch_mg4_silencer", + "ch_mg4_reflex", + "ch_mg4_acog", + "ch_mg4_fmj", + "ch_mg4_mastery", + "ch_marksman_tmp", + "ch_expert_tmp", + "ch_marksman_pp2000", + "ch_expert_pp2000", + "ch_marksman_glock", + "ch_expert_glock", + "ch_marksman_beretta393", + "ch_expert_beretta393", + "ch_marksman_striker", + "ch_expert_striker", + "ch_marksman_m1014", + "ch_expert_m1014", + "ch_marksman_spas12", + "ch_expert_spas12", + "ch_marksman_aa12", + "ch_expert_aa12", + "ch_marksman_model1887", + "ch_expert_model1887", + "ch_marksman_ranger", + "ch_expert_ranger", + "ch_marksman_beretta", + "ch_expert_beretta", + "ch_marksman_usp", + "ch_expert_usp", + "ch_marksman_deserteagle", + "ch_expert_deserteagle", + "ch_marksman_coltanaconda", + "ch_expert_coltanaconda", + "ch_marksman_at4", + "ch_marksman_rpg", + "ch_marksman_javelin", + "ch_marksman_m79", + "ch_marksman_stinger", + "ch_marathon_pro", + "ch_bulletaccuracy_pro", + "ch_deadsilence_pro", + "ch_scrambler_pro", + "ch_sleightofhand_pro", + "ch_bling_pro", + "ch_stoppingpower_pro", + "ch_hardline_pro", + "ch_onemanarmy_pro", + "ch_coldblooded_pro", + "ch_laststand_pro", + "ch_scavenger_pro", + "ch_extendedmelee_pro", + "ch_detectexplosives_pro", + "ch_lightweight_pro", + "ch_dangerclose_pro", + "ch_uav", + "ch_airdrop", + "ch_counter_uav", + "ch_sentry", + "ch_predator_missile", + "ch_precision_airstrike", + "ch_harrier_strike", + "ch_helicopter", + "ch_airdrop_mega", + "ch_helicopter_flares", + "ch_stealth_airstrike", + "ch_helicopter_minigun", + "ch_ac130", + "ch_emp", + "ch_nuke", + "ch_uavs", + "ch_airstrikes", + "ch_helicopters", + "ch_airdrops", + "ch_grenadekill", + "ch_claymoreshot", + "ch_jackinthebox", + "ch_carnie", + "ch_masterblaster", + "ch_bullseye", + "ch_c4shot", + "ch_didyouseethat", + "ch_darkbringer", + "ch_tacticaldeletion", + "ch_its_personal", + "ch_heads_up", + "ch_looknohands", + "ch_predator", + "ch_carpetbomber", + "ch_yourefired", + "ch_choppervet", + "ch_jollygreengiant", + "ch_thespirit", + "ch_cobracommander", + "ch_spectre", + "ch_droppincrates", + "ch_absentee", + "ch_dronekiller", + "ch_finishingtouch", + "ch_truelies", + "ch_og", + "ch_transformer", + "ch_technokiller", + "ch_hidef", + "ch_deathfromabove", + "ch_theedge", + "ch_unbelievable", + "ch_owned", + "ch_stickman", + "ch_lastresort", + "ch_ghillie", + "ch_hotpotato", + "ch_carbomb", + "ch_backstabber", + "ch_slowbutsure", + "ch_miserylovescompany", + "ch_ouch", + "ch_rival", + "ch_cruelty", + "ch_thinkfast", + "ch_thinkfastconcussion", + "ch_thinkfastflash", + "ch_returntosender", + "ch_blindfire", + "ch_hardlanding", + "ch_extremecruelty", + "ch_tangodown", + "ch_countermvp", + "ch_goodbye", + "ch_basejump", + "ch_flyswatter", + "ch_vandalism", + "ch_crouchshot", + "ch_proneshot", + "ch_assists", + "ch_xrayvision", + "ch_backdraft", + "ch_shieldvet", + "ch_smasher", + "ch_backsmasher", + "ch_shield_damage", + "ch_shield_bullet", + "ch_shield_explosive", + "ch_surgical_assault", + "ch_surgical_smg", + "ch_surgical_lmg", + "ch_surgical_sniper", + "ch_expert_assault", + "ch_expert_smg", + "ch_expert_lmg", + "ch_multirpg", + "ch_multiclaymore", + "ch_multifrag", + "ch_multic4", + "ch_collateraldamage", + "ch_flawless", + "ch_fearless", + "ch_grouphug", + "ch_nbk", + "ch_allpro", + "ch_airborne", + "ch_moneyshot", + "ch_robinhood", + "ch_bangforbuck", + "ch_overdraft", + "ch_identitytheft", + "ch_atm", + "ch_timeismoney", + "ch_iamrich", + "ch_breakbank", + "ch_colorofmoney", + "ch_neverforget", + "ch_thebrink", + "ch_fastswap", + "ch_starplayer", + "ch_howthe", + "ch_dominos", + "ch_masterchef", + "ch_invincible", + "ch_survivalist", + "ch_counterclaymore", + "ch_counterc4", + "ch_enemyofthestate", + "ch_resourceful", + "ch_survivor", + "ch_bothbarrels", + "ch_omnicide", + "ch_wargasm", + "ch_thebiggertheyare", + "ch_thehardertheyfall", + "ch_crabmeat", + "ch_wopr", + "ch_thedenier", + "ch_carpetbomb", + "ch_redcarpet", + "ch_reaper", + "ch_nosecrets", + "ch_sunblock", + "ch_afterburner", + "ch_airsuperiority", + "ch_mgmaster", + "ch_slasher", + "ch_radiationsickness", + "ch_infected", + "ch_plague", + "ch_renaissance", + "ch_theloner", + "ch_6fears7", + "ch_thenumb", + "ch_martyr", + "ch_livingdead", + "ch_sidekick", + "ch_clickclickboom", + "ch_hijacker", + "ch_no", + "ch_victor_dm", + "ch_teamplayer", + "ch_victor_sd", + "ch_mvp_tdm", + "ch_teamplayer_hc", + "ch_victor_sab", + "ch_mvp_thc", + "ch_bombdown", + "ch_bombdefender", + "ch_bombplanter", + "ch_hero", + "ch_lastmanstanding", + "ch_saboteur", + "ch_knifevet", + "ch_laststandvet", + "ch_stealth", + "ch_concussionvet", + "ch_flashbangvet", + "ch_avenger", + "ch_prestige_10", + "" + }; + + enum(16) ENUM_4 + { + "none", + "desert", + "woodland", + "digital", + "red_tiger", + "blue_tiger", + "gold", + "prestige", + "arctic", + "red_urban", + "orange_fall" + }; + + enum(128) ENUM_5 + { + "specialty_null", + "specialty_null_gl", + "specialty_null_grip", + "specialty_null_shotgun", + "specialty_null_attachment", + "specialty_parabolic", + "specialty_gpsjammer", + "specialty_holdbreath", + "specialty_quieter", + "specialty_longersprint", + "specialty_detectexplosive", + "specialty_explosivedamage", + "specialty_pistoldeath", + "specialty_grenadepulldeath", + "specialty_bulletdamage", + "specialty_bulletpenetration", + "specialty_bulletaccuracy", + "specialty_bulletaccuracy2", + "specialty_rof", + "specialty_fastreload", + "specialty_extraammo", + "specialty_twoprimaries", + "specialty_armorvest", + "specialty_fraggrenade", + "specialty_specialgrenade", + "specialty_burstfire", + "specialty_blastshield", + "specialty_akimbo", + "specialty_siege", + "specialty_shield", + "specialty_falldamage", + "specialty_fmj", + "specialty_delaymine", + "specialty_feigndeath", + "specialty_jumpdive", + "specialty_localjammer", + "specialty_shellshock", + "specialty_fastmantle", + "specialty_explosivebullets", + "specialty_thermal", + "specialty_lightweight", + "specialty_finalstand", + "specialty_blackbox", + "specialty_steelnerves", + "specialty_quickdraw", + "specialty_flashgrenade", + "specialty_concussiongrenade", + "specialty_smokegrenade", + "specialty_empgrenade", + "specialty_scavenger", + "specialty_sitrep", + "specialty_amplify", + "specialty_extendedmags", + "specialty_saboteur", + "specialty_coldblooded", + "specialty_marathon", + "specialty_challenger", + "specialty_rearview", + "specialty_tacticalinsertion", + "specialty_endgame", + "specialty_carepackage", + "specialty_onemanarmy", + "specialty_littlebird_support", + "specialty_extendedmelee", + "specialty_bling", + "specialty_heartbreaker", + "specialty_selectivehearing", + "specialty_fastsnipe", + "specialty_improvedholdbreath", + "specialty_primarydeath", + "specialty_secondarybling", + "specialty_spygame", + "specialty_spygame2", + "specialty_automantle", + "specialty_fastsprintrecovery", + "specialty_c4death", + "specialty_hardline", + "specialty_combathigh", + "specialty_laststandoffhand", + "specialty_dangerclose", + "javelin_mp", + "stinger_mp", + "c4_mp", + "claymore_mp", + "rpg_mp", + "at4_mp", + "m79_mp", + "throwingknife_mp", + "semtex_mp", + "frag_grenade_mp", + "specialty_armorpiercing", + "specialty_omaquickchange", + "specialty_fastmeleerecovery", + "specialty_rollover", + "specialty_extraspecialduration", + "specialty_freerunner", + "specialty_copycat" + }; + + enum(48) ENUM_6 + { + "none", + "uav", + "airstrike", + "helicopter", + "ac130", + "predator_missile", + "helicopter_minigun", + "helicopter_mk19", + "nuke", + "double_uav", + "precision_airstrike", + "counter_uav", + "sentry", + "sentry_gl", + "airdrop", + "tank", + "airdrop_sentry_minigun", + "airdrop_predator_missile", + "littlebird_support", + "stealth_airstrike", + "harrier_airstrike", + "super_airstrike", + "helicopter_blackbox", + "helicopter_flares", + "emp", + "airdrop_mega" + }; + + enum(256) ENUM_7 + { + "none", + "killstreak", + "headshots", + "damagedone", + "damagetaken", + "knifekills", + "assists", + "pistolkills", + "grenadekills", + "multikill", + "finalkill", + "deaths", + "kills", + "uavs", + "airstrikes", + "helicopters", + "mvp", + "overkill", + "suicides", + "flankkills", + "flankdeaths", + "fragkills", + "c4kills", + "semtexkills", + "claymorekills", + "throwingknifekills", + "smgkills", + "arkills", + "rocketkills", + "shotgunkills", + "lmgkills", + "sniperkills", + "pistolheadshots", + "smgheadshots", + "arheadshots", + "shotgunheadshots", + "lmgheadshots", + "sniperheadshots", + "punisher", + "equipmentkills", + "bulletpenkills", + "revengekills", + "avengekills", + "rescues", + "longshots", + "higherrankkills", + "adskills", + "hipfirekills", + "laststandkills", + "laststanderkills", + "lowerrankkills", + "otherweaponkills", + "shotgundeaths", + "shortestlife", + "highlander", + "kdratio10", + "noawards", + "noflankdeaths", + "deathstreak", + "mostmultikills", + "killedotherteam", + "killedotherteamonelife", + "distancetraveled", + "sprinttime", + "crouchtime", + "pronetime", + "comebacks", + "longestlife", + "killcamtimewatched", + "killcamskipped", + "mostreloads", + "mostswaps", + "mostshotsfired", + "timeinspot", + "mostcamperkills", + "greatestavgalt", + "leastavgalt", + "killsteals", + "mostff", + "killedsameplayer", + "mostweaponsused", + "closertoenemies", + "mostclasseschanged", + "mosttacprevented", + "explosionssurvived", + "shieldblocks", + "fbhits", + "stunhits", + "scopedkills", + "thermalkills", + "thumperkills", + "kdratio", + "afk", + "participant", + "shieldkills", + "shielddeaths", + "throwbacks", + "bombsplanted", + "bombsdefused", + "targetsdestroyed", + "bombcarrierkills", + "killsasbombcarrier", + "bombscarried", + "pointscaptured", + "hqscaptured", + "hqsdestroyed", + "flagscaptured", + "flagsreturned", + "flagscarried", + "flagcarrierkills", + "killsasflagcarrier" + }; + + enum(1024) ENUM_8 + { + "cardicon_default", + "cardicon_aug_marksman", + "cardicon_aug_expert", + "cardicon_m240_marksman", + "cardicon_m240_expert", + "cardicon_sa80_marksman", + "cardicon_sa80_expert", + "cardicon_rpd_marksman", + "cardicon_rpd_expert", + "cardicon_mg4_marksman", + "cardicon_mg4_expert", + "cardicon_ak47_marksman", + "cardicon_ak47_expert", + "cardicon_masada_marksman", + "cardicon_masada_expert", + "cardicon_m16_marksman", + "cardicon_m16_expert", + "cardicon_tavor_marksman", + "cardicon_tavor_expert", + "cardicon_fn2000_marksman", + "cardicon_fn2000_expert", + "cardicon_m4_marksman", + "cardicon_m4_expert", + "cardicon_scar_marksman", + "cardicon_scar_expert", + "cardicon_fal_marksman", + "cardicon_fal_expert", + "cardicon_famas_marksman", + "cardicon_famas_expert", + "cardicon_mp5k_marksman", + "cardicon_mp5k_expert", + "cardicon_uzi_marksman", + "cardicon_uzi_expert", + "cardicon_kriss_marksman", + "cardicon_kriss_expert", + "cardicon_ump45_marksman", + "cardicon_ump45_expert", + "cardicon_p90_marksman", + "cardicon_p90_expert", + "cardicon_cheytac_marksman", + "cardicon_cheytac_expert", + "cardicon_m21_marksman", + "cardicon_m21_expert", + "cardicon_barrett_marksman", + "cardicon_barrett_expert", + "cardicon_wa2000_marksman", + "cardicon_wa2000_expert", + "cardicon_glock_marksman", + "cardicon_glock_expert", + "cardicon_tmp_marksman", + "cardicon_tmp_expert", + "cardicon_beretta393_marksman", + "cardicon_beretta393_expert", + "cardicon_pp2000_marksman", + "cardicon_pp2000_expert", + "cardicon_striker_marksman", + "cardicon_striker_expert", + "cardicon_aa12_marksman", + "cardicon_aa12_expert", + "cardicon_m1014_marksman", + "cardicon_m1014_expert", + "cardicon_spas12_marksman", + "cardicon_spas12_expert", + "cardicon_model1887_marksman", + "cardicon_model1887_expert", + "cardicon_ranger_marksman", + "cardicon_ranger_expert", + "cardicon_beretta_marksman", + "cardicon_beretta_expert", + "cardicon_usp_marksman", + "cardicon_usp_expert", + "cardicon_deserteagle_marksman", + "cardicon_deserteagle_expert", + "cardicon_coltanaconda_marksman", + "cardicon_coltanaconda_expert", + "cardicon_iwlogo", + "cardicon_heartbeatsensor", + "cardicon_minigun", + "cardicon_harrier", + "cardicon_pavelow", + "cardicon_noseart1", + "cardicon_seasnipers", + "cardicon_nightvision_1", + "cardicon_nightvision_2", + "cardicon_sniperscope", + "cardicon_compass", + "cardicon_moon", + "cardicon_biohazard", + "cardicon_radiation", + "cardicon_redhand", + "cardicon_spetsnaz", + "cardicon_tf141", + "cardicon_umbracatervae", + "cardicon_headshot", + "cardicon_car", + "cardicon_gumby", + "cardicon_doubletap", + "cardicon_fmj", + "cardicon_soap", + "cardicon_humantrophy", + "cardicon_skull", + "cardicon_xray", + "cardicon_skull_black", + "cardicon_pirate", + "cardicon_pirateflag", + "cardicon_treasurechest", + "cardicon_treasuremap", + "cardicon_league_grenade", + "cardicon_ball_soccer_1", + "cardicon_ball_baseball_1", + "cardicon_ball_basketball_1", + "cardicon_ball_football_1", + "cardicon_rhino", + "cardicon_lion", + "cardicon_bear", + "cardicon_tiger", + "cardicon_hyena", + "cardicon_kinggorilla", + "cardicon_thecow", + "cardicon_birdbrain", + "cardicon_claw", + "cardicon_stop", + "cardicon_burgertown", + "cardicon_bulb", + "cardicon_patch", + "cardicon_tire", + "cardicon_boot", + "cardicon_brassknuckle", + "cardicon_8ball", + "cardicon_mushroom", + "cardicon_assad", + "cardicon_makarov", + "cardicon_sheppard", + "cardicon_comic_shepherd", + "cardicon_grigsby", + "cardicon_taskforcearmy01", + "cardicon_ghillie", + "cardicon_price_ww2", + "cardicon_pricewoodland", + "cardicon_pricearctic", + "cardicon_comic_price", + "cardicon_toon_price_1", + "cardicon_brad", + "cardicon_tsuenami", + "cardicon_brock", + "cardicon_macgregor", + "cardicon_porterjustice", + "cardicon_grunt", + "cardicon_grunt_2", + "cardicon_readhead", + "cardicon_pacifier_blue", + "cardicon_pacifier_pink", + "cardicon_pushingupdaisies", + "cardicon_girlskull", + "cardicon_blue", + "cardicon_badgirl", + "cardicon_goodgirl", + "cardicon_sniper", + "cardicon_abduction", + "cardicon_illuminati", + "cardicon_cod4", + "cardicon_iw", + "cardicon_prestige1", + "cardicon_prestige2", + "cardicon_prestige3", + "cardicon_prestige4", + "cardicon_prestige5", + "cardicon_prestige6", + "cardicon_prestige7", + "cardicon_prestige8", + "cardicon_prestige9", + "cardicon_prestige10", + "cardicon_mw2_prestige1", + "cardicon_mw2_prestige2", + "cardicon_mw2_prestige3", + "cardicon_mw2_prestige4", + "cardicon_mw2_prestige5", + "cardicon_mw2_prestige6", + "cardicon_mw2_prestige7", + "cardicon_mw2_prestige8", + "cardicon_mw2_prestige9", + "cardicon_mw2_prestige10", + "cardicon_prestige10_02", + "cardicon_honeybadger01", + "cardicon_kitten", + "cardicon_nates", + "cardicon_tsunami", + "cardicon_warpig", + "cardicon_8bit_price", + "cardicon_ball_volleyball_1", + "cardicon_helmet_baseball_1", + "cardicon_helmet_football_1", + "cardicon_hockey_1", + "cardicon_hockey_2", + "cardicon_tennisracket", + "cardicon_ghost_bust", + "cardicon_koiker_hound", + "cardicon_sugarglider", + "cardicon_gears", + "cardicon_brassknuckles", + "cardicon_devilfinger", + "cardicon_gold", + "cardicon_icecream", + "cardicon_korean", + "cardicon_loadedfinger", + "cardicon_ac130", + "cardicon_uav", + "cardicon_carepackage", + "cardicon_counteruav", + "cardicon_sentrygun", + "cardicon_predatormissile", + "cardicon_harrierstrike", + "cardicon_attackchopper", + "cardicon_emergencyair", + "cardicon_pavelowkillstreak", + "cardicon_stealthkillstreak", + "cardicon_choppergunner", + "cardicon_empkillstreak", + "cardicon_tacticalnuke", + "cardicon_precair", + "cardicon_marathon", + "cardicon_sleightofhand", + "cardicon_scavenger", + "cardicon_dangerclose", + "cardicon_bling", + "cardicon_stoppingpower", + "cardicon_lightweight", + "cardicon_hardline", + "cardicon_coldblooded", + "cardicon_oma", + "cardicon_commando", + "cardicon_steadyaim", + "cardicon_scrambler", + "cardicon_sitrep", + "cardicon_laststand", + "cardicon_ninja", + "cardicon_frag", + "cardicon_semtex", + "cardicon_throwingknife", + "cardicon_tacticalinsertion", + "cardicon_blastshield", + "cardicon_c4", + "cardicon_claymore", + "cardicon_pvt1", + "cardicon_pfc1", + "cardicon_spc1", + "cardicon_cpl1", + "cardicon_sgt1", + "cardicon_ssgt1", + "cardicon_sfc1", + "cardicon_msgt1", + "cardicon_1stsgt1", + "cardicon_sgtmaj1", + "cardicon_cmdsgtmaj1", + "cardicon_2ndlt1", + "cardicon_1stlt1", + "cardicon_capt1", + "cardicon_maj1", + "cardicon_ltcol1", + "cardicon_col1", + "cardicon_bgen1", + "cardicon_majgen1", + "cardicon_ltgen1", + "cardicon_gen1", + "cardicon_comm1", + "cardicon_martyrdom", + "cardicon_painkiller", + "cardicon_finalstand", + "cardicon_copycat", + "cardicon_impale", + "cardicon_stab", + "cardicon_riotdeath", + "cardicon_b2", + "cardicon_bulletcase", + "cardicon_league_1911", + "cardicon_league_magnum", + "cardicon_opfor", + "cardicon_rangers", + "cardicon_seals", + "cardicon_usmc", + "cardicon_sas", + "cardicon_skullaward", + "cardicon_skullnbones", + "cardicon_chicken", + "cardicon_gametype", + "cardicon_tictac", + "cardicon_jets", + "cardicon_joystick", + "cardicon_devil", + "cardicon_knife", + "cardicon_thebomb", + "cardicon_juggernaut_2", + "cardicon_juggernaut_1", + "cardicon_ac130_angelflare", + "cardicon_bullets_50cal", + "cardicon_weed", + "cardicon_riot_shield", + "cardicon_dive", + "cardicon_ghost_skull", + "cardicon_gasmask", + "cardicon_iss", + "cardicon_knife_logo", + "cardicon_shotgun_shells", + "cardicon_rtrolling" + }; + + enum(1024) ENUM_9 + { + "cardtitle_default", + "cardtitle_theextreme", + "cardtitle_earlydetection", + "cardtitle_trackstar", + "cardtitle_freerunner", + "cardtitle_decathlete", + "cardtitle_2fast", + "cardtitle_hairtrigger", + "cardtitle_oneinchpunch", + "cardtitle_reloaded", + "cardtitle_bandolier", + "cardtitle_vulture", + "cardtitle_fullforce", + "cardtitle_sonicboom", + "cardtitle_dangerclose", + "cardtitle_doubledown", + "cardtitle_blingbling", + "cardtitle_armedanddangerous", + "cardtitle_highcaliber", + "cardtitle_kfactor", + "cardtitle_bitethebullet", + "cardtitle_speeddemon", + "cardtitle_readyfire", + "cardtitle_pathfinder", + "cardtitle_deadline", + "cardtitle_closesupport", + "cardtitle_invisible", + "cardtitle_uavjammer", + "cardtitle_doubleagent", + "cardtitle_fullarsenal", + "cardtitle_quickchange", + "cardtitle_armyof1", + "cardtitle_impaler", + "cardtitle_ninja", + "cardtitle_excalibur", + "cardtitle_sureshot", + "cardtitle_ironlungs", + "cardtitle_steelnerves", + "cardtitle_hardtokill", + "cardtitle_deadmansswitch", + "cardtitle_dyingbreath", + "cardtitle_disruptor", + "cardtitle_heartbreaker", + "cardtitle_counterintel", + "cardtitle_xrayvision", + "cardtitle_amplifier", + "cardtitle_eod", + "cardtitle_silentstrike", + "cardtitle_spygame", + "cardtitle_artofstealth", + "cardtitle_aug_sharpshooter", + "cardtitle_aug_marksman", + "cardtitle_aug_veteran", + "cardtitle_aug_expert", + "cardtitle_aug_master", + "cardtitle_m240_sharpshooter", + "cardtitle_m240_marksman", + "cardtitle_m240_veteran", + "cardtitle_m240_expert", + "cardtitle_m240_master", + "cardtitle_sa80_sharpshooter", + "cardtitle_sa80_marksman", + "cardtitle_sa80_veteran", + "cardtitle_sa80_expert", + "cardtitle_sa80_master", + "cardtitle_rpd_sharpshooter", + "cardtitle_rpd_marksman", + "cardtitle_rpd_veteran", + "cardtitle_rpd_expert", + "cardtitle_rpd_master", + "cardtitle_mg4_sharpshooter", + "cardtitle_mg4_marksman", + "cardtitle_mg4_veteran", + "cardtitle_mg4_expert", + "cardtitle_mg4_master", + "cardtitle_ak47_sharpshooter", + "cardtitle_ak47_marksman", + "cardtitle_ak47_veteran", + "cardtitle_ak47_expert", + "cardtitle_ak47_master", + "cardtitle_masada_sharpshooter", + "cardtitle_masada_marksman", + "cardtitle_masada_veteran", + "cardtitle_masada_expert", + "cardtitle_masada_master", + "cardtitle_m16_sharpshooter", + "cardtitle_m16_marksman", + "cardtitle_m16_veteran", + "cardtitle_m16_expert", + "cardtitle_m16_master", + "cardtitle_tavor_sharpshooter", + "cardtitle_tavor_marksman", + "cardtitle_tavor_veteran", + "cardtitle_tavor_expert", + "cardtitle_tavor_master", + "cardtitle_fn2000_sharpshooter", + "cardtitle_fn2000_marksman", + "cardtitle_fn2000_veteran", + "cardtitle_fn2000_expert", + "cardtitle_fn2000_master", + "cardtitle_m4_sharpshooter", + "cardtitle_m4_marksman", + "cardtitle_m4_veteran", + "cardtitle_m4_expert", + "cardtitle_m4_master", + "cardtitle_scar_sharpshooter", + "cardtitle_scar_marksman", + "cardtitle_scar_veteran", + "cardtitle_scar_expert", + "cardtitle_scar_master", + "cardtitle_fal_sharpshooter", + "cardtitle_fal_marksman", + "cardtitle_fal_veteran", + "cardtitle_fal_expert", + "cardtitle_fal_master", + "cardtitle_famas_sharpshooter", + "cardtitle_famas_marksman", + "cardtitle_famas_veteran", + "cardtitle_famas_expert", + "cardtitle_famas_master", + "cardtitle_mp5k_sharpshooter", + "cardtitle_mp5k_marksman", + "cardtitle_mp5k_veteran", + "cardtitle_mp5k_expert", + "cardtitle_mp5k_master", + "cardtitle_uzi_sharpshooter", + "cardtitle_uzi_marksman", + "cardtitle_uzi_veteran", + "cardtitle_uzi_expert", + "cardtitle_uzi_master", + "cardtitle_kriss_sharpshooter", + "cardtitle_kriss_marksman", + "cardtitle_kriss_veteran", + "cardtitle_kriss_expert", + "cardtitle_kriss_master", + "cardtitle_ump45_sharpshooter", + "cardtitle_ump45_marksman", + "cardtitle_ump45_veteran", + "cardtitle_ump45_expert", + "cardtitle_ump45_master", + "cardtitle_p90_sharpshooter", + "cardtitle_p90_marksman", + "cardtitle_p90_veteran", + "cardtitle_p90_expert", + "cardtitle_p90_master", + "cardtitle_cheytac_sharpshooter", + "cardtitle_cheytac_marksman", + "cardtitle_cheytac_veteran", + "cardtitle_cheytac_expert", + "cardtitle_cheytac_master", + "cardtitle_m21_sharpshooter", + "cardtitle_m21_marksman", + "cardtitle_m21_veteran", + "cardtitle_m21_expert", + "cardtitle_m21_master", + "cardtitle_barrett_sharpshooter", + "cardtitle_barrett_marksman", + "cardtitle_barrett_veteran", + "cardtitle_barrett_expert", + "cardtitle_barrett_master", + "cardtitle_wa2000_sharpshooter", + "cardtitle_wa2000_marksman", + "cardtitle_wa2000_veteran", + "cardtitle_wa2000_expert", + "cardtitle_wa2000_master", + "cardtitle_glock_marksman", + "cardtitle_glock_veteran", + "cardtitle_glock_expert", + "cardtitle_glock_master", + "cardtitle_tmp_marksman", + "cardtitle_tmp_veteran", + "cardtitle_tmp_expert", + "cardtitle_tmp_master", + "cardtitle_beretta393_marksman", + "cardtitle_beretta393_veteran", + "cardtitle_beretta393_expert", + "cardtitle_beretta393_master", + "cardtitle_pp2000_marksman", + "cardtitle_pp2000_veteran", + "cardtitle_pp2000_expert", + "cardtitle_pp2000_master", + "cardtitle_striker_marksman", + "cardtitle_striker_veteran", + "cardtitle_striker_expert", + "cardtitle_striker_master", + "cardtitle_aa12_marksman", + "cardtitle_aa12_veteran", + "cardtitle_aa12_expert", + "cardtitle_aa12_master", + "cardtitle_m1014_marksman", + "cardtitle_m1014_veteran", + "cardtitle_m1014_expert", + "cardtitle_m1014_master", + "cardtitle_spas12_marksman", + "cardtitle_spas12_veteran", + "cardtitle_spas12_expert", + "cardtitle_spas12_master", + "cardtitle_model1887_marksman", + "cardtitle_model1887_veteran", + "cardtitle_model1887_expert", + "cardtitle_model1887_master", + "cardtitle_ranger_marksman", + "cardtitle_ranger_veteran", + "cardtitle_ranger_expert", + "cardtitle_ranger_master", + "cardtitle_beretta_marksman", + "cardtitle_beretta_veteran", + "cardtitle_beretta_expert", + "cardtitle_beretta_master", + "cardtitle_usp_marksman", + "cardtitle_usp_veteran", + "cardtitle_usp_expert", + "cardtitle_usp_master", + "cardtitle_deserteagle_marksman", + "cardtitle_deserteagle_veteran", + "cardtitle_deserteagle_expert", + "cardtitle_deserteagle_master", + "cardtitle_coltanaconda_marksman", + "cardtitle_coltanaconda_veteran", + "cardtitle_coltanaconda_expert", + "cardtitle_coltanaconda_master", + "cardtitle_shotdown", + "cardtitle_dishtherock", + "cardtitle_flyswatter", + "cardtitle_lonewolf", + "cardtitle_getreal", + "cardtitle_overwatch", + "cardtitle_tangodown", + "cardtitle_teamplayer", + "cardtitle_destroyer", + "cardtitle_its_sabotage", + "cardtitle_dzclear", + "cardtitle_fireforget", + "cardtitle_flag_united_states", + "cardtitle_patriot", + "cardtitle_flag_uk", + "cardtitle_fng", + "cardtitle_flag_canada", + "cardtitle_greatwhite", + "cardtitle_flag_australia", + "cardtitle_continental", + "cardtitle_flag_swiss", + "cardtitle_neutral", + "cardtitle_flag_mexico", + "cardtitle_flag_spain", + "cardtitle_conquerer", + "cardtitle_flag_austria", + "cardtitle_terminator", + "cardtitle_flag_japan", + "cardtitle_risingsun", + "cardtitle_flag_brazil", + "cardtitle_redeemer", + "cardtitle_flag_russia", + "cardtitle_flag_france", + "cardtitle_flag_germany", + "cardtitle_flag_italy", + "cardtitle_flag_norway", + "cardtitle_flag_greece", + "cardtitle_flag_sweden", + "cardtitle_flag_ireland", + "cardtitle_flag_belgium", + "cardtitle_flag_finland", + "cardtitle_flag_luxemburg", + "cardtitle_flag_czech", + "cardtitle_flag_netherlands", + "cardtitle_flag_newzealand", + "cardtitle_flag_philippines", + "cardtitle_flag_poland", + "cardtitle_flag_portugal", + "cardtitle_flag_denmark", + "cardtitle_flag_saudiarabia", + "cardtitle_flag_singapore", + "cardtitle_flag_southafrica", + "cardtitle_flag_southkorea", + "cardtitle_flag_hongkong", + "cardtitle_flag_india", + "cardtitle_flag_taiwan", + "cardtitle_flag_united_arab_emirates", + "cardtitle_flag_elsalvador", + "cardtitle_flag_china", + "cardtitle_flag_iran", + "cardtitle_pyro", + "cardtitle_fired", + "cardtitle_hotshot", + "cardtitle_deathfromabove", + "cardtitle_steelreign", + "cardtitle_feared", + "cardtitle_preemptive", + "cardtitle_timeontarget", + "cardtitle_publicenemy", + "cardtitle_bombshell", + "cardtitle_thabomb", + "cardtitle_brokenarrow", + "cardtitle_explosiveordinance", + "cardtitle_madbomber", + "cardtitle_givinstatic", + "cardtitle_jumpjet", + "cardtitle_droppincrates", + "cardtitle_submittoauthority", + "cardtitle_harcoreonly", + "cardtitle_lowprofile", + "cardtitle_sigint", + "cardtitle_intergalactic", + "cardtitle_nohands", + "cardtitle_bowdown", + "cardtitle_drifter", + "cardtitle_bob", + "cardtitle_ghostrider", + "cardtitle_survivor", + "cardtitle_accidentprone", + "cardtitle_squawkbox", + "cardtitle_cr1zby", + "cardtitle_companioncrate", + "cardtitle_straightup", + "cardtitle_pushindaisy", + "cardtitle_voyeur", + "cardtitle_sprayandpray", + "cardtitle_jointops", + "cardtitle_avenger", + "cardtitle_sharepackage", + "cardtitle_blackout", + "cardtitle_jollygreen", + "cardtitle_spirit", + "cardtitle_grimreaper", + "cardtitle_cobracommander", + "cardtitle_spectre", + "cardtitle_rainoffire", + "cardtitle_chickmagnet", + "cardtitle_starfishprime", + "cardtitle_endofline", + "cardtitle_wopr", + "cardtitle_watchman", + "cardtitle_omnipotent", + "cardtitle_planewhisperer", + "cardtitle_rollingthunder", + "cardtitle_fullthrottle", + "cardtitle_airwolf", + "cardtitle_gambler", + "cardtitle_santaclaus", + "cardtitle_pineappleexpress", + "cardtitle_catchshrapnel", + "cardtitle_mastermind", + "cardtitle_jackinthebox", + "cardtitle_copperfield", + "cardtitle_takeastab", + "cardtitle_masterblaster", + "cardtitle_juggernaut", + "cardtitle_bullseye", + "cardtitle_stuckonyou", + "cardtitle_plasticman", + "cardtitle_c4andafter", + "cardtitle_silentknight", + "cardtitle_darkbringer", + "cardtitle_tacticaldeletion", + "cardtitle_itspersonal", + "cardtitle_fragout", + "cardtitle_cloakanddagger", + "cardtitle_mylilpwny", + "cardtitle_gettothechoppa", + "cardtitle_booyah", + "cardtitle_streaker", + "cardtitle_1bullet2kills", + "cardtitle_dictator", + "cardtitle_surgical", + "cardtitle_crackinskulls", + "cardtitle_popoff", + "cardtitle_boomheadshot", + "cardtitle_faceoff", + "cardtitle_headrush", + "cardtitle_mach5", + "cardtitle_notintheface", + "cardtitle_perfectionist", + "cardtitle_badaboom", + "cardtitle_genocidal", + "cardtitle_partinggift", + "cardtitle_ambush", + "cardtitle_pinpuller", + "cardtitle_boomboompow", + "cardtitle_anarchist", + "cardtitle_highlander", + "cardtitle_enemybenefits", + "cardtitle_nbk", + "cardtitle_allpro", + "cardtitle_hardtarget", + "cardtitle_dronekiller", + "cardtitle_truelies", + "cardtitle_transformer", + "cardtitle_angelofdeath", + "cardtitle_hidef", + "cardtitle_unbelievable", + "cardtitle_stickman", + "cardtitle_lastresort", + "cardtitle_philanthropist", + "cardtitle_absenteekiller", + "cardtitle_finishingtouch", + "cardtitle_og", + "cardtitle_technokiller", + "cardtitle_owned", + "cardtitle_tagyoureit", + "cardtitle_boilermaker", + "cardtitle_backstabber", + "cardtitle_stungun", + "cardtitle_heart", + "cardtitle_noobtuber", + "cardtitle_rival", + "cardtitle_omfg", + "cardtitle_thinkfast", + "cardtitle_concussive", + "cardtitle_lightsout", + "cardtitle_backfire", + "cardtitle_blindfire", + "cardtitle_duckhunter", + "cardtitle_omnicide", + "cardtitle_devastator", + "cardtitle_mvpassassin", + "cardtitle_timeismoney", + "cardtitle_imrich", + "cardtitle_moneyshot", + "cardtitle_makeitrain", + "cardtitle_clayback", + "cardtitle_robinhood", + "cardtitle_madman", + "cardtitle_idthief", + "cardtitle_newjack", + "cardtitle_bloodmoney", + "cardtitle_flatliner", + "cardtitle_evildead", + "cardtitle_quickdraw", + "cardtitle_hiredgun", + "cardtitle_mastatdon", + "cardtitle_howthe", + "cardtitle_dominofx", + "cardtitle_halfbaked", + "cardtitle_bam", + "cardtitle_invincible", + "cardtitle_livelong", + "cardtitle_claypigeon", + "cardtitle_reversaloffortune", + "cardtitle_iceman", + "cardtitle_enemyofthestate", + "cardtitle_friendswith", + "cardtitle_legend", + "cardtitle_wargasm", + "cardtitle_biggertheyare", + "cardtitle_harderthey", + "cardtitle_epic", + "cardtitle_denier", + "cardtitle_carpetbomber", + "cardtitle_bombsaway", + "cardtitle_bigbrother", + "cardtitle_uavrays", + "cardtitle_afterburner", + "cardtitle_topgun", + "cardtitle_gat", + "cardtitle_theripper", + "cardtitle_allyourbase", + "cardtitle_globalthermo", + "cardtitle_sbd", + "cardtitle_toxicavenger", + "cardtitle_infected", + "cardtitle_plague", + "cardtitle_klepto", + "cardtitle_behindenemy", + "cardtitle_6fears7", + "cardtitle_comfortablynumb", + "cardtitle_martyr", + "cardtitle_livingdead", + "cardtitle_sidekick", + "cardtitle_clickclickboom", + "cardtitle_hijacker", + "cardtitle_bountyhunter", + "cardtitle_no", + "cardtitle_sentrymaster", + "cardtitle_predatormaster", + "cardtitle_airstrikemaster", + "cardtitle_harriermaster", + "cardtitle_helimaster", + "cardtitle_pavelowmaster", + "cardtitle_stealthmaster", + "cardtitle_choppermaster", + "cardtitle_ac130master", + "cardtitle_blademaster", + "cardtitle_laststandmaster", + "cardtitle_silencermaster", + "cardtitle_flashmaster", + "cardtitle_stunmaster", + "cardtitle_sentryveteran", + "cardtitle_predatorveteran", + "cardtitle_airstrikeveteran", + "cardtitle_harrierveteran", + "cardtitle_heliveteran", + "cardtitle_pavelowveteran", + "cardtitle_stealthveteran", + "cardtitle_chopperveteran", + "cardtitle_ac130veteran", + "cardtitle_bladeveteran", + "cardtitle_laststandveteran", + "cardtitle_silencerveteran", + "cardtitle_flashveteran", + "cardtitle_stunveteran", + "cardtitle_headsup", + "cardtitle_predator", + "cardtitle_automator", + "cardtitle_shotover", + "cardtitle_stringfellow", + "cardtitle_doctor", + "cardtitle_coldsteel", + "cardtitle_inciser", + "cardtitle_phoenixrising", + "cardtitle_suppressor", + "cardtitle_shockandawe", + "cardtitle_flasher", + "cardtitle_handsfree", + "cardtitle_clusterbomb", + "cardtitle_rejected", + "cardtitle_skycaptain", + "cardtitle_cobrakai", + "cardtitle_godhand", + "cardtitle_unseen", + "cardtitle_at4_marksman", + "cardtitle_javelin_marksman", + "cardtitle_m79_marksman", + "cardtitle_rpg_marksman", + "cardtitle_stinger_marksman", + "cardtitle_at4_expert", + "cardtitle_javelin_expert", + "cardtitle_m79_expert", + "cardtitle_rpg_expert", + "cardtitle_stinger_expert", + "cardtitle_at4_veteran", + "cardtitle_javelin_veteran", + "cardtitle_m79_veteran", + "cardtitle_rpg_veteran", + "cardtitle_stinger_veteran", + "cardtitle_at4_master", + "cardtitle_javelin_master", + "cardtitle_m79_master", + "cardtitle_rpg_master", + "cardtitle_stinger_master", + "cardtitle_ssdd", + "cardtitle_prestige1", + "cardtitle_prestige2", + "cardtitle_prestige3", + "cardtitle_prestige4", + "cardtitle_prestige5", + "cardtitle_prestige6", + "cardtitle_prestige7", + "cardtitle_prestige8", + "cardtitle_prestige9", + "cardtitle_prestige10", + "cardtitle_20", + "cardtitle_30", + "cardtitle_40", + "cardtitle_50", + "cardtitle_60", + "cardtitle_70", + "cardtitle_20a", + "cardtitle_30a", + "cardtitle_40a", + "cardtitle_50a", + "cardtitle_60a", + "cardtitle_70a", + "cardtitle_grassyknoll", + "cardtitle_ghilliemist", + "cardtitle_rezero", + "cardtitle_blunttrauma", + "cardtitle_smashhit", + "cardtitle_backsmasher", + "cardtitle_protectserve", + "cardtitle_bulletproof", + "cardtitle_unbreakable", + "cardtitle_evilchicken", + "cardtitle_nolaststand" + }; + + enum(8) ENUM_10 + { + "cardnameplate_default", + "cardnameplate_test" + }; + + enum ENUM_11 + { + "none", + "neutral", + "allies", + "axis" + }; + + enum(16) ENUM_12 + { + "dm", + "tdm", + "dsd", + "sab", + "dom", + "koth", + "oneflag", + "arena", + "ctf" + }; + + struct root + { + int awards[ENUM_7]; + int bests[ENUM_7]; + int experience; + int restXPGoal; + int prestige; + int level; + int score; + int kills; + int killStreak; + int deaths; + int deathStreak; + int assists; + int headshots; + int teamkills; + int suicides; + int timePlayedAllies; + int timePlayedOpfor; + int timePlayedOther; + int timePlayedTotal; + int kdRatio; + int wins; + int losses; + int ties; + int winStreak; + int currentWinStreak; + int winLossRatio; + int hits; + int misses; + int totalShots; + int accuracy; + int money; + int timeSinceLastLoot; + int lastPlayedTime; + STRUCT_4 round; + bool weaponNew[ENUM_1]; + bool camoNew[ENUM_1][ENUM_4]; + bool attachmentNew[ENUM_1][ENUM_2]; + bool perkNew[ENUM_5]; + bool featureNew[ENUM_0]; + bool challengeTierNew[100]; + bool killstreakNew[ENUM_6]; + STRUCT_2 customClasses[15]; + byte challengeState[ENUM_3]; + int challengeProgress[ENUM_3]; + ENUM_8 cardIcon; + ENUM_9 cardTitle; + ENUM_10 cardNameplate; + ENUM_6 killstreaks[3]; + short skills[ENUM_12]; + bool iconNew[ENUM_8]; + bool titleNew[ENUM_9]; + bool iconUnlocked[ENUM_8]; + bool titleUnlocked[ENUM_9]; + bool killstreakUnlocked[ENUM_6]; + }; + + struct STRUCT_1 + { + ENUM_1 weapon; + ENUM_2 attachment[2]; + ENUM_4 camo; + pad(4); + }; + + struct STRUCT_2 + { + bool inUse; + STRUCT_1 weaponSetups[2]; + ENUM_5 perks[5]; + ENUM_1 specialGrenade; + string(21) name; + ENUM_5 _deathstreak; + pad(4); + }; + + struct STRUCT_3 + { + ENUM_7 award; + int value; + }; + + struct STRUCT_4 + { + int kills; + int killStreak; + int deaths; + int score; + int timePlayed; + bool win; + bool loss; + ENUM_11 scoreboardType; + int totalXp; + int scoreXp; + int challengeXp; + int matchXp; + int miscXp; + byte awardCount; + STRUCT_3 awards[5]; + pad(54); + }; +} + + +// ==================== +// Version 156 +// Calculated checksum did not match checksum in file +// Overriding checksum to match original value +// ==================== +version 156 +{ + checksumoverride 2074144879; + + enum(32) ENUM_0 + { + "cac", + "demolitions", + "sniper", + "challenges", + "hardcore", + "oldschool", + "clantag", + "prestige", + "cas", + "playercard", + "playercard_title", + "playercard_icon", + "token_1", + "token_2", + "token_3", + "token_4", + "token_5", + "token_6", + "token_7", + "token_8", + "token_9", + "token_10", + "token_11", + "token_12", + "ghillie_urban", + "ghillie_arctic", + "ghillie_desert", + "ghillie_forest" + }; + + enum(128) ENUM_1 + { + "none", + "beretta393", + "beretta", + "usp", + "deserteagle", + "deserteaglegold", + "coltanaconda", + "glock", + "ak47", + "mp44", + "g3", + "g36c", + "m16", + "m4", + "fn2000", + "famas", + "fal", + "scar", + "tavor", + "masada", + "mp5k", + "uzi", + "p90", + "kriss", + "ump45", + "pp2000", + "tmp", + "m1014", + "ranger", + "striker", + "aa12", + "model1887", + "spas12", + "rpd", + "sa80", + "aug", + "mg4", + "m240", + "barrett", + "cheytac", + "m21", + "wa2000", + "gl", + "rpg", + "c4", + "c4Death", + "claymore", + "javelin", + "stinger", + "at4", + "m79", + "frag_grenade", + "frag_scavenger_grenade", + "flash_grenade", + "smoke_grenade", + "concussion_grenade", + "emp_grenade", + "riotshield", + "throwingknife", + "onemanarmy", + "m40a3", + "ak47classic" + }; + + enum(20) ENUM_2 + { + "none", + "gl", + "reflex", + "silencer", + "acog", + "grip", + "akimbo", + "thermal", + "shotgun", + "heartbeat", + "fmj", + "xmags", + "rof", + "boom", + "eotech", + "tactical" + }; + + enum(512) ENUM_3 + { + "ch_prestige", + "pr_marksman_m16", + "pr_expert_m16", + "pr_marksman_famas", + "pr_expert_famas", + "pr_marksman_tavor", + "pr_expert_tavor", + "pr_marksman_fal", + "pr_expert_fal", + "pr_marksman_ak47", + "pr_expert_ak47", + "pr_marksman_m240", + "pr_expert_m240", + "pr_marksman_m4", + "pr_expert_m4", + "pr_marksman_masada", + "pr_expert_masada", + "pr_marksman_scar", + "pr_expert_scar", + "pr_marksman_fn2000", + "pr_expert_fn2000", + "pr_marksman_cheytac", + "pr_expert_cheytac", + "pr_marksman_barrett", + "pr_expert_barrett", + "pr_marksman_m21", + "pr_expert_m21", + "pr_marksman_kriss", + "pr_expert_kriss", + "pr_marksman_ump45", + "pr_expert_ump45", + "pr_marksman_uzi", + "pr_expert_uzi", + "pr_marksman_p90", + "pr_expert_p90", + "pr_marksman_mp5k", + "pr_expert_mp5k", + "pr_marksman_rpd", + "pr_expert_rpd", + "pr_marksman_sa80", + "pr_expert_sa80", + "pr_marksman_aug", + "pr_expert_aug", + "pr_marksman_tmp", + "pr_expert_tmp", + "pr_marksman_pp2000", + "pr_expert_pp2000", + "pr_marksman_glock", + "pr_expert_glock", + "pr_marksman_beretta393", + "pr_expert_beretta393", + "pr_marksman_striker", + "pr_expert_striker", + "pr_marksman_m1014", + "pr_expert_m1014", + "pr_marksman_spas12", + "pr_expert_spas12", + "pr_marksman_aa12", + "pr_expert_aa12", + "pr_marksman_model1887", + "pr_expert_model1887", + "pr_marksman_ranger", + "pr_expert_ranger", + "pr_marksman_beretta", + "pr_expert_beretta", + "pr_marksman_usp", + "pr_expert_usp", + "pr_marksman_deserteagle", + "pr_expert_deserteagle", + "pr_marksman_coltanaconda", + "pr_expert_coltanaconda", + "pr_marksman_wa2000", + "pr_expert_wa2000", + "pr_marksman_mg4", + "pr_expert_mg4", + "pr_marksman_at4", + "pr_expert_at4", + "pr_marksman_rpg", + "pr_expert_rpg", + "pr_marksman_javelin", + "pr_expert_javelin", + "pr_marksman_m79", + "pr_expert_m79", + "pr_marksman_stinger", + "pr_expert_stinger", + "ch_marksman_m16", + "ch_expert_m16", + "ch_m16_gl", + "ch_m16_reflex", + "ch_m16_silencer", + "ch_m16_acog", + "ch_m16_fmj", + "ch_m16_mastery", + "ch_marksman_famas", + "ch_expert_famas", + "ch_famas_gl", + "ch_famas_reflex", + "ch_famas_silencer", + "ch_famas_acog", + "ch_famas_fmj", + "ch_famas_mastery", + "ch_marksman_tavor", + "ch_expert_tavor", + "ch_tavor_gl", + "ch_tavor_reflex", + "ch_tavor_silencer", + "ch_tavor_acog", + "ch_tavor_fmj", + "ch_tavor_mastery", + "ch_marksman_fal", + "ch_expert_fal", + "ch_fal_gl", + "ch_fal_reflex", + "ch_fal_silencer", + "ch_fal_acog", + "ch_fal_fmj", + "ch_fal_mastery", + "ch_marksman_ak47", + "ch_expert_ak47", + "ch_ak47_gl", + "ch_ak47_reflex", + "ch_ak47_silencer", + "ch_ak47_acog", + "ch_ak47_fmj", + "ch_ak47_mastery", + "ch_marksman_m240", + "ch_expert_m240", + "ch_m240_reflex", + "ch_m240_silencer", + "ch_m240_acog", + "ch_m240_fmj", + "ch_m240_mastery", + "ch_marksman_m4", + "ch_expert_m4", + "ch_m4_gl", + "ch_m4_reflex", + "ch_m4_silencer", + "ch_m4_acog", + "ch_m4_fmj", + "ch_m4_mastery", + "ch_marksman_masada", + "ch_expert_masada", + "ch_masada_gl", + "ch_masada_reflex", + "ch_masada_silencer", + "ch_masada_acog", + "ch_masada_fmj", + "ch_masada_mastery", + "ch_marksman_scar", + "ch_expert_scar", + "ch_scar_gl", + "ch_scar_reflex", + "ch_scar_silencer", + "ch_scar_acog", + "ch_scar_fmj", + "ch_scar_mastery", + "ch_marksman_fn2000", + "ch_expert_fn2000", + "ch_fn2000_gl", + "ch_fn2000_reflex", + "ch_fn2000_silencer", + "ch_fn2000_acog", + "ch_fn2000_fmj", + "ch_fn2000_mastery", + "ch_marksman_cheytac", + "ch_expert_cheytac", + "ch_cheytac_silencer", + "ch_cheytac_acog", + "ch_cheytac_fmj", + "ch_cheytac_mastery", + "ch_marksman_barrett", + "ch_expert_barrett", + "ch_barrett_silencer", + "ch_barrett_acog", + "ch_barrett_fmj", + "ch_barrett_mastery", + "ch_marksman_m21", + "ch_expert_m21", + "ch_m21_silencer", + "ch_m21_acog", + "ch_m21_fmj", + "ch_m21_mastery", + "ch_marksman_kriss", + "ch_expert_kriss", + "ch_kriss_rof", + "ch_kriss_reflex", + "ch_kriss_acog", + "ch_kriss_fmj", + "ch_kriss_mastery", + "ch_marksman_ump45", + "ch_expert_ump45", + "ch_ump45_rof", + "ch_ump45_reflex", + "ch_ump45_acog", + "ch_ump45_fmj", + "ch_ump45_mastery", + "ch_marksman_uzi", + "ch_expert_uzi", + "ch_uzi_rof", + "ch_uzi_reflex", + "ch_uzi_acog", + "ch_uzi_fmj", + "ch_uzi_mastery", + "ch_marksman_p90", + "ch_expert_p90", + "ch_p90_rof", + "ch_p90_reflex", + "ch_p90_acog", + "ch_p90_fmj", + "ch_p90_mastery", + "ch_marksman_mp5k", + "ch_expert_mp5k", + "ch_mp5k_rof", + "ch_mp5k_reflex", + "ch_mp5k_acog", + "ch_mp5k_fmj", + "ch_mp5k_mastery", + "ch_marksman_rpd", + "ch_expert_rpd", + "ch_rpd_silencer", + "ch_rpd_reflex", + "ch_rpd_acog", + "ch_rpd_fmj", + "ch_rpd_mastery", + "ch_marksman_sa80", + "ch_expert_sa80", + "ch_sa80_silencer", + "ch_sa80_reflex", + "ch_sa80_acog", + "ch_sa80_fmj", + "ch_sa80_mastery", + "ch_marksman_aug", + "ch_expert_aug", + "ch_aug_silencer", + "ch_aug_reflex", + "ch_aug_acog", + "ch_aug_fmj", + "ch_aug_mastery", + "ch_marksman_wa2000", + "ch_expert_wa2000", + "ch_wa2000_silencer", + "ch_wa2000_acog", + "ch_wa2000_fmj", + "ch_wa2000_mastery", + "ch_expert_mg4", + "ch_marksman_mg4", + "ch_mg4_silencer", + "ch_mg4_reflex", + "ch_mg4_acog", + "ch_mg4_fmj", + "ch_mg4_mastery", + "ch_marksman_tmp", + "ch_expert_tmp", + "ch_marksman_pp2000", + "ch_expert_pp2000", + "ch_marksman_glock", + "ch_expert_glock", + "ch_marksman_beretta393", + "ch_expert_beretta393", + "ch_marksman_striker", + "ch_expert_striker", + "ch_marksman_m1014", + "ch_expert_m1014", + "ch_marksman_spas12", + "ch_expert_spas12", + "ch_marksman_aa12", + "ch_expert_aa12", + "ch_marksman_model1887", + "ch_expert_model1887", + "ch_marksman_ranger", + "ch_expert_ranger", + "ch_marksman_beretta", + "ch_expert_beretta", + "ch_marksman_usp", + "ch_expert_usp", + "ch_marksman_deserteagle", + "ch_expert_deserteagle", + "ch_marksman_coltanaconda", + "ch_expert_coltanaconda", + "ch_marksman_at4", + "ch_marksman_rpg", + "ch_marksman_javelin", + "ch_marksman_m79", + "ch_marksman_stinger", + "ch_marathon_pro", + "ch_bulletaccuracy_pro", + "ch_deadsilence_pro", + "ch_scrambler_pro", + "ch_sleightofhand_pro", + "ch_bling_pro", + "ch_stoppingpower_pro", + "ch_hardline_pro", + "ch_onemanarmy_pro", + "ch_coldblooded_pro", + "ch_laststand_pro", + "ch_scavenger_pro", + "ch_extendedmelee_pro", + "ch_detectexplosives_pro", + "ch_lightweight_pro", + "ch_dangerclose_pro", + "ch_uav", + "ch_airdrop", + "ch_counter_uav", + "ch_sentry", + "ch_predator_missile", + "ch_precision_airstrike", + "ch_harrier_strike", + "ch_helicopter", + "ch_airdrop_mega", + "ch_helicopter_flares", + "ch_stealth_airstrike", + "ch_helicopter_minigun", + "ch_ac130", + "ch_emp", + "ch_nuke", + "ch_uavs", + "ch_airstrikes", + "ch_helicopters", + "ch_airdrops", + "ch_grenadekill", + "ch_claymoreshot", + "ch_jackinthebox", + "ch_carnie", + "ch_masterblaster", + "ch_bullseye", + "ch_c4shot", + "ch_didyouseethat", + "ch_darkbringer", + "ch_tacticaldeletion", + "ch_its_personal", + "ch_heads_up", + "ch_looknohands", + "ch_predator", + "ch_carpetbomber", + "ch_yourefired", + "ch_choppervet", + "ch_jollygreengiant", + "ch_thespirit", + "ch_cobracommander", + "ch_spectre", + "ch_droppincrates", + "ch_absentee", + "ch_dronekiller", + "ch_finishingtouch", + "ch_truelies", + "ch_og", + "ch_transformer", + "ch_technokiller", + "ch_hidef", + "ch_deathfromabove", + "ch_theedge", + "ch_unbelievable", + "ch_owned", + "ch_stickman", + "ch_lastresort", + "ch_ghillie", + "ch_hotpotato", + "ch_carbomb", + "ch_backstabber", + "ch_slowbutsure", + "ch_miserylovescompany", + "ch_ouch", + "ch_rival", + "ch_cruelty", + "ch_thinkfast", + "ch_thinkfastconcussion", + "ch_thinkfastflash", + "ch_returntosender", + "ch_blindfire", + "ch_hardlanding", + "ch_extremecruelty", + "ch_tangodown", + "ch_countermvp", + "ch_goodbye", + "ch_basejump", + "ch_flyswatter", + "ch_vandalism", + "ch_crouchshot", + "ch_proneshot", + "ch_assists", + "ch_xrayvision", + "ch_backdraft", + "ch_shieldvet", + "ch_smasher", + "ch_backsmasher", + "ch_shield_damage", + "ch_shield_bullet", + "ch_shield_explosive", + "ch_surgical_assault", + "ch_surgical_smg", + "ch_surgical_lmg", + "ch_surgical_sniper", + "ch_expert_assault", + "ch_expert_smg", + "ch_expert_lmg", + "ch_multirpg", + "ch_multiclaymore", + "ch_multifrag", + "ch_multic4", + "ch_collateraldamage", + "ch_flawless", + "ch_fearless", + "ch_grouphug", + "ch_nbk", + "ch_allpro", + "ch_airborne", + "ch_moneyshot", + "ch_robinhood", + "ch_bangforbuck", + "ch_overdraft", + "ch_identitytheft", + "ch_atm", + "ch_timeismoney", + "ch_iamrich", + "ch_breakbank", + "ch_colorofmoney", + "ch_neverforget", + "ch_thebrink", + "ch_fastswap", + "ch_starplayer", + "ch_howthe", + "ch_dominos", + "ch_masterchef", + "ch_invincible", + "ch_survivalist", + "ch_counterclaymore", + "ch_counterc4", + "ch_enemyofthestate", + "ch_resourceful", + "ch_survivor", + "ch_bothbarrels", + "ch_omnicide", + "ch_wargasm", + "ch_thebiggertheyare", + "ch_thehardertheyfall", + "ch_crabmeat", + "ch_wopr", + "ch_thedenier", + "ch_carpetbomb", + "ch_redcarpet", + "ch_reaper", + "ch_nosecrets", + "ch_sunblock", + "ch_afterburner", + "ch_airsuperiority", + "ch_mgmaster", + "ch_slasher", + "ch_radiationsickness", + "ch_infected", + "ch_plague", + "ch_renaissance", + "ch_theloner", + "ch_6fears7", + "ch_thenumb", + "ch_martyr", + "ch_livingdead", + "ch_sidekick", + "ch_clickclickboom", + "ch_hijacker", + "ch_no", + "ch_victor_dm", + "ch_teamplayer", + "ch_victor_sd", + "ch_mvp_tdm", + "ch_teamplayer_hc", + "ch_victor_sab", + "ch_mvp_thc", + "ch_bombdown", + "ch_bombdefender", + "ch_bombplanter", + "ch_hero", + "ch_lastmanstanding", + "ch_saboteur", + "ch_knifevet", + "ch_laststandvet", + "ch_stealth", + "ch_concussionvet", + "ch_flashbangvet", + "ch_avenger", + "ch_prestige_10", + "" + }; + + enum(16) ENUM_4 + { + "none", + "desert", + "woodland", + "digital", + "red_tiger", + "blue_tiger", + "gold", + "prestige", + "arctic", + "red_urban", + "orange_fall" + }; + + enum(128) ENUM_5 + { + "specialty_null", + "specialty_null_gl", + "specialty_null_grip", + "specialty_null_shotgun", + "specialty_null_attachment", + "specialty_parabolic", + "specialty_gpsjammer", + "specialty_holdbreath", + "specialty_quieter", + "specialty_longersprint", + "specialty_detectexplosive", + "specialty_explosivedamage", + "specialty_pistoldeath", + "specialty_grenadepulldeath", + "specialty_bulletdamage", + "specialty_bulletpenetration", + "specialty_bulletaccuracy", + "specialty_bulletaccuracy2", + "specialty_rof", + "specialty_fastreload", + "specialty_extraammo", + "specialty_twoprimaries", + "specialty_armorvest", + "specialty_fraggrenade", + "specialty_specialgrenade", + "specialty_burstfire", + "specialty_blastshield", + "specialty_akimbo", + "specialty_siege", + "specialty_shield", + "specialty_falldamage", + "specialty_fmj", + "specialty_delaymine", + "specialty_feigndeath", + "specialty_jumpdive", + "specialty_localjammer", + "specialty_shellshock", + "specialty_fastmantle", + "specialty_explosivebullets", + "specialty_thermal", + "specialty_lightweight", + "specialty_finalstand", + "specialty_blackbox", + "specialty_steelnerves", + "specialty_quickdraw", + "specialty_flashgrenade", + "specialty_concussiongrenade", + "specialty_smokegrenade", + "specialty_empgrenade", + "specialty_scavenger", + "specialty_sitrep", + "specialty_amplify", + "specialty_extendedmags", + "specialty_saboteur", + "specialty_coldblooded", + "specialty_marathon", + "specialty_challenger", + "specialty_rearview", + "specialty_tacticalinsertion", + "specialty_endgame", + "specialty_carepackage", + "specialty_onemanarmy", + "specialty_littlebird_support", + "specialty_extendedmelee", + "specialty_bling", + "specialty_heartbreaker", + "specialty_selectivehearing", + "specialty_fastsnipe", + "specialty_improvedholdbreath", + "specialty_primarydeath", + "specialty_secondarybling", + "specialty_spygame", + "specialty_spygame2", + "specialty_automantle", + "specialty_fastsprintrecovery", + "specialty_c4death", + "specialty_hardline", + "specialty_combathigh", + "specialty_laststandoffhand", + "specialty_dangerclose", + "javelin_mp", + "stinger_mp", + "c4_mp", + "claymore_mp", + "rpg_mp", + "at4_mp", + "m79_mp", + "throwingknife_mp", + "semtex_mp", + "frag_grenade_mp", + "specialty_armorpiercing", + "specialty_omaquickchange", + "specialty_fastmeleerecovery", + "specialty_rollover", + "specialty_extraspecialduration", + "specialty_freerunner", + "specialty_copycat" + }; + + enum(48) ENUM_6 + { + "none", + "uav", + "airstrike", + "helicopter", + "ac130", + "predator_missile", + "helicopter_minigun", + "helicopter_mk19", + "nuke", + "double_uav", + "precision_airstrike", + "counter_uav", + "sentry", + "sentry_gl", + "airdrop", + "tank", + "airdrop_sentry_minigun", + "airdrop_predator_missile", + "littlebird_support", + "stealth_airstrike", + "harrier_airstrike", + "super_airstrike", + "helicopter_blackbox", + "helicopter_flares", + "emp", + "airdrop_mega" + }; + + enum(256) ENUM_7 + { + "none", + "killstreak", + "headshots", + "damagedone", + "damagetaken", + "knifekills", + "assists", + "pistolkills", + "grenadekills", + "multikill", + "finalkill", + "deaths", + "kills", + "uavs", + "airstrikes", + "helicopters", + "mvp", + "overkill", + "suicides", + "flankkills", + "flankdeaths", + "fragkills", + "c4kills", + "semtexkills", + "claymorekills", + "throwingknifekills", + "smgkills", + "arkills", + "rocketkills", + "shotgunkills", + "lmgkills", + "sniperkills", + "pistolheadshots", + "smgheadshots", + "arheadshots", + "shotgunheadshots", + "lmgheadshots", + "sniperheadshots", + "punisher", + "equipmentkills", + "bulletpenkills", + "revengekills", + "avengekills", + "rescues", + "longshots", + "higherrankkills", + "adskills", + "hipfirekills", + "laststandkills", + "laststanderkills", + "lowerrankkills", + "otherweaponkills", + "shotgundeaths", + "shortestlife", + "highlander", + "kdratio10", + "noawards", + "noflankdeaths", + "deathstreak", + "mostmultikills", + "killedotherteam", + "killedotherteamonelife", + "distancetraveled", + "sprinttime", + "crouchtime", + "pronetime", + "comebacks", + "longestlife", + "killcamtimewatched", + "killcamskipped", + "mostreloads", + "mostswaps", + "mostshotsfired", + "timeinspot", + "mostcamperkills", + "greatestavgalt", + "leastavgalt", + "killsteals", + "mostff", + "killedsameplayer", + "mostweaponsused", + "closertoenemies", + "mostclasseschanged", + "mosttacprevented", + "explosionssurvived", + "shieldblocks", + "fbhits", + "stunhits", + "scopedkills", + "thermalkills", + "thumperkills", + "kdratio", + "afk", + "participant", + "shieldkills", + "shielddeaths", + "throwbacks", + "bombsplanted", + "bombsdefused", + "targetsdestroyed", + "bombcarrierkills", + "killsasbombcarrier", + "bombscarried", + "pointscaptured", + "hqscaptured", + "hqsdestroyed", + "flagscaptured", + "flagsreturned", + "flagscarried", + "flagcarrierkills", + "killsasflagcarrier" + }; + + enum(1024) ENUM_8 + { + "cardicon_default", + "cardicon_aug_marksman", + "cardicon_aug_expert", + "cardicon_m240_marksman", + "cardicon_m240_expert", + "cardicon_sa80_marksman", + "cardicon_sa80_expert", + "cardicon_rpd_marksman", + "cardicon_rpd_expert", + "cardicon_mg4_marksman", + "cardicon_mg4_expert", + "cardicon_ak47_marksman", + "cardicon_ak47_expert", + "cardicon_masada_marksman", + "cardicon_masada_expert", + "cardicon_m16_marksman", + "cardicon_m16_expert", + "cardicon_tavor_marksman", + "cardicon_tavor_expert", + "cardicon_fn2000_marksman", + "cardicon_fn2000_expert", + "cardicon_m4_marksman", + "cardicon_m4_expert", + "cardicon_scar_marksman", + "cardicon_scar_expert", + "cardicon_fal_marksman", + "cardicon_fal_expert", + "cardicon_famas_marksman", + "cardicon_famas_expert", + "cardicon_mp5k_marksman", + "cardicon_mp5k_expert", + "cardicon_uzi_marksman", + "cardicon_uzi_expert", + "cardicon_kriss_marksman", + "cardicon_kriss_expert", + "cardicon_ump45_marksman", + "cardicon_ump45_expert", + "cardicon_p90_marksman", + "cardicon_p90_expert", + "cardicon_cheytac_marksman", + "cardicon_cheytac_expert", + "cardicon_m21_marksman", + "cardicon_m21_expert", + "cardicon_barrett_marksman", + "cardicon_barrett_expert", + "cardicon_wa2000_marksman", + "cardicon_wa2000_expert", + "cardicon_glock_marksman", + "cardicon_glock_expert", + "cardicon_tmp_marksman", + "cardicon_tmp_expert", + "cardicon_beretta393_marksman", + "cardicon_beretta393_expert", + "cardicon_pp2000_marksman", + "cardicon_pp2000_expert", + "cardicon_striker_marksman", + "cardicon_striker_expert", + "cardicon_aa12_marksman", + "cardicon_aa12_expert", + "cardicon_m1014_marksman", + "cardicon_m1014_expert", + "cardicon_spas12_marksman", + "cardicon_spas12_expert", + "cardicon_model1887_marksman", + "cardicon_model1887_expert", + "cardicon_ranger_marksman", + "cardicon_ranger_expert", + "cardicon_beretta_marksman", + "cardicon_beretta_expert", + "cardicon_usp_marksman", + "cardicon_usp_expert", + "cardicon_deserteagle_marksman", + "cardicon_deserteagle_expert", + "cardicon_coltanaconda_marksman", + "cardicon_coltanaconda_expert", + "cardicon_iwlogo", + "cardicon_heartbeatsensor", + "cardicon_minigun", + "cardicon_harrier", + "cardicon_pavelow", + "cardicon_noseart1", + "cardicon_seasnipers", + "cardicon_nightvision_1", + "cardicon_nightvision_2", + "cardicon_sniperscope", + "cardicon_compass", + "cardicon_moon", + "cardicon_biohazard", + "cardicon_radiation", + "cardicon_redhand", + "cardicon_spetsnaz", + "cardicon_tf141", + "cardicon_umbracatervae", + "cardicon_headshot", + "cardicon_car", + "cardicon_gumby", + "cardicon_doubletap", + "cardicon_fmj", + "cardicon_soap", + "cardicon_humantrophy", + "cardicon_skull", + "cardicon_xray", + "cardicon_skull_black", + "cardicon_pirate", + "cardicon_pirateflag", + "cardicon_treasurechest", + "cardicon_treasuremap", + "cardicon_league_grenade", + "cardicon_ball_soccer_1", + "cardicon_ball_baseball_1", + "cardicon_ball_basketball_1", + "cardicon_ball_football_1", + "cardicon_rhino", + "cardicon_lion", + "cardicon_bear", + "cardicon_tiger", + "cardicon_hyena", + "cardicon_kinggorilla", + "cardicon_thecow", + "cardicon_birdbrain", + "cardicon_claw", + "cardicon_stop", + "cardicon_burgertown", + "cardicon_bulb", + "cardicon_patch", + "cardicon_tire", + "cardicon_boot", + "cardicon_brassknuckle", + "cardicon_8ball", + "cardicon_mushroom", + "cardicon_assad", + "cardicon_makarov", + "cardicon_sheppard", + "cardicon_comic_shepherd", + "cardicon_grigsby", + "cardicon_taskforcearmy01", + "cardicon_ghillie", + "cardicon_price_ww2", + "cardicon_pricewoodland", + "cardicon_pricearctic", + "cardicon_comic_price", + "cardicon_toon_price_1", + "cardicon_brad", + "cardicon_tsuenami", + "cardicon_brock", + "cardicon_macgregor", + "cardicon_porterjustice", + "cardicon_grunt", + "cardicon_grunt_2", + "cardicon_readhead", + "cardicon_pacifier_blue", + "cardicon_pacifier_pink", + "cardicon_pushingupdaisies", + "cardicon_girlskull", + "cardicon_blue", + "cardicon_badgirl", + "cardicon_goodgirl", + "cardicon_sniper", + "cardicon_abduction", + "cardicon_illuminati", + "cardicon_cod4", + "cardicon_iw", + "cardicon_prestige1", + "cardicon_prestige2", + "cardicon_prestige3", + "cardicon_prestige4", + "cardicon_prestige5", + "cardicon_prestige6", + "cardicon_prestige7", + "cardicon_prestige8", + "cardicon_prestige9", + "cardicon_prestige10", + "cardicon_mw2_prestige1", + "cardicon_mw2_prestige2", + "cardicon_mw2_prestige3", + "cardicon_mw2_prestige4", + "cardicon_mw2_prestige5", + "cardicon_mw2_prestige6", + "cardicon_mw2_prestige7", + "cardicon_mw2_prestige8", + "cardicon_mw2_prestige9", + "cardicon_mw2_prestige10", + "cardicon_prestige10_02", + "cardicon_honeybadger01", + "cardicon_kitten", + "cardicon_nates", + "cardicon_tsunami", + "cardicon_warpig", + "cardicon_8bit_price", + "cardicon_ball_volleyball_1", + "cardicon_helmet_baseball_1", + "cardicon_helmet_football_1", + "cardicon_hockey_1", + "cardicon_hockey_2", + "cardicon_tennisracket", + "cardicon_ghost_bust", + "cardicon_koiker_hound", + "cardicon_sugarglider", + "cardicon_gears", + "cardicon_brassknuckles", + "cardicon_devilfinger", + "cardicon_gold", + "cardicon_icecream", + "cardicon_korean", + "cardicon_loadedfinger", + "cardicon_ac130", + "cardicon_uav", + "cardicon_carepackage", + "cardicon_counteruav", + "cardicon_sentrygun", + "cardicon_predatormissile", + "cardicon_harrierstrike", + "cardicon_attackchopper", + "cardicon_emergencyair", + "cardicon_pavelowkillstreak", + "cardicon_stealthkillstreak", + "cardicon_choppergunner", + "cardicon_empkillstreak", + "cardicon_tacticalnuke", + "cardicon_precair", + "cardicon_marathon", + "cardicon_sleightofhand", + "cardicon_scavenger", + "cardicon_dangerclose", + "cardicon_bling", + "cardicon_stoppingpower", + "cardicon_lightweight", + "cardicon_hardline", + "cardicon_coldblooded", + "cardicon_oma", + "cardicon_commando", + "cardicon_steadyaim", + "cardicon_scrambler", + "cardicon_sitrep", + "cardicon_laststand", + "cardicon_ninja", + "cardicon_frag", + "cardicon_semtex", + "cardicon_throwingknife", + "cardicon_tacticalinsertion", + "cardicon_blastshield", + "cardicon_c4", + "cardicon_claymore", + "cardicon_pvt1", + "cardicon_pfc1", + "cardicon_spc1", + "cardicon_cpl1", + "cardicon_sgt1", + "cardicon_ssgt1", + "cardicon_sfc1", + "cardicon_msgt1", + "cardicon_1stsgt1", + "cardicon_sgtmaj1", + "cardicon_cmdsgtmaj1", + "cardicon_2ndlt1", + "cardicon_1stlt1", + "cardicon_capt1", + "cardicon_maj1", + "cardicon_ltcol1", + "cardicon_col1", + "cardicon_bgen1", + "cardicon_majgen1", + "cardicon_ltgen1", + "cardicon_gen1", + "cardicon_comm1", + "cardicon_martyrdom", + "cardicon_painkiller", + "cardicon_finalstand", + "cardicon_copycat", + "cardicon_impale", + "cardicon_stab", + "cardicon_riotdeath", + "cardicon_b2", + "cardicon_bulletcase", + "cardicon_league_1911", + "cardicon_league_magnum", + "cardicon_opfor", + "cardicon_rangers", + "cardicon_seals", + "cardicon_usmc", + "cardicon_sas", + "cardicon_skullaward", + "cardicon_skullnbones", + "cardicon_chicken", + "cardicon_gametype", + "cardicon_tictac", + "cardicon_jets", + "cardicon_joystick", + "cardicon_devil", + "cardicon_knife", + "cardicon_thebomb", + "cardicon_juggernaut_2", + "cardicon_juggernaut_1", + "cardicon_ac130_angelflare", + "cardicon_bullets_50cal", + "cardicon_weed", + "cardicon_riot_shield", + "cardicon_dive", + "cardicon_ghost_skull", + "cardicon_gasmask", + "cardicon_iss", + "cardicon_knife_logo", + "cardicon_shotgun_shells", + "cardicon_rtrolling" + }; + + enum(1024) ENUM_9 + { + "cardtitle_default", + "cardtitle_theextreme", + "cardtitle_earlydetection", + "cardtitle_trackstar", + "cardtitle_freerunner", + "cardtitle_decathlete", + "cardtitle_2fast", + "cardtitle_hairtrigger", + "cardtitle_oneinchpunch", + "cardtitle_reloaded", + "cardtitle_bandolier", + "cardtitle_vulture", + "cardtitle_fullforce", + "cardtitle_sonicboom", + "cardtitle_dangerclose", + "cardtitle_doubledown", + "cardtitle_blingbling", + "cardtitle_armedanddangerous", + "cardtitle_highcaliber", + "cardtitle_kfactor", + "cardtitle_bitethebullet", + "cardtitle_speeddemon", + "cardtitle_readyfire", + "cardtitle_pathfinder", + "cardtitle_deadline", + "cardtitle_closesupport", + "cardtitle_invisible", + "cardtitle_uavjammer", + "cardtitle_doubleagent", + "cardtitle_fullarsenal", + "cardtitle_quickchange", + "cardtitle_armyof1", + "cardtitle_impaler", + "cardtitle_ninja", + "cardtitle_excalibur", + "cardtitle_sureshot", + "cardtitle_ironlungs", + "cardtitle_steelnerves", + "cardtitle_hardtokill", + "cardtitle_deadmansswitch", + "cardtitle_dyingbreath", + "cardtitle_disruptor", + "cardtitle_heartbreaker", + "cardtitle_counterintel", + "cardtitle_xrayvision", + "cardtitle_amplifier", + "cardtitle_eod", + "cardtitle_silentstrike", + "cardtitle_spygame", + "cardtitle_artofstealth", + "cardtitle_aug_sharpshooter", + "cardtitle_aug_marksman", + "cardtitle_aug_veteran", + "cardtitle_aug_expert", + "cardtitle_aug_master", + "cardtitle_m240_sharpshooter", + "cardtitle_m240_marksman", + "cardtitle_m240_veteran", + "cardtitle_m240_expert", + "cardtitle_m240_master", + "cardtitle_sa80_sharpshooter", + "cardtitle_sa80_marksman", + "cardtitle_sa80_veteran", + "cardtitle_sa80_expert", + "cardtitle_sa80_master", + "cardtitle_rpd_sharpshooter", + "cardtitle_rpd_marksman", + "cardtitle_rpd_veteran", + "cardtitle_rpd_expert", + "cardtitle_rpd_master", + "cardtitle_mg4_sharpshooter", + "cardtitle_mg4_marksman", + "cardtitle_mg4_veteran", + "cardtitle_mg4_expert", + "cardtitle_mg4_master", + "cardtitle_ak47_sharpshooter", + "cardtitle_ak47_marksman", + "cardtitle_ak47_veteran", + "cardtitle_ak47_expert", + "cardtitle_ak47_master", + "cardtitle_masada_sharpshooter", + "cardtitle_masada_marksman", + "cardtitle_masada_veteran", + "cardtitle_masada_expert", + "cardtitle_masada_master", + "cardtitle_m16_sharpshooter", + "cardtitle_m16_marksman", + "cardtitle_m16_veteran", + "cardtitle_m16_expert", + "cardtitle_m16_master", + "cardtitle_tavor_sharpshooter", + "cardtitle_tavor_marksman", + "cardtitle_tavor_veteran", + "cardtitle_tavor_expert", + "cardtitle_tavor_master", + "cardtitle_fn2000_sharpshooter", + "cardtitle_fn2000_marksman", + "cardtitle_fn2000_veteran", + "cardtitle_fn2000_expert", + "cardtitle_fn2000_master", + "cardtitle_m4_sharpshooter", + "cardtitle_m4_marksman", + "cardtitle_m4_veteran", + "cardtitle_m4_expert", + "cardtitle_m4_master", + "cardtitle_scar_sharpshooter", + "cardtitle_scar_marksman", + "cardtitle_scar_veteran", + "cardtitle_scar_expert", + "cardtitle_scar_master", + "cardtitle_fal_sharpshooter", + "cardtitle_fal_marksman", + "cardtitle_fal_veteran", + "cardtitle_fal_expert", + "cardtitle_fal_master", + "cardtitle_famas_sharpshooter", + "cardtitle_famas_marksman", + "cardtitle_famas_veteran", + "cardtitle_famas_expert", + "cardtitle_famas_master", + "cardtitle_mp5k_sharpshooter", + "cardtitle_mp5k_marksman", + "cardtitle_mp5k_veteran", + "cardtitle_mp5k_expert", + "cardtitle_mp5k_master", + "cardtitle_uzi_sharpshooter", + "cardtitle_uzi_marksman", + "cardtitle_uzi_veteran", + "cardtitle_uzi_expert", + "cardtitle_uzi_master", + "cardtitle_kriss_sharpshooter", + "cardtitle_kriss_marksman", + "cardtitle_kriss_veteran", + "cardtitle_kriss_expert", + "cardtitle_kriss_master", + "cardtitle_ump45_sharpshooter", + "cardtitle_ump45_marksman", + "cardtitle_ump45_veteran", + "cardtitle_ump45_expert", + "cardtitle_ump45_master", + "cardtitle_p90_sharpshooter", + "cardtitle_p90_marksman", + "cardtitle_p90_veteran", + "cardtitle_p90_expert", + "cardtitle_p90_master", + "cardtitle_cheytac_sharpshooter", + "cardtitle_cheytac_marksman", + "cardtitle_cheytac_veteran", + "cardtitle_cheytac_expert", + "cardtitle_cheytac_master", + "cardtitle_m21_sharpshooter", + "cardtitle_m21_marksman", + "cardtitle_m21_veteran", + "cardtitle_m21_expert", + "cardtitle_m21_master", + "cardtitle_barrett_sharpshooter", + "cardtitle_barrett_marksman", + "cardtitle_barrett_veteran", + "cardtitle_barrett_expert", + "cardtitle_barrett_master", + "cardtitle_wa2000_sharpshooter", + "cardtitle_wa2000_marksman", + "cardtitle_wa2000_veteran", + "cardtitle_wa2000_expert", + "cardtitle_wa2000_master", + "cardtitle_glock_marksman", + "cardtitle_glock_veteran", + "cardtitle_glock_expert", + "cardtitle_glock_master", + "cardtitle_tmp_marksman", + "cardtitle_tmp_veteran", + "cardtitle_tmp_expert", + "cardtitle_tmp_master", + "cardtitle_beretta393_marksman", + "cardtitle_beretta393_veteran", + "cardtitle_beretta393_expert", + "cardtitle_beretta393_master", + "cardtitle_pp2000_marksman", + "cardtitle_pp2000_veteran", + "cardtitle_pp2000_expert", + "cardtitle_pp2000_master", + "cardtitle_striker_marksman", + "cardtitle_striker_veteran", + "cardtitle_striker_expert", + "cardtitle_striker_master", + "cardtitle_aa12_marksman", + "cardtitle_aa12_veteran", + "cardtitle_aa12_expert", + "cardtitle_aa12_master", + "cardtitle_m1014_marksman", + "cardtitle_m1014_veteran", + "cardtitle_m1014_expert", + "cardtitle_m1014_master", + "cardtitle_spas12_marksman", + "cardtitle_spas12_veteran", + "cardtitle_spas12_expert", + "cardtitle_spas12_master", + "cardtitle_model1887_marksman", + "cardtitle_model1887_veteran", + "cardtitle_model1887_expert", + "cardtitle_model1887_master", + "cardtitle_ranger_marksman", + "cardtitle_ranger_veteran", + "cardtitle_ranger_expert", + "cardtitle_ranger_master", + "cardtitle_beretta_marksman", + "cardtitle_beretta_veteran", + "cardtitle_beretta_expert", + "cardtitle_beretta_master", + "cardtitle_usp_marksman", + "cardtitle_usp_veteran", + "cardtitle_usp_expert", + "cardtitle_usp_master", + "cardtitle_deserteagle_marksman", + "cardtitle_deserteagle_veteran", + "cardtitle_deserteagle_expert", + "cardtitle_deserteagle_master", + "cardtitle_coltanaconda_marksman", + "cardtitle_coltanaconda_veteran", + "cardtitle_coltanaconda_expert", + "cardtitle_coltanaconda_master", + "cardtitle_shotdown", + "cardtitle_dishtherock", + "cardtitle_flyswatter", + "cardtitle_lonewolf", + "cardtitle_getreal", + "cardtitle_overwatch", + "cardtitle_tangodown", + "cardtitle_teamplayer", + "cardtitle_destroyer", + "cardtitle_its_sabotage", + "cardtitle_dzclear", + "cardtitle_fireforget", + "cardtitle_flag_united_states", + "cardtitle_patriot", + "cardtitle_flag_uk", + "cardtitle_fng", + "cardtitle_flag_canada", + "cardtitle_greatwhite", + "cardtitle_flag_australia", + "cardtitle_continental", + "cardtitle_flag_swiss", + "cardtitle_neutral", + "cardtitle_flag_mexico", + "cardtitle_flag_spain", + "cardtitle_conquerer", + "cardtitle_flag_austria", + "cardtitle_terminator", + "cardtitle_flag_japan", + "cardtitle_risingsun", + "cardtitle_flag_brazil", + "cardtitle_redeemer", + "cardtitle_flag_russia", + "cardtitle_flag_france", + "cardtitle_flag_germany", + "cardtitle_flag_italy", + "cardtitle_flag_norway", + "cardtitle_flag_greece", + "cardtitle_flag_sweden", + "cardtitle_flag_ireland", + "cardtitle_flag_belgium", + "cardtitle_flag_finland", + "cardtitle_flag_luxemburg", + "cardtitle_flag_czech", + "cardtitle_flag_netherlands", + "cardtitle_flag_newzealand", + "cardtitle_flag_philippines", + "cardtitle_flag_poland", + "cardtitle_flag_portugal", + "cardtitle_flag_denmark", + "cardtitle_flag_saudiarabia", + "cardtitle_flag_singapore", + "cardtitle_flag_southafrica", + "cardtitle_flag_southkorea", + "cardtitle_flag_hongkong", + "cardtitle_flag_india", + "cardtitle_flag_taiwan", + "cardtitle_flag_united_arab_emirates", + "cardtitle_flag_elsalvador", + "cardtitle_flag_china", + "cardtitle_flag_iran", + "cardtitle_pyro", + "cardtitle_fired", + "cardtitle_hotshot", + "cardtitle_deathfromabove", + "cardtitle_steelreign", + "cardtitle_feared", + "cardtitle_preemptive", + "cardtitle_timeontarget", + "cardtitle_publicenemy", + "cardtitle_bombshell", + "cardtitle_thabomb", + "cardtitle_brokenarrow", + "cardtitle_explosiveordinance", + "cardtitle_madbomber", + "cardtitle_givinstatic", + "cardtitle_jumpjet", + "cardtitle_droppincrates", + "cardtitle_submittoauthority", + "cardtitle_harcoreonly", + "cardtitle_lowprofile", + "cardtitle_sigint", + "cardtitle_intergalactic", + "cardtitle_nohands", + "cardtitle_bowdown", + "cardtitle_drifter", + "cardtitle_bob", + "cardtitle_ghostrider", + "cardtitle_survivor", + "cardtitle_accidentprone", + "cardtitle_squawkbox", + "cardtitle_cr1zby", + "cardtitle_companioncrate", + "cardtitle_straightup", + "cardtitle_pushindaisy", + "cardtitle_voyeur", + "cardtitle_sprayandpray", + "cardtitle_jointops", + "cardtitle_avenger", + "cardtitle_sharepackage", + "cardtitle_blackout", + "cardtitle_jollygreen", + "cardtitle_spirit", + "cardtitle_grimreaper", + "cardtitle_cobracommander", + "cardtitle_spectre", + "cardtitle_rainoffire", + "cardtitle_chickmagnet", + "cardtitle_starfishprime", + "cardtitle_endofline", + "cardtitle_wopr", + "cardtitle_watchman", + "cardtitle_omnipotent", + "cardtitle_planewhisperer", + "cardtitle_rollingthunder", + "cardtitle_fullthrottle", + "cardtitle_airwolf", + "cardtitle_gambler", + "cardtitle_santaclaus", + "cardtitle_pineappleexpress", + "cardtitle_catchshrapnel", + "cardtitle_mastermind", + "cardtitle_jackinthebox", + "cardtitle_copperfield", + "cardtitle_takeastab", + "cardtitle_masterblaster", + "cardtitle_juggernaut", + "cardtitle_bullseye", + "cardtitle_stuckonyou", + "cardtitle_plasticman", + "cardtitle_c4andafter", + "cardtitle_silentknight", + "cardtitle_darkbringer", + "cardtitle_tacticaldeletion", + "cardtitle_itspersonal", + "cardtitle_fragout", + "cardtitle_cloakanddagger", + "cardtitle_mylilpwny", + "cardtitle_gettothechoppa", + "cardtitle_booyah", + "cardtitle_streaker", + "cardtitle_1bullet2kills", + "cardtitle_dictator", + "cardtitle_surgical", + "cardtitle_crackinskulls", + "cardtitle_popoff", + "cardtitle_boomheadshot", + "cardtitle_faceoff", + "cardtitle_headrush", + "cardtitle_mach5", + "cardtitle_notintheface", + "cardtitle_perfectionist", + "cardtitle_badaboom", + "cardtitle_genocidal", + "cardtitle_partinggift", + "cardtitle_ambush", + "cardtitle_pinpuller", + "cardtitle_boomboompow", + "cardtitle_anarchist", + "cardtitle_highlander", + "cardtitle_enemybenefits", + "cardtitle_nbk", + "cardtitle_allpro", + "cardtitle_hardtarget", + "cardtitle_dronekiller", + "cardtitle_truelies", + "cardtitle_transformer", + "cardtitle_angelofdeath", + "cardtitle_hidef", + "cardtitle_unbelievable", + "cardtitle_stickman", + "cardtitle_lastresort", + "cardtitle_philanthropist", + "cardtitle_absenteekiller", + "cardtitle_finishingtouch", + "cardtitle_og", + "cardtitle_technokiller", + "cardtitle_owned", + "cardtitle_tagyoureit", + "cardtitle_boilermaker", + "cardtitle_backstabber", + "cardtitle_stungun", + "cardtitle_heart", + "cardtitle_noobtuber", + "cardtitle_rival", + "cardtitle_omfg", + "cardtitle_thinkfast", + "cardtitle_concussive", + "cardtitle_lightsout", + "cardtitle_backfire", + "cardtitle_blindfire", + "cardtitle_duckhunter", + "cardtitle_omnicide", + "cardtitle_devastator", + "cardtitle_mvpassassin", + "cardtitle_timeismoney", + "cardtitle_imrich", + "cardtitle_moneyshot", + "cardtitle_makeitrain", + "cardtitle_clayback", + "cardtitle_robinhood", + "cardtitle_madman", + "cardtitle_idthief", + "cardtitle_newjack", + "cardtitle_bloodmoney", + "cardtitle_flatliner", + "cardtitle_evildead", + "cardtitle_quickdraw", + "cardtitle_hiredgun", + "cardtitle_mastatdon", + "cardtitle_howthe", + "cardtitle_dominofx", + "cardtitle_halfbaked", + "cardtitle_bam", + "cardtitle_invincible", + "cardtitle_livelong", + "cardtitle_claypigeon", + "cardtitle_reversaloffortune", + "cardtitle_iceman", + "cardtitle_enemyofthestate", + "cardtitle_friendswith", + "cardtitle_legend", + "cardtitle_wargasm", + "cardtitle_biggertheyare", + "cardtitle_harderthey", + "cardtitle_epic", + "cardtitle_denier", + "cardtitle_carpetbomber", + "cardtitle_bombsaway", + "cardtitle_bigbrother", + "cardtitle_uavrays", + "cardtitle_afterburner", + "cardtitle_topgun", + "cardtitle_gat", + "cardtitle_theripper", + "cardtitle_allyourbase", + "cardtitle_globalthermo", + "cardtitle_sbd", + "cardtitle_toxicavenger", + "cardtitle_infected", + "cardtitle_plague", + "cardtitle_klepto", + "cardtitle_behindenemy", + "cardtitle_6fears7", + "cardtitle_comfortablynumb", + "cardtitle_martyr", + "cardtitle_livingdead", + "cardtitle_sidekick", + "cardtitle_clickclickboom", + "cardtitle_hijacker", + "cardtitle_bountyhunter", + "cardtitle_no", + "cardtitle_sentrymaster", + "cardtitle_predatormaster", + "cardtitle_airstrikemaster", + "cardtitle_harriermaster", + "cardtitle_helimaster", + "cardtitle_pavelowmaster", + "cardtitle_stealthmaster", + "cardtitle_choppermaster", + "cardtitle_ac130master", + "cardtitle_blademaster", + "cardtitle_laststandmaster", + "cardtitle_silencermaster", + "cardtitle_flashmaster", + "cardtitle_stunmaster", + "cardtitle_sentryveteran", + "cardtitle_predatorveteran", + "cardtitle_airstrikeveteran", + "cardtitle_harrierveteran", + "cardtitle_heliveteran", + "cardtitle_pavelowveteran", + "cardtitle_stealthveteran", + "cardtitle_chopperveteran", + "cardtitle_ac130veteran", + "cardtitle_bladeveteran", + "cardtitle_laststandveteran", + "cardtitle_silencerveteran", + "cardtitle_flashveteran", + "cardtitle_stunveteran", + "cardtitle_headsup", + "cardtitle_predator", + "cardtitle_automator", + "cardtitle_shotover", + "cardtitle_stringfellow", + "cardtitle_doctor", + "cardtitle_coldsteel", + "cardtitle_inciser", + "cardtitle_phoenixrising", + "cardtitle_suppressor", + "cardtitle_shockandawe", + "cardtitle_flasher", + "cardtitle_handsfree", + "cardtitle_clusterbomb", + "cardtitle_rejected", + "cardtitle_skycaptain", + "cardtitle_cobrakai", + "cardtitle_godhand", + "cardtitle_unseen", + "cardtitle_at4_marksman", + "cardtitle_javelin_marksman", + "cardtitle_m79_marksman", + "cardtitle_rpg_marksman", + "cardtitle_stinger_marksman", + "cardtitle_at4_expert", + "cardtitle_javelin_expert", + "cardtitle_m79_expert", + "cardtitle_rpg_expert", + "cardtitle_stinger_expert", + "cardtitle_at4_veteran", + "cardtitle_javelin_veteran", + "cardtitle_m79_veteran", + "cardtitle_rpg_veteran", + "cardtitle_stinger_veteran", + "cardtitle_at4_master", + "cardtitle_javelin_master", + "cardtitle_m79_master", + "cardtitle_rpg_master", + "cardtitle_stinger_master", + "cardtitle_ssdd", + "cardtitle_prestige1", + "cardtitle_prestige2", + "cardtitle_prestige3", + "cardtitle_prestige4", + "cardtitle_prestige5", + "cardtitle_prestige6", + "cardtitle_prestige7", + "cardtitle_prestige8", + "cardtitle_prestige9", + "cardtitle_prestige10", + "cardtitle_20", + "cardtitle_30", + "cardtitle_40", + "cardtitle_50", + "cardtitle_60", + "cardtitle_70", + "cardtitle_20a", + "cardtitle_30a", + "cardtitle_40a", + "cardtitle_50a", + "cardtitle_60a", + "cardtitle_70a", + "cardtitle_grassyknoll", + "cardtitle_ghilliemist", + "cardtitle_rezero", + "cardtitle_blunttrauma", + "cardtitle_smashhit", + "cardtitle_backsmasher", + "cardtitle_protectserve", + "cardtitle_bulletproof", + "cardtitle_unbreakable", + "cardtitle_evilchicken", + "cardtitle_nolaststand" + }; + + enum(8) ENUM_10 + { + "cardnameplate_default", + "cardnameplate_test" + }; + + enum ENUM_11 + { + "none", + "neutral", + "allies", + "axis" + }; + + enum(16) ENUM_12 + { + "dm", + "tdm", + "dsd", + "sab", + "dom", + "koth", + "oneflag", + "arena", + "ctf" + }; + + struct root + { + int awards[ENUM_7]; + int bests[ENUM_7]; + int experience; + int restXPGoal; + int prestige; + int level; + int score; + int kills; + int killStreak; + int deaths; + int deathStreak; + int assists; + int headshots; + int teamkills; + int suicides; + int timePlayedAllies; + int timePlayedOpfor; + int timePlayedOther; + int timePlayedTotal; + int kdRatio; + int wins; + int losses; + int ties; + int winStreak; + int currentWinStreak; + int winLossRatio; + int hits; + int misses; + int totalShots; + int accuracy; + int money; + int timeSinceLastLoot; + int lastPlayedTime; + STRUCT_4 round; + bool weaponNew[ENUM_1]; + bool camoNew[ENUM_1][ENUM_4]; + bool attachmentNew[ENUM_1][ENUM_2]; + bool perkNew[ENUM_5]; + bool featureNew[ENUM_0]; + bool challengeTierNew[100]; + bool killstreakNew[ENUM_6]; + STRUCT_2 customClasses[15]; + byte challengeState[ENUM_3]; + int challengeProgress[ENUM_3]; + ENUM_8 cardIcon; + ENUM_9 cardTitle; + ENUM_10 cardNameplate; + ENUM_6 killstreaks[3]; + short skills[ENUM_12]; + bool iconNew[ENUM_8]; + bool titleNew[ENUM_9]; + bool iconUnlocked[ENUM_8]; + bool titleUnlocked[ENUM_9]; + bool killstreakUnlocked[ENUM_6]; + }; + + struct STRUCT_1 + { + ENUM_1 weapon; + ENUM_2 attachment[2]; + ENUM_4 camo; + pad(4); + }; + + struct STRUCT_2 + { + bool inUse; + STRUCT_1 weaponSetups[2]; + ENUM_5 perks[5]; + ENUM_1 specialGrenade; + string(21) name; + ENUM_5 _deathstreak; + pad(4); + }; + + struct STRUCT_3 + { + ENUM_7 award; + int value; + }; + + struct STRUCT_4 + { + int kills; + int killStreak; + int deaths; + int score; + int timePlayed; + bool win; + bool loss; + ENUM_11 scoreboardType; + int totalXp; + int scoreXp; + int challengeXp; + int matchXp; + int miscXp; + byte awardCount; + STRUCT_3 awards[5]; + pad(54); + }; +} + + +// ==================== +// Version 155 +// Calculated checksum did not match checksum in file +// Overriding checksum to match original value +// ==================== +version 155 +{ + checksumoverride 2074144879; + + enum(32) ENUM_0 + { + "cac", + "demolitions", + "sniper", + "challenges", + "hardcore", + "oldschool", + "clantag", + "prestige", + "cas", + "playercard", + "playercard_title", + "playercard_icon", + "token_1", + "token_2", + "token_3", + "token_4", + "token_5", + "token_6", + "token_7", + "token_8", + "token_9", + "token_10", + "token_11", + "token_12", + "ghillie_urban", + "ghillie_arctic", + "ghillie_desert", + "ghillie_forest" + }; + + enum(128) ENUM_1 + { + "none", + "beretta393", + "beretta", + "usp", + "deserteagle", + "deserteaglegold", + "coltanaconda", + "glock", + "ak47", + "mp44", + "g3", + "g36c", + "m16", + "m4", + "fn2000", + "famas", + "fal", + "scar", + "tavor", + "masada", + "mp5k", + "uzi", + "p90", + "kriss", + "ump45", + "pp2000", + "tmp", + "m1014", + "ranger", + "striker", + "aa12", + "model1887", + "spas12", + "rpd", + "sa80", + "aug", + "mg4", + "m240", + "barrett", + "cheytac", + "m21", + "wa2000", + "gl", + "rpg", + "c4", + "c4Death", + "claymore", + "javelin", + "stinger", + "at4", + "m79", + "frag_grenade", + "frag_scavenger_grenade", + "flash_grenade", + "smoke_grenade", + "concussion_grenade", + "emp_grenade", + "riotshield", + "throwingknife", + "onemanarmy" + }; + + enum(20) ENUM_2 + { + "none", + "gl", + "reflex", + "silencer", + "acog", + "grip", + "akimbo", + "thermal", + "shotgun", + "heartbeat", + "fmj", + "xmags", + "rof", + "boom", + "eotech", + "tactical" + }; + + enum(512) ENUM_3 + { + "ch_prestige", + "pr_marksman_m16", + "pr_expert_m16", + "pr_marksman_famas", + "pr_expert_famas", + "pr_marksman_tavor", + "pr_expert_tavor", + "pr_marksman_fal", + "pr_expert_fal", + "pr_marksman_ak47", + "pr_expert_ak47", + "pr_marksman_m240", + "pr_expert_m240", + "pr_marksman_m4", + "pr_expert_m4", + "pr_marksman_masada", + "pr_expert_masada", + "pr_marksman_scar", + "pr_expert_scar", + "pr_marksman_fn2000", + "pr_expert_fn2000", + "pr_marksman_cheytac", + "pr_expert_cheytac", + "pr_marksman_barrett", + "pr_expert_barrett", + "pr_marksman_m21", + "pr_expert_m21", + "pr_marksman_kriss", + "pr_expert_kriss", + "pr_marksman_ump45", + "pr_expert_ump45", + "pr_marksman_uzi", + "pr_expert_uzi", + "pr_marksman_p90", + "pr_expert_p90", + "pr_marksman_mp5k", + "pr_expert_mp5k", + "pr_marksman_rpd", + "pr_expert_rpd", + "pr_marksman_sa80", + "pr_expert_sa80", + "pr_marksman_aug", + "pr_expert_aug", + "pr_marksman_tmp", + "pr_expert_tmp", + "pr_marksman_pp2000", + "pr_expert_pp2000", + "pr_marksman_glock", + "pr_expert_glock", + "pr_marksman_beretta393", + "pr_expert_beretta393", + "pr_marksman_striker", + "pr_expert_striker", + "pr_marksman_m1014", + "pr_expert_m1014", + "pr_marksman_spas12", + "pr_expert_spas12", + "pr_marksman_aa12", + "pr_expert_aa12", + "pr_marksman_model1887", + "pr_expert_model1887", + "pr_marksman_ranger", + "pr_expert_ranger", + "pr_marksman_beretta", + "pr_expert_beretta", + "pr_marksman_usp", + "pr_expert_usp", + "pr_marksman_deserteagle", + "pr_expert_deserteagle", + "pr_marksman_coltanaconda", + "pr_expert_coltanaconda", + "pr_marksman_wa2000", + "pr_expert_wa2000", + "pr_marksman_mg4", + "pr_expert_mg4", + "pr_marksman_at4", + "pr_expert_at4", + "pr_marksman_rpg", + "pr_expert_rpg", + "pr_marksman_javelin", + "pr_expert_javelin", + "pr_marksman_m79", + "pr_expert_m79", + "pr_marksman_stinger", + "pr_expert_stinger", + "ch_marksman_m16", + "ch_expert_m16", + "ch_m16_gl", + "ch_m16_reflex", + "ch_m16_silencer", + "ch_m16_acog", + "ch_m16_fmj", + "ch_m16_mastery", + "ch_marksman_famas", + "ch_expert_famas", + "ch_famas_gl", + "ch_famas_reflex", + "ch_famas_silencer", + "ch_famas_acog", + "ch_famas_fmj", + "ch_famas_mastery", + "ch_marksman_tavor", + "ch_expert_tavor", + "ch_tavor_gl", + "ch_tavor_reflex", + "ch_tavor_silencer", + "ch_tavor_acog", + "ch_tavor_fmj", + "ch_tavor_mastery", + "ch_marksman_fal", + "ch_expert_fal", + "ch_fal_gl", + "ch_fal_reflex", + "ch_fal_silencer", + "ch_fal_acog", + "ch_fal_fmj", + "ch_fal_mastery", + "ch_marksman_ak47", + "ch_expert_ak47", + "ch_ak47_gl", + "ch_ak47_reflex", + "ch_ak47_silencer", + "ch_ak47_acog", + "ch_ak47_fmj", + "ch_ak47_mastery", + "ch_marksman_m240", + "ch_expert_m240", + "ch_m240_reflex", + "ch_m240_silencer", + "ch_m240_acog", + "ch_m240_fmj", + "ch_m240_mastery", + "ch_marksman_m4", + "ch_expert_m4", + "ch_m4_gl", + "ch_m4_reflex", + "ch_m4_silencer", + "ch_m4_acog", + "ch_m4_fmj", + "ch_m4_mastery", + "ch_marksman_masada", + "ch_expert_masada", + "ch_masada_gl", + "ch_masada_reflex", + "ch_masada_silencer", + "ch_masada_acog", + "ch_masada_fmj", + "ch_masada_mastery", + "ch_marksman_scar", + "ch_expert_scar", + "ch_scar_gl", + "ch_scar_reflex", + "ch_scar_silencer", + "ch_scar_acog", + "ch_scar_fmj", + "ch_scar_mastery", + "ch_marksman_fn2000", + "ch_expert_fn2000", + "ch_fn2000_gl", + "ch_fn2000_reflex", + "ch_fn2000_silencer", + "ch_fn2000_acog", + "ch_fn2000_fmj", + "ch_fn2000_mastery", + "ch_marksman_cheytac", + "ch_expert_cheytac", + "ch_cheytac_silencer", + "ch_cheytac_acog", + "ch_cheytac_fmj", + "ch_cheytac_mastery", + "ch_marksman_barrett", + "ch_expert_barrett", + "ch_barrett_silencer", + "ch_barrett_acog", + "ch_barrett_fmj", + "ch_barrett_mastery", + "ch_marksman_m21", + "ch_expert_m21", + "ch_m21_silencer", + "ch_m21_acog", + "ch_m21_fmj", + "ch_m21_mastery", + "ch_marksman_kriss", + "ch_expert_kriss", + "ch_kriss_rof", + "ch_kriss_reflex", + "ch_kriss_acog", + "ch_kriss_fmj", + "ch_kriss_mastery", + "ch_marksman_ump45", + "ch_expert_ump45", + "ch_ump45_rof", + "ch_ump45_reflex", + "ch_ump45_acog", + "ch_ump45_fmj", + "ch_ump45_mastery", + "ch_marksman_uzi", + "ch_expert_uzi", + "ch_uzi_rof", + "ch_uzi_reflex", + "ch_uzi_acog", + "ch_uzi_fmj", + "ch_uzi_mastery", + "ch_marksman_p90", + "ch_expert_p90", + "ch_p90_rof", + "ch_p90_reflex", + "ch_p90_acog", + "ch_p90_fmj", + "ch_p90_mastery", + "ch_marksman_mp5k", + "ch_expert_mp5k", + "ch_mp5k_rof", + "ch_mp5k_reflex", + "ch_mp5k_acog", + "ch_mp5k_fmj", + "ch_mp5k_mastery", + "ch_marksman_rpd", + "ch_expert_rpd", + "ch_rpd_silencer", + "ch_rpd_reflex", + "ch_rpd_acog", + "ch_rpd_fmj", + "ch_rpd_mastery", + "ch_marksman_sa80", + "ch_expert_sa80", + "ch_sa80_silencer", + "ch_sa80_reflex", + "ch_sa80_acog", + "ch_sa80_fmj", + "ch_sa80_mastery", + "ch_marksman_aug", + "ch_expert_aug", + "ch_aug_silencer", + "ch_aug_reflex", + "ch_aug_acog", + "ch_aug_fmj", + "ch_aug_mastery", + "ch_marksman_wa2000", + "ch_expert_wa2000", + "ch_wa2000_silencer", + "ch_wa2000_acog", + "ch_wa2000_fmj", + "ch_wa2000_mastery", + "ch_expert_mg4", + "ch_marksman_mg4", + "ch_mg4_silencer", + "ch_mg4_reflex", + "ch_mg4_acog", + "ch_mg4_fmj", + "ch_mg4_mastery", + "ch_marksman_tmp", + "ch_expert_tmp", + "ch_marksman_pp2000", + "ch_expert_pp2000", + "ch_marksman_glock", + "ch_expert_glock", + "ch_marksman_beretta393", + "ch_expert_beretta393", + "ch_marksman_striker", + "ch_expert_striker", + "ch_marksman_m1014", + "ch_expert_m1014", + "ch_marksman_spas12", + "ch_expert_spas12", + "ch_marksman_aa12", + "ch_expert_aa12", + "ch_marksman_model1887", + "ch_expert_model1887", + "ch_marksman_ranger", + "ch_expert_ranger", + "ch_marksman_beretta", + "ch_expert_beretta", + "ch_marksman_usp", + "ch_expert_usp", + "ch_marksman_deserteagle", + "ch_expert_deserteagle", + "ch_marksman_coltanaconda", + "ch_expert_coltanaconda", + "ch_marksman_at4", + "ch_marksman_rpg", + "ch_marksman_javelin", + "ch_marksman_m79", + "ch_marksman_stinger", + "ch_marathon_pro", + "ch_bulletaccuracy_pro", + "ch_deadsilence_pro", + "ch_scrambler_pro", + "ch_sleightofhand_pro", + "ch_bling_pro", + "ch_stoppingpower_pro", + "ch_hardline_pro", + "ch_onemanarmy_pro", + "ch_coldblooded_pro", + "ch_laststand_pro", + "ch_scavenger_pro", + "ch_extendedmelee_pro", + "ch_detectexplosives_pro", + "ch_lightweight_pro", + "ch_dangerclose_pro", + "ch_uav", + "ch_airdrop", + "ch_counter_uav", + "ch_sentry", + "ch_predator_missile", + "ch_precision_airstrike", + "ch_harrier_strike", + "ch_helicopter", + "ch_airdrop_mega", + "ch_helicopter_flares", + "ch_stealth_airstrike", + "ch_helicopter_minigun", + "ch_ac130", + "ch_emp", + "ch_nuke", + "ch_uavs", + "ch_airstrikes", + "ch_helicopters", + "ch_airdrops", + "ch_grenadekill", + "ch_claymoreshot", + "ch_jackinthebox", + "ch_carnie", + "ch_masterblaster", + "ch_bullseye", + "ch_c4shot", + "ch_didyouseethat", + "ch_darkbringer", + "ch_tacticaldeletion", + "ch_its_personal", + "ch_heads_up", + "ch_looknohands", + "ch_predator", + "ch_carpetbomber", + "ch_yourefired", + "ch_choppervet", + "ch_jollygreengiant", + "ch_thespirit", + "ch_cobracommander", + "ch_spectre", + "ch_droppincrates", + "ch_absentee", + "ch_dronekiller", + "ch_finishingtouch", + "ch_truelies", + "ch_og", + "ch_transformer", + "ch_technokiller", + "ch_hidef", + "ch_deathfromabove", + "ch_theedge", + "ch_unbelievable", + "ch_owned", + "ch_stickman", + "ch_lastresort", + "ch_ghillie", + "ch_hotpotato", + "ch_carbomb", + "ch_backstabber", + "ch_slowbutsure", + "ch_miserylovescompany", + "ch_ouch", + "ch_rival", + "ch_cruelty", + "ch_thinkfast", + "ch_thinkfastconcussion", + "ch_thinkfastflash", + "ch_returntosender", + "ch_blindfire", + "ch_hardlanding", + "ch_extremecruelty", + "ch_tangodown", + "ch_countermvp", + "ch_goodbye", + "ch_basejump", + "ch_flyswatter", + "ch_vandalism", + "ch_crouchshot", + "ch_proneshot", + "ch_assists", + "ch_xrayvision", + "ch_backdraft", + "ch_shieldvet", + "ch_smasher", + "ch_backsmasher", + "ch_shield_damage", + "ch_shield_bullet", + "ch_shield_explosive", + "ch_surgical_assault", + "ch_surgical_smg", + "ch_surgical_lmg", + "ch_surgical_sniper", + "ch_expert_assault", + "ch_expert_smg", + "ch_expert_lmg", + "ch_multirpg", + "ch_multiclaymore", + "ch_multifrag", + "ch_multic4", + "ch_collateraldamage", + "ch_flawless", + "ch_fearless", + "ch_grouphug", + "ch_nbk", + "ch_allpro", + "ch_airborne", + "ch_moneyshot", + "ch_robinhood", + "ch_bangforbuck", + "ch_overdraft", + "ch_identitytheft", + "ch_atm", + "ch_timeismoney", + "ch_iamrich", + "ch_breakbank", + "ch_colorofmoney", + "ch_neverforget", + "ch_thebrink", + "ch_fastswap", + "ch_starplayer", + "ch_howthe", + "ch_dominos", + "ch_masterchef", + "ch_invincible", + "ch_survivalist", + "ch_counterclaymore", + "ch_counterc4", + "ch_enemyofthestate", + "ch_resourceful", + "ch_survivor", + "ch_bothbarrels", + "ch_omnicide", + "ch_wargasm", + "ch_thebiggertheyare", + "ch_thehardertheyfall", + "ch_crabmeat", + "ch_wopr", + "ch_thedenier", + "ch_carpetbomb", + "ch_redcarpet", + "ch_reaper", + "ch_nosecrets", + "ch_sunblock", + "ch_afterburner", + "ch_airsuperiority", + "ch_mgmaster", + "ch_slasher", + "ch_radiationsickness", + "ch_infected", + "ch_plague", + "ch_renaissance", + "ch_theloner", + "ch_6fears7", + "ch_thenumb", + "ch_martyr", + "ch_livingdead", + "ch_sidekick", + "ch_clickclickboom", + "ch_hijacker", + "ch_no", + "ch_victor_dm", + "ch_teamplayer", + "ch_victor_sd", + "ch_mvp_tdm", + "ch_teamplayer_hc", + "ch_victor_sab", + "ch_mvp_thc", + "ch_bombdown", + "ch_bombdefender", + "ch_bombplanter", + "ch_hero", + "ch_lastmanstanding", + "ch_saboteur", + "ch_knifevet", + "ch_laststandvet", + "ch_stealth", + "ch_concussionvet", + "ch_flashbangvet", + "ch_avenger", + "ch_prestige_10", + "" + }; + + enum(16) ENUM_4 + { + "none", + "desert", + "woodland", + "digital", + "red_tiger", + "blue_tiger", + "gold", + "prestige", + "arctic", + "red_urban", + "orange_fall" + }; + + enum(128) ENUM_5 + { + "specialty_null", + "specialty_null_gl", + "specialty_null_grip", + "specialty_null_shotgun", + "specialty_null_attachment", + "specialty_parabolic", + "specialty_gpsjammer", + "specialty_holdbreath", + "specialty_quieter", + "specialty_longersprint", + "specialty_detectexplosive", + "specialty_explosivedamage", + "specialty_pistoldeath", + "specialty_grenadepulldeath", + "specialty_bulletdamage", + "specialty_bulletpenetration", + "specialty_bulletaccuracy", + "specialty_bulletaccuracy2", + "specialty_rof", + "specialty_fastreload", + "specialty_extraammo", + "specialty_twoprimaries", + "specialty_armorvest", + "specialty_fraggrenade", + "specialty_specialgrenade", + "specialty_burstfire", + "specialty_blastshield", + "specialty_akimbo", + "specialty_siege", + "specialty_shield", + "specialty_falldamage", + "specialty_fmj", + "specialty_delaymine", + "specialty_feigndeath", + "specialty_jumpdive", + "specialty_localjammer", + "specialty_shellshock", + "specialty_fastmantle", + "specialty_explosivebullets", + "specialty_thermal", + "specialty_lightweight", + "specialty_finalstand", + "specialty_blackbox", + "specialty_steelnerves", + "specialty_quickdraw", + "specialty_flashgrenade", + "specialty_concussiongrenade", + "specialty_smokegrenade", + "specialty_empgrenade", + "specialty_scavenger", + "specialty_sitrep", + "specialty_amplify", + "specialty_extendedmags", + "specialty_saboteur", + "specialty_coldblooded", + "specialty_marathon", + "specialty_challenger", + "specialty_rearview", + "specialty_tacticalinsertion", + "specialty_endgame", + "specialty_carepackage", + "specialty_onemanarmy", + "specialty_littlebird_support", + "specialty_extendedmelee", + "specialty_bling", + "specialty_heartbreaker", + "specialty_selectivehearing", + "specialty_fastsnipe", + "specialty_improvedholdbreath", + "specialty_primarydeath", + "specialty_secondarybling", + "specialty_spygame", + "specialty_spygame2", + "specialty_automantle", + "specialty_fastsprintrecovery", + "specialty_c4death", + "specialty_hardline", + "specialty_combathigh", + "specialty_laststandoffhand", + "specialty_dangerclose", + "javelin_mp", + "stinger_mp", + "c4_mp", + "claymore_mp", + "rpg_mp", + "at4_mp", + "m79_mp", + "throwingknife_mp", + "semtex_mp", + "frag_grenade_mp", + "specialty_armorpiercing", + "specialty_omaquickchange", + "specialty_fastmeleerecovery", + "specialty_rollover", + "specialty_extraspecialduration", + "specialty_freerunner", + "specialty_copycat" + }; + + enum(48) ENUM_6 + { + "none", + "uav", + "airstrike", + "helicopter", + "ac130", + "predator_missile", + "helicopter_minigun", + "helicopter_mk19", + "nuke", + "double_uav", + "precision_airstrike", + "counter_uav", + "sentry", + "sentry_gl", + "airdrop", + "tank", + "airdrop_sentry_minigun", + "airdrop_predator_missile", + "littlebird_support", + "stealth_airstrike", + "harrier_airstrike", + "super_airstrike", + "helicopter_blackbox", + "helicopter_flares", + "emp", + "airdrop_mega" + }; + + enum(256) ENUM_7 + { + "none", + "killstreak", + "headshots", + "damagedone", + "damagetaken", + "knifekills", + "assists", + "pistolkills", + "grenadekills", + "multikill", + "finalkill", + "deaths", + "kills", + "uavs", + "airstrikes", + "helicopters", + "mvp", + "overkill", + "suicides", + "flankkills", + "flankdeaths", + "fragkills", + "c4kills", + "semtexkills", + "claymorekills", + "throwingknifekills", + "smgkills", + "arkills", + "rocketkills", + "shotgunkills", + "lmgkills", + "sniperkills", + "pistolheadshots", + "smgheadshots", + "arheadshots", + "shotgunheadshots", + "lmgheadshots", + "sniperheadshots", + "punisher", + "equipmentkills", + "bulletpenkills", + "revengekills", + "avengekills", + "rescues", + "longshots", + "higherrankkills", + "adskills", + "hipfirekills", + "laststandkills", + "laststanderkills", + "lowerrankkills", + "otherweaponkills", + "shotgundeaths", + "shortestlife", + "highlander", + "kdratio10", + "noawards", + "noflankdeaths", + "deathstreak", + "mostmultikills", + "killedotherteam", + "killedotherteamonelife", + "distancetraveled", + "sprinttime", + "crouchtime", + "pronetime", + "comebacks", + "longestlife", + "killcamtimewatched", + "killcamskipped", + "mostreloads", + "mostswaps", + "mostshotsfired", + "timeinspot", + "mostcamperkills", + "greatestavgalt", + "leastavgalt", + "killsteals", + "mostff", + "killedsameplayer", + "mostweaponsused", + "closertoenemies", + "mostclasseschanged", + "mosttacprevented", + "explosionssurvived", + "shieldblocks", + "fbhits", + "stunhits", + "scopedkills", + "thermalkills", + "thumperkills", + "kdratio", + "afk", + "participant", + "shieldkills", + "shielddeaths", + "throwbacks", + "bombsplanted", + "bombsdefused", + "targetsdestroyed", + "bombcarrierkills", + "killsasbombcarrier", + "bombscarried", + "pointscaptured", + "hqscaptured", + "hqsdestroyed", + "flagscaptured", + "flagsreturned", + "flagscarried", + "flagcarrierkills", + "killsasflagcarrier" + }; + + enum(1024) ENUM_8 + { + "cardicon_default", + "cardicon_aug_marksman", + "cardicon_aug_expert", + "cardicon_m240_marksman", + "cardicon_m240_expert", + "cardicon_sa80_marksman", + "cardicon_sa80_expert", + "cardicon_rpd_marksman", + "cardicon_rpd_expert", + "cardicon_mg4_marksman", + "cardicon_mg4_expert", + "cardicon_ak47_marksman", + "cardicon_ak47_expert", + "cardicon_masada_marksman", + "cardicon_masada_expert", + "cardicon_m16_marksman", + "cardicon_m16_expert", + "cardicon_tavor_marksman", + "cardicon_tavor_expert", + "cardicon_fn2000_marksman", + "cardicon_fn2000_expert", + "cardicon_m4_marksman", + "cardicon_m4_expert", + "cardicon_scar_marksman", + "cardicon_scar_expert", + "cardicon_fal_marksman", + "cardicon_fal_expert", + "cardicon_famas_marksman", + "cardicon_famas_expert", + "cardicon_mp5k_marksman", + "cardicon_mp5k_expert", + "cardicon_uzi_marksman", + "cardicon_uzi_expert", + "cardicon_kriss_marksman", + "cardicon_kriss_expert", + "cardicon_ump45_marksman", + "cardicon_ump45_expert", + "cardicon_p90_marksman", + "cardicon_p90_expert", + "cardicon_cheytac_marksman", + "cardicon_cheytac_expert", + "cardicon_m21_marksman", + "cardicon_m21_expert", + "cardicon_barrett_marksman", + "cardicon_barrett_expert", + "cardicon_wa2000_marksman", + "cardicon_wa2000_expert", + "cardicon_glock_marksman", + "cardicon_glock_expert", + "cardicon_tmp_marksman", + "cardicon_tmp_expert", + "cardicon_beretta393_marksman", + "cardicon_beretta393_expert", + "cardicon_pp2000_marksman", + "cardicon_pp2000_expert", + "cardicon_striker_marksman", + "cardicon_striker_expert", + "cardicon_aa12_marksman", + "cardicon_aa12_expert", + "cardicon_m1014_marksman", + "cardicon_m1014_expert", + "cardicon_spas12_marksman", + "cardicon_spas12_expert", + "cardicon_model1887_marksman", + "cardicon_model1887_expert", + "cardicon_ranger_marksman", + "cardicon_ranger_expert", + "cardicon_beretta_marksman", + "cardicon_beretta_expert", + "cardicon_usp_marksman", + "cardicon_usp_expert", + "cardicon_deserteagle_marksman", + "cardicon_deserteagle_expert", + "cardicon_coltanaconda_marksman", + "cardicon_coltanaconda_expert", + "cardicon_iwlogo", + "cardicon_heartbeatsensor", + "cardicon_minigun", + "cardicon_harrier", + "cardicon_pavelow", + "cardicon_noseart1", + "cardicon_seasnipers", + "cardicon_nightvision_1", + "cardicon_nightvision_2", + "cardicon_sniperscope", + "cardicon_compass", + "cardicon_moon", + "cardicon_biohazard", + "cardicon_radiation", + "cardicon_redhand", + "cardicon_spetsnaz", + "cardicon_tf141", + "cardicon_umbracatervae", + "cardicon_headshot", + "cardicon_car", + "cardicon_gumby", + "cardicon_doubletap", + "cardicon_fmj", + "cardicon_soap", + "cardicon_humantrophy", + "cardicon_skull", + "cardicon_xray", + "cardicon_skull_black", + "cardicon_pirate", + "cardicon_pirateflag", + "cardicon_treasurechest", + "cardicon_treasuremap", + "cardicon_league_grenade", + "cardicon_ball_soccer_1", + "cardicon_ball_baseball_1", + "cardicon_ball_basketball_1", + "cardicon_ball_football_1", + "cardicon_rhino", + "cardicon_lion", + "cardicon_bear", + "cardicon_tiger", + "cardicon_hyena", + "cardicon_kinggorilla", + "cardicon_thecow", + "cardicon_birdbrain", + "cardicon_claw", + "cardicon_stop", + "cardicon_burgertown", + "cardicon_bulb", + "cardicon_patch", + "cardicon_tire", + "cardicon_boot", + "cardicon_brassknuckle", + "cardicon_8ball", + "cardicon_mushroom", + "cardicon_assad", + "cardicon_makarov", + "cardicon_sheppard", + "cardicon_comic_shepherd", + "cardicon_grigsby", + "cardicon_taskforcearmy01", + "cardicon_ghillie", + "cardicon_price_ww2", + "cardicon_pricewoodland", + "cardicon_pricearctic", + "cardicon_comic_price", + "cardicon_toon_price_1", + "cardicon_brad", + "cardicon_tsuenami", + "cardicon_brock", + "cardicon_macgregor", + "cardicon_porterjustice", + "cardicon_grunt", + "cardicon_grunt_2", + "cardicon_readhead", + "cardicon_pacifier_blue", + "cardicon_pacifier_pink", + "cardicon_pushingupdaisies", + "cardicon_girlskull", + "cardicon_blue", + "cardicon_badgirl", + "cardicon_goodgirl", + "cardicon_sniper", + "cardicon_abduction", + "cardicon_illuminati", + "cardicon_cod4", + "cardicon_iw", + "cardicon_prestige1", + "cardicon_prestige2", + "cardicon_prestige3", + "cardicon_prestige4", + "cardicon_prestige5", + "cardicon_prestige6", + "cardicon_prestige7", + "cardicon_prestige8", + "cardicon_prestige9", + "cardicon_prestige10", + "cardicon_mw2_prestige1", + "cardicon_mw2_prestige2", + "cardicon_mw2_prestige3", + "cardicon_mw2_prestige4", + "cardicon_mw2_prestige5", + "cardicon_mw2_prestige6", + "cardicon_mw2_prestige7", + "cardicon_mw2_prestige8", + "cardicon_mw2_prestige9", + "cardicon_mw2_prestige10", + "cardicon_prestige10_02", + "cardicon_honeybadger01", + "cardicon_kitten", + "cardicon_nates", + "cardicon_tsunami", + "cardicon_warpig", + "cardicon_8bit_price", + "cardicon_ball_volleyball_1", + "cardicon_helmet_baseball_1", + "cardicon_helmet_football_1", + "cardicon_hockey_1", + "cardicon_hockey_2", + "cardicon_tennisracket", + "cardicon_ghost_bust", + "cardicon_koiker_hound", + "cardicon_sugarglider", + "cardicon_gears", + "cardicon_brassknuckles", + "cardicon_devilfinger", + "cardicon_gold", + "cardicon_icecream", + "cardicon_korean", + "cardicon_loadedfinger", + "cardicon_ac130", + "cardicon_uav", + "cardicon_carepackage", + "cardicon_counteruav", + "cardicon_sentrygun", + "cardicon_predatormissile", + "cardicon_harrierstrike", + "cardicon_attackchopper", + "cardicon_emergencyair", + "cardicon_pavelowkillstreak", + "cardicon_stealthkillstreak", + "cardicon_choppergunner", + "cardicon_empkillstreak", + "cardicon_tacticalnuke", + "cardicon_precair", + "cardicon_marathon", + "cardicon_sleightofhand", + "cardicon_scavenger", + "cardicon_dangerclose", + "cardicon_bling", + "cardicon_stoppingpower", + "cardicon_lightweight", + "cardicon_hardline", + "cardicon_coldblooded", + "cardicon_oma", + "cardicon_commando", + "cardicon_steadyaim", + "cardicon_scrambler", + "cardicon_sitrep", + "cardicon_laststand", + "cardicon_ninja", + "cardicon_frag", + "cardicon_semtex", + "cardicon_throwingknife", + "cardicon_tacticalinsertion", + "cardicon_blastshield", + "cardicon_c4", + "cardicon_claymore", + "cardicon_pvt1", + "cardicon_pfc1", + "cardicon_spc1", + "cardicon_cpl1", + "cardicon_sgt1", + "cardicon_ssgt1", + "cardicon_sfc1", + "cardicon_msgt1", + "cardicon_1stsgt1", + "cardicon_sgtmaj1", + "cardicon_cmdsgtmaj1", + "cardicon_2ndlt1", + "cardicon_1stlt1", + "cardicon_capt1", + "cardicon_maj1", + "cardicon_ltcol1", + "cardicon_col1", + "cardicon_bgen1", + "cardicon_majgen1", + "cardicon_ltgen1", + "cardicon_gen1", + "cardicon_comm1", + "cardicon_martyrdom", + "cardicon_painkiller", + "cardicon_finalstand", + "cardicon_copycat", + "cardicon_impale", + "cardicon_stab", + "cardicon_riotdeath", + "cardicon_b2", + "cardicon_bulletcase", + "cardicon_league_1911", + "cardicon_league_magnum", + "cardicon_opfor", + "cardicon_rangers", + "cardicon_seals", + "cardicon_usmc", + "cardicon_sas", + "cardicon_skullaward", + "cardicon_skullnbones", + "cardicon_chicken", + "cardicon_gametype", + "cardicon_tictac", + "cardicon_jets", + "cardicon_joystick", + "cardicon_devil", + "cardicon_knife", + "cardicon_thebomb", + "cardicon_juggernaut_2", + "cardicon_juggernaut_1", + "cardicon_ac130_angelflare", + "cardicon_bullets_50cal", + "cardicon_weed", + "cardicon_riot_shield", + "cardicon_dive", + "cardicon_ghost_skull", + "cardicon_gasmask", + "cardicon_iss", + "cardicon_knife_logo", + "cardicon_shotgun_shells" + }; + + enum(1024) ENUM_9 + { + "cardtitle_default", + "cardtitle_theextreme", + "cardtitle_earlydetection", + "cardtitle_trackstar", + "cardtitle_freerunner", + "cardtitle_decathlete", + "cardtitle_2fast", + "cardtitle_hairtrigger", + "cardtitle_oneinchpunch", + "cardtitle_reloaded", + "cardtitle_bandolier", + "cardtitle_vulture", + "cardtitle_fullforce", + "cardtitle_sonicboom", + "cardtitle_dangerclose", + "cardtitle_doubledown", + "cardtitle_blingbling", + "cardtitle_armedanddangerous", + "cardtitle_highcaliber", + "cardtitle_kfactor", + "cardtitle_bitethebullet", + "cardtitle_speeddemon", + "cardtitle_readyfire", + "cardtitle_pathfinder", + "cardtitle_deadline", + "cardtitle_closesupport", + "cardtitle_invisible", + "cardtitle_uavjammer", + "cardtitle_doubleagent", + "cardtitle_fullarsenal", + "cardtitle_quickchange", + "cardtitle_armyof1", + "cardtitle_impaler", + "cardtitle_ninja", + "cardtitle_excalibur", + "cardtitle_sureshot", + "cardtitle_ironlungs", + "cardtitle_steelnerves", + "cardtitle_hardtokill", + "cardtitle_deadmansswitch", + "cardtitle_dyingbreath", + "cardtitle_disruptor", + "cardtitle_heartbreaker", + "cardtitle_counterintel", + "cardtitle_xrayvision", + "cardtitle_amplifier", + "cardtitle_eod", + "cardtitle_silentstrike", + "cardtitle_spygame", + "cardtitle_artofstealth", + "cardtitle_aug_sharpshooter", + "cardtitle_aug_marksman", + "cardtitle_aug_veteran", + "cardtitle_aug_expert", + "cardtitle_aug_master", + "cardtitle_m240_sharpshooter", + "cardtitle_m240_marksman", + "cardtitle_m240_veteran", + "cardtitle_m240_expert", + "cardtitle_m240_master", + "cardtitle_sa80_sharpshooter", + "cardtitle_sa80_marksman", + "cardtitle_sa80_veteran", + "cardtitle_sa80_expert", + "cardtitle_sa80_master", + "cardtitle_rpd_sharpshooter", + "cardtitle_rpd_marksman", + "cardtitle_rpd_veteran", + "cardtitle_rpd_expert", + "cardtitle_rpd_master", + "cardtitle_mg4_sharpshooter", + "cardtitle_mg4_marksman", + "cardtitle_mg4_veteran", + "cardtitle_mg4_expert", + "cardtitle_mg4_master", + "cardtitle_ak47_sharpshooter", + "cardtitle_ak47_marksman", + "cardtitle_ak47_veteran", + "cardtitle_ak47_expert", + "cardtitle_ak47_master", + "cardtitle_masada_sharpshooter", + "cardtitle_masada_marksman", + "cardtitle_masada_veteran", + "cardtitle_masada_expert", + "cardtitle_masada_master", + "cardtitle_m16_sharpshooter", + "cardtitle_m16_marksman", + "cardtitle_m16_veteran", + "cardtitle_m16_expert", + "cardtitle_m16_master", + "cardtitle_tavor_sharpshooter", + "cardtitle_tavor_marksman", + "cardtitle_tavor_veteran", + "cardtitle_tavor_expert", + "cardtitle_tavor_master", + "cardtitle_fn2000_sharpshooter", + "cardtitle_fn2000_marksman", + "cardtitle_fn2000_veteran", + "cardtitle_fn2000_expert", + "cardtitle_fn2000_master", + "cardtitle_m4_sharpshooter", + "cardtitle_m4_marksman", + "cardtitle_m4_veteran", + "cardtitle_m4_expert", + "cardtitle_m4_master", + "cardtitle_scar_sharpshooter", + "cardtitle_scar_marksman", + "cardtitle_scar_veteran", + "cardtitle_scar_expert", + "cardtitle_scar_master", + "cardtitle_fal_sharpshooter", + "cardtitle_fal_marksman", + "cardtitle_fal_veteran", + "cardtitle_fal_expert", + "cardtitle_fal_master", + "cardtitle_famas_sharpshooter", + "cardtitle_famas_marksman", + "cardtitle_famas_veteran", + "cardtitle_famas_expert", + "cardtitle_famas_master", + "cardtitle_mp5k_sharpshooter", + "cardtitle_mp5k_marksman", + "cardtitle_mp5k_veteran", + "cardtitle_mp5k_expert", + "cardtitle_mp5k_master", + "cardtitle_uzi_sharpshooter", + "cardtitle_uzi_marksman", + "cardtitle_uzi_veteran", + "cardtitle_uzi_expert", + "cardtitle_uzi_master", + "cardtitle_kriss_sharpshooter", + "cardtitle_kriss_marksman", + "cardtitle_kriss_veteran", + "cardtitle_kriss_expert", + "cardtitle_kriss_master", + "cardtitle_ump45_sharpshooter", + "cardtitle_ump45_marksman", + "cardtitle_ump45_veteran", + "cardtitle_ump45_expert", + "cardtitle_ump45_master", + "cardtitle_p90_sharpshooter", + "cardtitle_p90_marksman", + "cardtitle_p90_veteran", + "cardtitle_p90_expert", + "cardtitle_p90_master", + "cardtitle_cheytac_sharpshooter", + "cardtitle_cheytac_marksman", + "cardtitle_cheytac_veteran", + "cardtitle_cheytac_expert", + "cardtitle_cheytac_master", + "cardtitle_m21_sharpshooter", + "cardtitle_m21_marksman", + "cardtitle_m21_veteran", + "cardtitle_m21_expert", + "cardtitle_m21_master", + "cardtitle_barrett_sharpshooter", + "cardtitle_barrett_marksman", + "cardtitle_barrett_veteran", + "cardtitle_barrett_expert", + "cardtitle_barrett_master", + "cardtitle_wa2000_sharpshooter", + "cardtitle_wa2000_marksman", + "cardtitle_wa2000_veteran", + "cardtitle_wa2000_expert", + "cardtitle_wa2000_master", + "cardtitle_glock_marksman", + "cardtitle_glock_veteran", + "cardtitle_glock_expert", + "cardtitle_glock_master", + "cardtitle_tmp_marksman", + "cardtitle_tmp_veteran", + "cardtitle_tmp_expert", + "cardtitle_tmp_master", + "cardtitle_beretta393_marksman", + "cardtitle_beretta393_veteran", + "cardtitle_beretta393_expert", + "cardtitle_beretta393_master", + "cardtitle_pp2000_marksman", + "cardtitle_pp2000_veteran", + "cardtitle_pp2000_expert", + "cardtitle_pp2000_master", + "cardtitle_striker_marksman", + "cardtitle_striker_veteran", + "cardtitle_striker_expert", + "cardtitle_striker_master", + "cardtitle_aa12_marksman", + "cardtitle_aa12_veteran", + "cardtitle_aa12_expert", + "cardtitle_aa12_master", + "cardtitle_m1014_marksman", + "cardtitle_m1014_veteran", + "cardtitle_m1014_expert", + "cardtitle_m1014_master", + "cardtitle_spas12_marksman", + "cardtitle_spas12_veteran", + "cardtitle_spas12_expert", + "cardtitle_spas12_master", + "cardtitle_model1887_marksman", + "cardtitle_model1887_veteran", + "cardtitle_model1887_expert", + "cardtitle_model1887_master", + "cardtitle_ranger_marksman", + "cardtitle_ranger_veteran", + "cardtitle_ranger_expert", + "cardtitle_ranger_master", + "cardtitle_beretta_marksman", + "cardtitle_beretta_veteran", + "cardtitle_beretta_expert", + "cardtitle_beretta_master", + "cardtitle_usp_marksman", + "cardtitle_usp_veteran", + "cardtitle_usp_expert", + "cardtitle_usp_master", + "cardtitle_deserteagle_marksman", + "cardtitle_deserteagle_veteran", + "cardtitle_deserteagle_expert", + "cardtitle_deserteagle_master", + "cardtitle_coltanaconda_marksman", + "cardtitle_coltanaconda_veteran", + "cardtitle_coltanaconda_expert", + "cardtitle_coltanaconda_master", + "cardtitle_shotdown", + "cardtitle_dishtherock", + "cardtitle_flyswatter", + "cardtitle_lonewolf", + "cardtitle_getreal", + "cardtitle_overwatch", + "cardtitle_tangodown", + "cardtitle_teamplayer", + "cardtitle_destroyer", + "cardtitle_its_sabotage", + "cardtitle_dzclear", + "cardtitle_fireforget", + "cardtitle_flag_united_states", + "cardtitle_patriot", + "cardtitle_flag_uk", + "cardtitle_fng", + "cardtitle_flag_canada", + "cardtitle_greatwhite", + "cardtitle_flag_australia", + "cardtitle_continental", + "cardtitle_flag_swiss", + "cardtitle_neutral", + "cardtitle_flag_mexico", + "cardtitle_flag_spain", + "cardtitle_conquerer", + "cardtitle_flag_austria", + "cardtitle_terminator", + "cardtitle_flag_japan", + "cardtitle_risingsun", + "cardtitle_flag_brazil", + "cardtitle_redeemer", + "cardtitle_flag_russia", + "cardtitle_flag_france", + "cardtitle_flag_germany", + "cardtitle_flag_italy", + "cardtitle_flag_norway", + "cardtitle_flag_greece", + "cardtitle_flag_sweden", + "cardtitle_flag_ireland", + "cardtitle_flag_belgium", + "cardtitle_flag_finland", + "cardtitle_flag_luxemburg", + "cardtitle_flag_czech", + "cardtitle_flag_netherlands", + "cardtitle_flag_newzealand", + "cardtitle_flag_philippines", + "cardtitle_flag_poland", + "cardtitle_flag_portugal", + "cardtitle_flag_denmark", + "cardtitle_flag_saudiarabia", + "cardtitle_flag_singapore", + "cardtitle_flag_southafrica", + "cardtitle_flag_southkorea", + "cardtitle_flag_hongkong", + "cardtitle_flag_india", + "cardtitle_flag_taiwan", + "cardtitle_flag_united_arab_emirates", + "cardtitle_flag_elsalvador", + "cardtitle_flag_china", + "cardtitle_flag_iran", + "cardtitle_pyro", + "cardtitle_fired", + "cardtitle_hotshot", + "cardtitle_deathfromabove", + "cardtitle_steelreign", + "cardtitle_feared", + "cardtitle_preemptive", + "cardtitle_timeontarget", + "cardtitle_publicenemy", + "cardtitle_bombshell", + "cardtitle_thabomb", + "cardtitle_brokenarrow", + "cardtitle_explosiveordinance", + "cardtitle_madbomber", + "cardtitle_givinstatic", + "cardtitle_jumpjet", + "cardtitle_droppincrates", + "cardtitle_submittoauthority", + "cardtitle_harcoreonly", + "cardtitle_lowprofile", + "cardtitle_sigint", + "cardtitle_intergalactic", + "cardtitle_nohands", + "cardtitle_bowdown", + "cardtitle_drifter", + "cardtitle_bob", + "cardtitle_ghostrider", + "cardtitle_survivor", + "cardtitle_accidentprone", + "cardtitle_squawkbox", + "cardtitle_cr1zby", + "cardtitle_companioncrate", + "cardtitle_straightup", + "cardtitle_pushindaisy", + "cardtitle_voyeur", + "cardtitle_sprayandpray", + "cardtitle_jointops", + "cardtitle_avenger", + "cardtitle_sharepackage", + "cardtitle_blackout", + "cardtitle_jollygreen", + "cardtitle_spirit", + "cardtitle_grimreaper", + "cardtitle_cobracommander", + "cardtitle_spectre", + "cardtitle_rainoffire", + "cardtitle_chickmagnet", + "cardtitle_starfishprime", + "cardtitle_endofline", + "cardtitle_wopr", + "cardtitle_watchman", + "cardtitle_omnipotent", + "cardtitle_planewhisperer", + "cardtitle_rollingthunder", + "cardtitle_fullthrottle", + "cardtitle_airwolf", + "cardtitle_gambler", + "cardtitle_santaclaus", + "cardtitle_pineappleexpress", + "cardtitle_catchshrapnel", + "cardtitle_mastermind", + "cardtitle_jackinthebox", + "cardtitle_copperfield", + "cardtitle_takeastab", + "cardtitle_masterblaster", + "cardtitle_juggernaut", + "cardtitle_bullseye", + "cardtitle_stuckonyou", + "cardtitle_plasticman", + "cardtitle_c4andafter", + "cardtitle_silentknight", + "cardtitle_darkbringer", + "cardtitle_tacticaldeletion", + "cardtitle_itspersonal", + "cardtitle_fragout", + "cardtitle_cloakanddagger", + "cardtitle_mylilpwny", + "cardtitle_gettothechoppa", + "cardtitle_booyah", + "cardtitle_streaker", + "cardtitle_1bullet2kills", + "cardtitle_dictator", + "cardtitle_surgical", + "cardtitle_crackinskulls", + "cardtitle_popoff", + "cardtitle_boomheadshot", + "cardtitle_faceoff", + "cardtitle_headrush", + "cardtitle_mach5", + "cardtitle_notintheface", + "cardtitle_perfectionist", + "cardtitle_badaboom", + "cardtitle_genocidal", + "cardtitle_partinggift", + "cardtitle_ambush", + "cardtitle_pinpuller", + "cardtitle_boomboompow", + "cardtitle_anarchist", + "cardtitle_highlander", + "cardtitle_enemybenefits", + "cardtitle_nbk", + "cardtitle_allpro", + "cardtitle_hardtarget", + "cardtitle_dronekiller", + "cardtitle_truelies", + "cardtitle_transformer", + "cardtitle_angelofdeath", + "cardtitle_hidef", + "cardtitle_unbelievable", + "cardtitle_stickman", + "cardtitle_lastresort", + "cardtitle_philanthropist", + "cardtitle_absenteekiller", + "cardtitle_finishingtouch", + "cardtitle_og", + "cardtitle_technokiller", + "cardtitle_owned", + "cardtitle_tagyoureit", + "cardtitle_boilermaker", + "cardtitle_backstabber", + "cardtitle_stungun", + "cardtitle_heart", + "cardtitle_noobtuber", + "cardtitle_rival", + "cardtitle_omfg", + "cardtitle_thinkfast", + "cardtitle_concussive", + "cardtitle_lightsout", + "cardtitle_backfire", + "cardtitle_blindfire", + "cardtitle_duckhunter", + "cardtitle_omnicide", + "cardtitle_devastator", + "cardtitle_mvpassassin", + "cardtitle_timeismoney", + "cardtitle_imrich", + "cardtitle_moneyshot", + "cardtitle_makeitrain", + "cardtitle_clayback", + "cardtitle_robinhood", + "cardtitle_madman", + "cardtitle_idthief", + "cardtitle_newjack", + "cardtitle_bloodmoney", + "cardtitle_flatliner", + "cardtitle_evildead", + "cardtitle_quickdraw", + "cardtitle_hiredgun", + "cardtitle_mastatdon", + "cardtitle_howthe", + "cardtitle_dominofx", + "cardtitle_halfbaked", + "cardtitle_bam", + "cardtitle_invincible", + "cardtitle_livelong", + "cardtitle_claypigeon", + "cardtitle_reversaloffortune", + "cardtitle_iceman", + "cardtitle_enemyofthestate", + "cardtitle_friendswith", + "cardtitle_legend", + "cardtitle_wargasm", + "cardtitle_biggertheyare", + "cardtitle_harderthey", + "cardtitle_epic", + "cardtitle_denier", + "cardtitle_carpetbomber", + "cardtitle_bombsaway", + "cardtitle_bigbrother", + "cardtitle_uavrays", + "cardtitle_afterburner", + "cardtitle_topgun", + "cardtitle_gat", + "cardtitle_theripper", + "cardtitle_allyourbase", + "cardtitle_globalthermo", + "cardtitle_sbd", + "cardtitle_toxicavenger", + "cardtitle_infected", + "cardtitle_plague", + "cardtitle_klepto", + "cardtitle_behindenemy", + "cardtitle_6fears7", + "cardtitle_comfortablynumb", + "cardtitle_martyr", + "cardtitle_livingdead", + "cardtitle_sidekick", + "cardtitle_clickclickboom", + "cardtitle_hijacker", + "cardtitle_bountyhunter", + "cardtitle_no", + "cardtitle_sentrymaster", + "cardtitle_predatormaster", + "cardtitle_airstrikemaster", + "cardtitle_harriermaster", + "cardtitle_helimaster", + "cardtitle_pavelowmaster", + "cardtitle_stealthmaster", + "cardtitle_choppermaster", + "cardtitle_ac130master", + "cardtitle_blademaster", + "cardtitle_laststandmaster", + "cardtitle_silencermaster", + "cardtitle_flashmaster", + "cardtitle_stunmaster", + "cardtitle_sentryveteran", + "cardtitle_predatorveteran", + "cardtitle_airstrikeveteran", + "cardtitle_harrierveteran", + "cardtitle_heliveteran", + "cardtitle_pavelowveteran", + "cardtitle_stealthveteran", + "cardtitle_chopperveteran", + "cardtitle_ac130veteran", + "cardtitle_bladeveteran", + "cardtitle_laststandveteran", + "cardtitle_silencerveteran", + "cardtitle_flashveteran", + "cardtitle_stunveteran", + "cardtitle_headsup", + "cardtitle_predator", + "cardtitle_automator", + "cardtitle_shotover", + "cardtitle_stringfellow", + "cardtitle_doctor", + "cardtitle_coldsteel", + "cardtitle_inciser", + "cardtitle_phoenixrising", + "cardtitle_suppressor", + "cardtitle_shockandawe", + "cardtitle_flasher", + "cardtitle_handsfree", + "cardtitle_clusterbomb", + "cardtitle_rejected", + "cardtitle_skycaptain", + "cardtitle_cobrakai", + "cardtitle_godhand", + "cardtitle_unseen", + "cardtitle_at4_marksman", + "cardtitle_javelin_marksman", + "cardtitle_m79_marksman", + "cardtitle_rpg_marksman", + "cardtitle_stinger_marksman", + "cardtitle_at4_expert", + "cardtitle_javelin_expert", + "cardtitle_m79_expert", + "cardtitle_rpg_expert", + "cardtitle_stinger_expert", + "cardtitle_at4_veteran", + "cardtitle_javelin_veteran", + "cardtitle_m79_veteran", + "cardtitle_rpg_veteran", + "cardtitle_stinger_veteran", + "cardtitle_at4_master", + "cardtitle_javelin_master", + "cardtitle_m79_master", + "cardtitle_rpg_master", + "cardtitle_stinger_master", + "cardtitle_ssdd", + "cardtitle_prestige1", + "cardtitle_prestige2", + "cardtitle_prestige3", + "cardtitle_prestige4", + "cardtitle_prestige5", + "cardtitle_prestige6", + "cardtitle_prestige7", + "cardtitle_prestige8", + "cardtitle_prestige9", + "cardtitle_prestige10", + "cardtitle_20", + "cardtitle_30", + "cardtitle_40", + "cardtitle_50", + "cardtitle_60", + "cardtitle_70", + "cardtitle_20a", + "cardtitle_30a", + "cardtitle_40a", + "cardtitle_50a", + "cardtitle_60a", + "cardtitle_70a", + "cardtitle_grassyknoll", + "cardtitle_ghilliemist", + "cardtitle_rezero", + "cardtitle_blunttrauma", + "cardtitle_smashhit", + "cardtitle_backsmasher", + "cardtitle_protectserve", + "cardtitle_bulletproof", + "cardtitle_unbreakable" + }; + + enum(8) ENUM_10 + { + "cardnameplate_default", + "cardnameplate_test" + }; + + enum ENUM_11 + { + "none", + "neutral", + "allies", + "axis" + }; + + enum(16) ENUM_12 + { + "dm", + "tdm", + "dsd", + "sab", + "dom", + "koth", + "oneflag", + "arena", + "ctf" + }; + + struct root + { + int awards[ENUM_7]; + int bests[ENUM_7]; + int experience; + int restXPGoal; + int prestige; + int level; + int score; + int kills; + int killStreak; + int deaths; + int deathStreak; + int assists; + int headshots; + int teamkills; + int suicides; + int timePlayedAllies; + int timePlayedOpfor; + int timePlayedOther; + int timePlayedTotal; + int kdRatio; + int wins; + int losses; + int ties; + int winStreak; + int currentWinStreak; + int winLossRatio; + int hits; + int misses; + int totalShots; + int accuracy; + int money; + int timeSinceLastLoot; + int lastPlayedTime; + STRUCT_4 round; + bool weaponNew[ENUM_1]; + bool camoNew[ENUM_1][ENUM_4]; + bool attachmentNew[ENUM_1][ENUM_2]; + bool perkNew[ENUM_5]; + bool featureNew[ENUM_0]; + bool challengeTierNew[100]; + bool killstreakNew[ENUM_6]; + STRUCT_2 customClasses[15]; + byte challengeState[ENUM_3]; + int challengeProgress[ENUM_3]; + ENUM_8 cardIcon; + ENUM_9 cardTitle; + ENUM_10 cardNameplate; + ENUM_6 killstreaks[3]; + short skills[ENUM_12]; + bool iconNew[ENUM_8]; + bool titleNew[ENUM_9]; + bool iconUnlocked[ENUM_8]; + bool titleUnlocked[ENUM_9]; + bool killstreakUnlocked[ENUM_6]; + }; + + struct STRUCT_1 + { + ENUM_1 weapon; + ENUM_2 attachment[2]; + ENUM_4 camo; + pad(4); + }; + + struct STRUCT_2 + { + bool inUse; + STRUCT_1 weaponSetups[2]; + ENUM_5 perks[5]; + ENUM_1 specialGrenade; + string(21) name; + ENUM_5 _deathstreak; + pad(4); + }; + + struct STRUCT_3 + { + ENUM_7 award; + int value; + }; + + struct STRUCT_4 + { + int kills; + int killStreak; + int deaths; + int score; + int timePlayed; + bool win; + bool loss; + ENUM_11 scoreboardType; + int totalXp; + int scoreXp; + int challengeXp; + int matchXp; + int miscXp; + byte awardCount; + STRUCT_3 awards[5]; + pad(54); + }; +} diff --git a/ui_mp/auconfirm.menu b/ui_mp/auconfirm.menu new file mode 100644 index 0000000..1bd3dbc --- /dev/null +++ b/ui_mp/auconfirm.menu @@ -0,0 +1,293 @@ +{ + menuDef + { + name "auconfirm" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + exec "setfromdvar ui_name name"; + setfocus nameEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (3 * 20); + } + itemDef + { + text "@MENU_DOWNLOAD_AUTOUPDATE_PATCH" + rect 0 0 300 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textalignx -4 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + name "yes" + text "@MENU_YES" + group "mw2_popup_button" + rect 6 44 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + uiScript getAutoUpdate; + } + } + itemDef + { + name "no" + text "@MENU_NO" + group "mw2_popup_button" + rect 6 64 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + exec "setfromdvar name ui_name"; + close self; + } + } + } +} diff --git a/ui_mp/cac_popup.menu b/ui_mp/cac_popup.menu new file mode 100644 index 0000000..0bf412c --- /dev/null +++ b/ui_mp/cac_popup.menu @@ -0,0 +1,1394 @@ +{ + menuDef + { + name "cac_popup" + rect -64 0 280 0 1 1 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + outOfBoundsClick + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + allowedBinding "+talk" + exp rect Y localvarfloat("ui_cac_popup_ypos"); + exp rect H 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + onOpen + { + setLocalVarFloat ui_cac_popup_ypos 0; + setLocalVarInt ui_leftPopup 1; + focusFirst; + open cac_popup_preview; + } + onClose + { + setLocalVarInt ui_leftPopup 1; + close cac_popup_preview; + close main_background; + } + onESC + { + close self; + } + itemDef + { + rect -854 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -854 -480 1708 960 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 280 0 1 1 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect 0 0 1708 480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 280 0 1 1 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect 0 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 280 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect -32 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -32 280 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 280 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 280 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect 280 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect 0 0 280 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect -32 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect -32 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + rect 280 0 -256 0 1 1 + style 1 + decoration + visible 1 + backcolor 0.35 0.35 0.35 1 + background "gradient_slow_fadein" + exp rect h 24 + ((int(5 + min(5, (getplayerdata("prestige") / 2) + 0.5)) + (int(min(10, getplayerdata("prestige")) / 10) * (15 - 10))) * 20); + } + itemDef + { + text "@MENU_YOUR_CLASSES_CAPS" + rect 0 0 280 22 1 1 + style 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 9 + backcolor 1 1 1 0.25 + background "gradient_fadein" + } + itemDef + { + name "cac_customclass1" + group "mw2_popup_button" + rect 0 24 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 0; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 0 , inUse , true ); + setLocalVarInt classIndex 0; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 0, "name"); + } + itemDef + { + rect 64 24 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 0) && 0) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass2" + group "mw2_popup_button" + rect 0 44 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 1; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 1 , inUse , true ); + setLocalVarInt classIndex 1; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 1, "name"); + } + itemDef + { + rect 64 44 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 0) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass3" + group "mw2_popup_button" + rect 0 64 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 2; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 2 , inUse , true ); + setLocalVarInt classIndex 2; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 2, "name"); + } + itemDef + { + rect 64 64 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 0) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass4" + group "mw2_popup_button" + rect 0 84 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 3; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 3 , inUse , true ); + setLocalVarInt classIndex 3; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 3, "name"); + } + itemDef + { + rect 64 84 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 0) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass5" + group "mw2_popup_button" + rect 0 104 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 4; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 4 , inUse , true ); + setLocalVarInt classIndex 4; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 4, "name"); + } + itemDef + { + rect 64 104 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 0) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass6" + group "mw2_popup_button" + rect 0 124 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 1); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 5; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 5 , inUse , true ); + setLocalVarInt classIndex 5; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 5, "name"); + } + itemDef + { + rect 64 124 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 1) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass7" + group "mw2_popup_button" + rect 0 144 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 3); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 6; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 6 , inUse , true ); + setLocalVarInt classIndex 6; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 6, "name"); + } + itemDef + { + rect 64 144 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 3) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass8" + group "mw2_popup_button" + rect 0 164 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 5); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 7; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 7 , inUse , true ); + setLocalVarInt classIndex 7; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 7, "name"); + } + itemDef + { + rect 64 164 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 5) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass9" + group "mw2_popup_button" + rect 0 184 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 7); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 8; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 8 , inUse , true ); + setLocalVarInt classIndex 8; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 8, "name"); + } + itemDef + { + rect 64 184 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 7) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass10" + group "mw2_popup_button" + rect 0 204 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 9); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 9; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 9 , inUse , true ); + setLocalVarInt classIndex 9; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 9, "name"); + } + itemDef + { + rect 64 204 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 9) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass11" + group "mw2_popup_button" + rect 0 224 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 10); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 10; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 10 , inUse , true ); + setLocalVarInt classIndex 10; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 10, "name"); + } + itemDef + { + rect 64 224 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 10) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass12" + group "mw2_popup_button" + rect 0 244 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 10); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 11; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 11 , inUse , true ); + setLocalVarInt classIndex 11; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 11, "name"); + } + itemDef + { + rect 64 244 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 10) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass13" + group "mw2_popup_button" + rect 0 264 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 10); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 12; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 12 , inUse , true ); + setLocalVarInt classIndex 12; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 12, "name"); + } + itemDef + { + rect 64 264 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 10) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass14" + group "mw2_popup_button" + rect 0 284 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 10); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 13; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 13 , inUse , true ); + setLocalVarInt classIndex 13; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 13, "name"); + } + itemDef + { + rect 64 284 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 10) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_customclass15" + group "mw2_popup_button" + rect 0 304 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("prestige") >= 10); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + 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; + setLocalVarInt classIndex 14; + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null; + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 1; + } + action + { + play mouse_click; + setPlayerData ( customClasses , 14 , inUse , true ); + setLocalVarInt classIndex 14; + open menu_cac_assault; + } + exp text getplayerdata("customClasses", 14, "name"); + } + itemDef + { + rect 64 304 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") >= 10) && 1) && (getplayerdata("customClasses", 1, "inUse") == 0)); + textscale 0.55 + background "specialty_new" + } + } +} diff --git a/ui_mp/changelog.menu b/ui_mp/changelog.menu new file mode 100644 index 0000000..b67039b --- /dev/null +++ b/ui_mp/changelog.menu @@ -0,0 +1,162 @@ +{ + menuDef + { + name "changelog" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + text "@MENU_CHANGELOG" + rect 0 0 640 28 2 1 + decoration + visible 1 + textalignx 5 + textaligny -10 + textscale 0.45 + textfont 9 + exp rect x 0 - (640 / 2); + } + itemDef + { + rect 0 0 640 400 2 1 + style 3 + decoration + visible 1 + forecolor 0.3 0.3 0.3 0.5 + background "white" + exp rect x 0 - (640 / 2); + } + itemDef + { + rect 0 0 640 400 2 1 + style 1 + visible 1 + backcolor 0 0 0 0.375 + background "white" + exp rect x 0 - (640 / 2); + } + itemDef + { + rect 0 0 640 397 2 1 + style 1 + type 6 + visible 1 + textalignx 6 + textaligny 6 + textscale 0.375 + textfont 7 + exp rect x 0 - (640 / 2); + notselectable + elementwidth 640 + elementheight 12 + feeder 62 + columns 1 + 0 640 100 0 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/connect.menu b/ui_mp/connect.menu new file mode 100644 index 0000000..ed0ca59 --- /dev/null +++ b/ui_mp/connect.menu @@ -0,0 +1,228 @@ +{ + menuDef + { + name "connect" + rect 0 0 640 480 0 0 + style 1 + focuscolor 1 1 1 1 + onOpen + { + exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow"; + } + itemDef + { + rect -426.667 -240 853.333 480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "$levelbriefing" + } + itemDef + { + rect -426.667 -236 853.333 -400 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + background "gradient_bottom" + } + itemDef + { + rect -426.667 -163 853.333 200 2 3 + style 3 + decoration + visible 1 + textscale 0.55 + background "gradient_bottom" + } + itemDef + { + rect 0 0 0 26 3 1 + decoration + visible 1 + textalign 6 + textalignx -8 + textscale 0.5833 + textstyle 3 + textfont 9 + forecolor 0.051 0.741 0 1 + exp text gametypename(); + } + itemDef + { + rect 0 26 0 26 3 1 + decoration + visible 1 + textalign 6 + textalignx -8 + textscale 0.5833 + textstyle 3 + textfont 9 + exp text getmapname(); + } + itemDef + { + rect 0 56 0 26 3 1 + decoration + visible 1 + textalign 6 + textalignx -8 + textscale 0.275 + textstyle 3 + textfont 9 + exp text connectioninfo(); + } + itemDef + { + rect 0 56 0 26 3 1 + decoration + visible when((connectioninfo() != "") && (((sin(milliseconds() * 0.005) + 1) * 0.5) <= 0.25)); + textalign 4 + textalignx -6 + textscale 0.275 + textstyle 3 + textfont 9 + exp text ""; + } + itemDef + { + rect 0 56 0 26 3 1 + decoration + visible when((connectioninfo() != "") && ((((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.25) && (((sin(milliseconds() * 0.005) + 1) * 0.5) <= 0.5))); + textalign 4 + textalignx -6 + textscale 0.275 + textstyle 3 + textfont 9 + exp text "."; + } + itemDef + { + rect 0 56 0 26 3 1 + decoration + visible when((connectioninfo() != "") && ((((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.5) && (((sin(milliseconds() * 0.005) + 1) * 0.5) <= 0.75))); + textalign 4 + textalignx -6 + textscale 0.275 + textstyle 3 + textfont 9 + exp text ".."; + } + itemDef + { + rect 0 56 0 26 3 1 + decoration + visible when((connectioninfo() != "") && (((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.75)); + textalign 4 + textalignx -6 + textscale 0.275 + textstyle 3 + textfont 9 + exp text "..."; + } + itemDef + { + rect 0 86 0 26 3 1 + decoration + visible when(dvarstring(fs_game) != ""); + textalign 6 + textalignx -8 + textscale 0.375 + textstyle 3 + textfont 9 + exp text dvarstring(fs_game); + } + itemDef + { + rect -252 -60 504 3 2 3 + style 1 + decoration + visible when(!dvarbool(wideScreen)); + textscale 0.55 + backcolor 1 1 1 0.2 + } + itemDef + { + name "loadbar" + rect -252 -60 504 3 2 3 + style 6 + decoration + visible when(!dvarbool(wideScreen)); + textscale 0.55 + forecolor 1 1 1 0.5 + background "white" + } + itemDef + { + rect 20 -60 410 2 1 3 + decoration + autowrapped + visible when(!dvarbool(wideScreen)); + textalign 4 + textaligny 4 + textscale 0.275 + textstyle 3 + textfont 9 + } + itemDef + { + text "@MENU_INTEL" + rect -20 -60 0 2 1 3 + decoration + visible when(!dvarbool(wideScreen)); + textalign 4 + textalignx 40 + textaligny -26 + textscale 0.5833 + textstyle 3 + textfont 9 + } + itemDef + { + rect -320 -60 640 3 2 3 + style 1 + decoration + visible when(dvarbool(wideScreen)); + textscale 0.55 + backcolor 1 1 1 0.2 + } + itemDef + { + name "loadbar" + rect -320 -60 640 3 2 3 + style 6 + decoration + visible when(dvarbool(wideScreen)); + textscale 0.55 + forecolor 1 1 1 0.5 + background "white" + } + itemDef + { + rect -36 -56 484 2 1 3 + decoration + autowrapped + visible when(dvarbool(wideScreen)); + textalign 4 + textalignx 80 + textaligny 4 + textscale 0.275 + textstyle 3 + textfont 9 + } + itemDef + { + text "@MENU_INTEL" + rect -36 -60 0 2 1 3 + decoration + visible when(dvarbool(wideScreen)); + textalign 4 + textalignx 80 + textaligny -26 + textscale 0.5833 + textstyle 3 + textfont 9 + } + } +} diff --git a/ui_mp/controls_multi.menu b/ui_mp/controls_multi.menu new file mode 100644 index 0000000..2fc35f3 --- /dev/null +++ b/ui_mp/controls_multi.menu @@ -0,0 +1,453 @@ +{ + menuDef + { + name "controls_multi" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarBool ui_hideBack 1; + setLocalVarBool ui_hint_display 0; + } + onClose + { + setLocalVarBool ui_hideBack 0; + open pc_options_controls; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_CHAT" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "chatmodepublic" + } + itemDef + { + text "@MENU_TEXT_CHAT" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "chatmodeteam" + } + itemDef + { + text "@MENU_TEXT_TEAM_CHAT" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "mp_QuickMessage" + } + itemDef + { + text "@MENU_QUICK_CHAT" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "vote yes" + } + itemDef + { + text "@MENU_VOTE_YES" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "vote no" + } + itemDef + { + text "@MENU_VOTE_NO" + rect 232 128 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + name "keyBindStatus" + rect 10 20 500 240 2 3 + style 1 + decoration + autowrapped + type 8 + ownerdraw 250 + textalign 1 + textscale 0.375 + forecolor 0.65 0.65 0.65 1 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/createfavorite_popmenu.menu b/ui_mp/createfavorite_popmenu.menu new file mode 100644 index 0000000..cd31c6f --- /dev/null +++ b/ui_mp/createfavorite_popmenu.menu @@ -0,0 +1,314 @@ +{ + menuDef + { + name "createfavorite_popmenu" + rect -150 -84 300 116 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setfocus passwordEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 992 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 992 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 116 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 32 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 56 + (3 * 20); + } + itemDef + { + text "@MENU_NEW_FAVORITE" + rect 0 0 300 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textalignx -4 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + name "fav_ip" + text "@MENU_IP_ADDRESS" + rect 10 40 280 20 2 2 + style 1 + type 4 + visible 1 + textalignx 5 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.3 + accept + { + uiScript CreateFavorite; + close self; + } + dvar "ui_favoriteAddress" + maxChars 22 + maxPaintChars 22 + } + itemDef + { + name "yes" + text "@MENU_OK" + group "mw2_popup_button" + rect 6 76 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + uiScript CreateFavorite; + play mouse_click; + close self; + } + } + itemDef + { + name "cancel" + text "@MENU_CANCEL" + group "mw2_popup_button" + rect 6 96 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/createserver.menu b/ui_mp/createserver.menu new file mode 100644 index 0000000..eba36cb --- /dev/null +++ b/ui_mp/createserver.menu @@ -0,0 +1,829 @@ +{ + menuDef + { + name "createserver" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + uiScript loadArenas; + execNow xblive_rankedmatch 0; + execNow xblive_privatematch 1; + exec "exec dvar_defaults.cfg"; + } + onClose + { + open main_text; + } + onESC + { + exec xstopparty; + if ((inprivateparty() && (!privatepartyhost())) && privatepartyhostinlobby()) + { + exec xstopprivateparty; + exec xstartprivateparty; + } + setDvar xblive_privatematch 0; + close self; + } + execKey "f" + { + play mouse_click; + open popup_friends; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + name "ticker_bg" + rect -107 -30 900 16 1 1 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.2 + } + itemDef + { + name "ticker2" + rect -107 -30 900 16 1 1 + style 1 + decoration + type 20 + visible 1 + textaligny 16.5 + textscale 0.26 + textfont 3 + backcolor 0 0 0 0.3 + background "shadow_inset" + speed 20 + } + itemDef + { + name "panel_title" + text "@MENU_GAME_SETTINGS_CAPS" + rect -300 48 300 20 3 1 + style 1 + decoration + visible 1 + textalignx 6 + textaligny 18 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.45 + background "gradient_center" + } + itemDef + { + name "panel_background" + rect -300 68 300 66 3 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.1 + } + itemDef + { + name "hostname" + text " " + rect -300 74 300 18 3 1 + style 1 + type 4 + visible 1 + textalign 2 + textalignx -52 + textaligny 16 + textscale 0.375 + textfont 3 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + dvar "sv_hostname" + maxChars 18 + maxPaintChars 18 + } + itemDef + { + text "@MENU_SERVER_NAME" + rect -300 74 300 18 3 1 + style 1 + decoration + visible 1 + textalignx 8 + textaligny 16 + textscale 0.375 + textfont 3 + } + itemDef + { + name "maxplayers" + text " " + rect -300 92 300 18 3 1 + style 1 + type 9 + visible 1 + textalign 2 + textalignx -52 + textaligny 16 + textscale 0.375 + textfont 3 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + dvar "party_maxplayers" + maxChars 2 + maxPaintChars 2 + } + itemDef + { + text "@MENU_MAXIMUM_PLAYERS" + rect -300 92 300 18 3 1 + style 1 + decoration + visible 1 + textalignx 8 + textaligny 16 + textscale 0.375 + textfont 3 + } + itemDef + { + name "maxping" + text " " + rect -300 110 300 18 3 1 + style 1 + type 9 + visible 1 + textalign 2 + textalignx -52 + textaligny 16 + textscale 0.375 + textfont 3 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + dvar "sv_maxping" + maxChars 3 + maxPaintChars 3 + } + itemDef + { + text "@MENU_MAXIMUM_PING" + rect -300 110 300 18 3 1 + style 1 + decoration + visible 1 + textalignx 8 + textaligny 16 + textscale 0.375 + textfont 3 + } + itemDef + { + rect 0 18 272 28 1 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -59 + textscale 0.5 + textfont 9 + exp text "@MENU_CREATE_GAME_CAPS"; + } + itemDef + { + name "button_0" + text "@MENU_START_GAME_CAPS" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow;" exec xpartygo; + } + } + itemDef + { + rect 0 67.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_1" + text "@MENU_LOADING_MAPS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible when(dvarint(g_loadingInitialZones) != 0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + ""; + } + } + itemDef + { + name "button_1" + text "@MENU_CHANGE_MAP_CAPS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible when(dvarint(g_loadingInitialZones) == 0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open settings_map; + } + } + itemDef + { + name "button_2" + text "@MENU_CHANGE_GAME_MODE_CAPS" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open settings_gametype; + } + } + itemDef + { + name "button_3" + text "@MENU_CHANGE_GAME_RULES_CAPS" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible when((dvarstring(ui_gametype) != "arena") && (dvarstring(ui_gametype) != "oneflag")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + if (dvarstring(ui_gametype) == "arena") + { + open settings_quick_arena; + } + if (dvarstring(ui_gametype) == "war") + { + open settings_quick_war; + } + if (dvarstring(ui_gametype) == "sd") + { + open settings_quick_sd; + } + if (dvarstring(ui_gametype) == "sab") + { + open settings_quick_sab; + } + if (dvarstring(ui_gametype) == "dm") + { + open settings_quick_dm; + } + if (dvarstring(ui_gametype) == "dom") + { + open settings_quick_dom; + } + if (dvarstring(ui_gametype) == "ctf") + { + open settings_quick_ctf; + } + if (dvarstring(ui_gametype) == "koth") + { + open settings_quick_koth; + } + if (dvarstring(ui_gametype) == "oneflag") + { + open settings_quick_oneflag; + } + if (dvarstring(ui_gametype) == "dd") + { + open settings_quick_dd; + } + if (dvarstring(ui_gametype) == "vip") + { + open settings_quick_vip; + } + if (dvarstring(ui_gametype) == "gtnw") + { + open settings_quick_gtnw; + } + } + } + itemDef + { + name "button_3" + text "@MENU_CHANGE_GAME_RULES_CAPS" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible when((dvarstring(ui_gametype) == "arena") || (dvarstring(ui_gametype) == "oneflag")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + forecolor 1 1 1 0.5 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + } + itemDef + { + rect 0 127.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_4" + text "@MENU_PASSWORD_CAPS" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_serverpassword; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_5" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + name "nattype" + rect -64 188 336 20 1 1 + style 1 + decoration + type 1 + visible when(getlocalizednattype() != locstring("@NETWORK_STRICT")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + exp text (locstring("@NETWORK_YOURNATTYPE") + " ") + getlocalizednattype(); + } + itemDef + { + name "nattype" + rect -64 188 336 20 1 1 + style 1 + decoration + type 1 + visible when(getlocalizednattype() == locstring("@NETWORK_STRICT")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + exp text (locstring("@NETWORK_YOURNATTYPE") + " ^1") + getlocalizednattype(); + } + itemDef + { + name "namehint" + rect 0 240 212 18 1 1 + decoration + autowrapped + type 1 + visible when(getlocalizednattype() == locstring("@NETWORK_STRICT")); + textalign 2 + textscale 0.2916 + exp text "@PATCH_STRICTHINT"; + } + itemDef + { + name "preview_image" + rect 0 -139 216 122 1 3 + style 3 + decoration + visible 1 + textscale 0.375 + exp material "preview_" + dvarstring(ui_mapname); + } + itemDef + { + name "preview_mapname" + rect 0 -139 216 19 1 3 + style 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -4 + textaligny -1 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.5 + exp text dvarstring(party_mapname); + } + itemDef + { + name "preview_gametype" + rect 0 -36 216 19 1 3 + style 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.5 + exp text dvarstring(party_gametype); + } + itemDef + { + name "button_friends" + text "@PLATFORM_FRIENDS_CAPS" + rect -120 -4 120 20 3 3 + style 1 + type 1 + visible 1 + textalign 1 + textaligny 16 + textscale 0.275 + textfont 9 + disablecolor 0.6 0.55 0.55 1 + onFocus + { + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_FRIENDS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_friends; + } + } + } +} diff --git a/ui_mp/dpad_hd.menu b/ui_mp/dpad_hd.menu new file mode 100644 index 0000000..ff0c64c --- /dev/null +++ b/ui_mp/dpad_hd.menu @@ -0,0 +1,150 @@ +{ + menuDef + { + name "dpad_hd" + rect 0 -16 640 480 4 4 + visible when((((((((!ui_active()) && (!dvarbool(g_hardcore))) && (!flashbanged())) && (!(((((((weaponname() == "killstreak_ac130_mp") || (weaponname() == "killstreak_helicopter_minigun_mp")) || (weaponname() == "killstreak_predator_missile_mp")) || (((weaponname() == "ac130_105mm_mp") || (weaponname() == "ac130_40mm_mp")) || (weaponname() == "ac130_25mm_mp"))) || adsjavelin()) || (weaponname() == "heli_remote_mp")) || missilecam()))) && (!isempjammed())) && (!dvarint(scr_gameended))) && (!selecting_location())) && (!spectatingfree())); + itemDef + { + rect -81 -39 32 32 10 10 + type 8 + visible when((!dvarbool(gpad_enabled)) || (!dvarint(gpad_in_use))); + ownerdraw 171 + textalign 2 + textalignx -21 + textaligny -9 + textscale 0.3333 + textstyle 3 + textfont 10 + } + itemDef + { + rect -81 -39 32 32 10 10 + decoration + visible when(((!dvarbool(gpad_enabled)) || (!dvarint(gpad_in_use))) && actionslotusable(1)); + textalign 1 + textaligny 35 + textscale 0.25 + textstyle 6 + textfont 6 + forecolor 1 1 0 1 + exp text "^3" + keybinding("+actionslot 1"); + } + itemDef + { + rect -61 -29 32 32 10 10 + type 8 + visible when((!dvarbool(gpad_enabled)) || (!dvarint(gpad_in_use))); + ownerdraw 173 + textalign 2 + textalignx -21 + textaligny -9 + textscale 0.3333 + textstyle 3 + textfont 10 + } + itemDef + { + rect -61 -29 32 32 10 10 + decoration + visible when(((!dvarbool(gpad_enabled)) || (!dvarint(gpad_in_use))) && actionslotusable(3)); + textalign 1 + textaligny 35 + textscale 0.25 + textstyle 6 + textfont 6 + forecolor 1 1 0 1 + exp text "^3" + keybinding("+actionslot 3"); + } + itemDef + { + rect -61 -61 32 32 10 10 + type 8 + visible when((!dvarbool(gpad_enabled)) || (!dvarint(gpad_in_use))); + ownerdraw 174 + textalignx -40 + textaligny -5 + textscale 0.3333 + textstyle 3 + textfont 10 + } + itemDef + { + rect -61 -61 32 32 10 10 + decoration + visible when(((!dvarbool(gpad_enabled)) || (!dvarint(gpad_in_use))) && actionslotusable(4)); + textalign 1 + textaligny 35 + textscale 0.25 + textstyle 6 + textfont 6 + forecolor 1 1 0 1 + exp text "^3" + keybinding("+actionslot 4"); + } + itemDef + { + rect -68.6667 -42.3333 42.6667 42.6667 10 10 + style 3 + decoration + visible when((dvarbool(gpad_enabled) && dvarint(gpad_in_use)) && (!dvarbool(gpad_style))); + textscale 0.55 + forecolor 1 1 1 0.65 + background "hud_dpad_xbox360" + } + itemDef + { + rect -68.6667 -42.3333 42.6667 42.6667 10 10 + style 3 + decoration + visible when((dvarbool(gpad_enabled) && dvarint(gpad_in_use)) && dvarbool(gpad_style)); + textscale 0.55 + forecolor 1 1 1 0.65 + background "hud_dpad_ps3" + } + itemDef + { + rect -68.6667 -42 42.6667 42.6667 10 10 + style 3 + decoration + visible when((dvarbool(gpad_enabled) && dvarint(gpad_in_use)) && actionslotusable(3)); + textscale 0.55 + forecolor 1 0.9 0.5 1 + background "hud_dpad_arrow_left" + } + itemDef + { + rect -93 -33 32 32 10 10 + type 8 + visible when(dvarbool(gpad_enabled) && dvarint(gpad_in_use)); + ownerdraw 173 + textalign 2 + textalignx -21 + textaligny -3 + textscale 0.3333 + textstyle 3 + textfont 10 + } + itemDef + { + rect -68.6667 -42 42.6667 42.6667 10 10 + style 3 + decoration + visible when((dvarbool(gpad_enabled) && dvarint(gpad_in_use)) && actionslotusable(4)); + textscale 0.55 + forecolor 1 0.9 0.5 1 + background "hud_dpad_arrow_right" + exp forecolor a 0.25 + (sin(milliseconds() / 200) + 1); + } + itemDef + { + rect -30 -36 32 32 10 10 + type 8 + visible when(dvarbool(gpad_enabled) && dvarint(gpad_in_use)); + ownerdraw 174 + textalignx -40 + textscale 0.3333 + textstyle 3 + textfont 10 + } + } +} diff --git a/ui_mp/filter_popmenu.menu b/ui_mp/filter_popmenu.menu new file mode 100644 index 0000000..3c925a1 --- /dev/null +++ b/ui_mp/filter_popmenu.menu @@ -0,0 +1,540 @@ +{ + menuDef + { + name "filter_popmenu" + rect -150 -124 236 250 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 236 250 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 236 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 190 + (3 * 20); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 236 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 236 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 236 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 236 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 25 + (3 * 75); + } + itemDef + { + rect 236 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (166 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect 0 0 236 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (166 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (166 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 25 + (3 * 75); + } + itemDef + { + text "@MENU_FILTER_SERVERS" + rect 0 0 236 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + text "@MENU_VIEW_EMPTY" + rect 0 30 234 20 2 2 + style 1 + decoration + visible 1 + textalignx 6 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0.6 0.55 0.55 0.5 + background "menu_setting_selection_bar" + } + itemDef + { + rect 0 30 234 20 2 2 + style 1 + type 11 + visible 1 + textalign 2 + textalignx -32 + textaligny 18 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + play mouse_over; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + } + dvar "ui_browserShowEmpty" + } + itemDef + { + text "@MENU_VIEW_FULL" + rect 0 50 234 20 2 2 + style 1 + decoration + visible 1 + textalignx 6 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0.6 0.55 0.55 0.5 + background "menu_setting_selection_bar" + } + itemDef + { + rect 0 50 234 20 2 2 + style 1 + type 11 + visible 1 + textalign 2 + textalignx -32 + textaligny 18 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + play mouse_over; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + } + dvar "ui_browserShowFull" + } + itemDef + { + text "@MENU_VIEW_PASSWORD" + rect 0 70 234 20 2 2 + style 1 + decoration + visible 1 + textalignx 6 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0.6 0.55 0.55 0.5 + background "menu_setting_selection_bar" + } + itemDef + { + rect 0 70 234 20 2 2 + style 1 + type 12 + visible 1 + textalign 2 + textalignx -32 + textaligny 18 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + play mouse_over; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + } + dvar "ui_browserShowPassword" + dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 } + } + itemDef + { + text "@MPUI_HARDCORE_PRE" + rect 0 90 234 20 2 2 + style 1 + decoration + visible 1 + textalignx 6 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0.6 0.55 0.55 0.5 + background "menu_setting_selection_bar" + } + itemDef + { + rect 0 90 234 20 2 2 + style 1 + type 12 + visible 1 + textalign 2 + textalignx -32 + textaligny 18 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + play mouse_over; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + } + dvar "ui_browserKillcam" + dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 } + } + itemDef + { + text "@MENU_MODSWITHCOLON" + rect 0 110 234 20 2 2 + style 1 + decoration + visible 1 + textalignx 6 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0.6 0.55 0.55 0.5 + background "menu_setting_selection_bar" + } + itemDef + { + rect 0 110 234 20 2 2 + style 1 + type 12 + visible 1 + textalign 2 + textalignx -32 + textaligny 18 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + play mouse_over; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + } + dvar "ui_browserMod" + dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 } + } + itemDef + { + text "@MENU_DEDICATEDONLY" + rect 0 130 234 20 2 2 + style 1 + decoration + visible 1 + textalignx 6 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0.6 0.55 0.55 0.5 + background "menu_setting_selection_bar" + } + itemDef + { + rect 0 130 234 20 2 2 + style 1 + type 12 + visible 1 + textalign 2 + textalignx -32 + textaligny 18 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + play mouse_over; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + } + dvar "ui_browserFriendlyfire" + dvarFloatList { "@MENU_ALL" -1 "@MENU_NO" 0 "@MENU_YES" 1 } + } + itemDef + { + name "apply" + text "@MENU_OK" + group "mw2_popup_button" + rect 0 210 234 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + uiScript UpdateFilter; + close self; + } + } + itemDef + { + name "reset" + text "@MENU_RESET" + group "mw2_popup_button" + rect 0 230 234 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + exec "exec default_filter.cfg"; + } + } + } +} diff --git a/ui_mp/hostchangewarning.menu b/ui_mp/hostchangewarning.menu new file mode 100644 index 0000000..05351a2 --- /dev/null +++ b/ui_mp/hostchangewarning.menu @@ -0,0 +1,311 @@ +{ + menuDef + { + name "hostchangewarning" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setFocus yes_button; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -150 -84 300 84 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -84 1708 480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 300 0 2 2 + style 3 + decoration + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 300 0 1 1 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -214 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -150 -148 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 150 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 150 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect 150 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -150 -84 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (3 * 20); + } + itemDef + { + text "@PATCH_CHANGEHOSTTITLE" + rect -150 -84 300 24 2 2 + style 1 + decoration + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + group "mw2_popup_button" + rect -146 -60 292 20 2 2 + style 1 + type 1 + textalign 5 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + } + exp text dvarstring(party_makehostquestion); + } + itemDef + { + name "yes_button" + text "@MENU_YES" + group "mw2_popup_button" + rect -146 -40 292 20 2 2 + style 1 + type 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + makehost; + close self; + } + } + itemDef + { + name "cancel_button" + text "@MENU_NO" + group "mw2_popup_button" + rect -146 -20 292 20 2 2 + style 1 + type 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/hud_fullscreen.menu b/ui_mp/hud_fullscreen.menu new file mode 100644 index 0000000..152e415 --- /dev/null +++ b/ui_mp/hud_fullscreen.menu @@ -0,0 +1,184 @@ +{ + menuDef + { + name "hud_fullscreen" + rect 0 0 640 480 4 4 + visible 1 + itemDef + { + rect 0 0 640 480 4 4 + type 8 + visible when(((!(weaponname() == "heli_remote_mp")) && (!(((weaponname() == "ac130_105mm_mp") || (weaponname() == "ac130_40mm_mp")) || (weaponname() == "ac130_25mm_mp")))) && ((!(spectatingclient() && dvarbool(cg_thirdPersonSpectator))) || inkillcam())); + ownerdraw 112 + textscale 0.55 + background "splatter_alt" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(scopedthermal() && (!(spectatingclient() && dvarbool(cg_thirdPersonSpectator)))); + textscale 0.55 + forecolor 0.9 1 1 0.3 + background "ac130_overlay_grain" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(((((getperk("equipment") == "_specialty_blastshield") && ((!dvarint(scr_gameended)) || inkillcam())) && (!(weaponname() == "heli_remote_mp"))) && (!(((weaponname() == "ac130_105mm_mp") || (weaponname() == "ac130_40mm_mp")) || (weaponname() == "ac130_25mm_mp")))) && (!missilecam())); + textscale 0.55 + background "ballistic_overlay" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(isempjammed()); + textscale 0.55 + forecolor 0.9 1 1 0.3 + background "ac130_overlay_grain" + } + itemDef + { + rect 0 -75 40 40 2 10 + type 8 + visible when((((((((!ui_active()) && (!dvarbool(g_hardcore))) && (!spectatingclient())) && (!inkillcam())) && (!dvarint(scr_gameended))) && (!flashbanged())) && (!(((((((((weaponname() == "killstreak_ac130_mp") || (weaponname() == "killstreak_helicopter_minigun_mp")) || (weaponname() == "killstreak_predator_missile_mp")) || (weaponname() == "ac130_105mm_mp")) || (weaponname() == "ac130_40mm_mp")) || (weaponname() == "ac130_25mm_mp")) || adsjavelin()) || (weaponname() == "heli_remote_mp")) || missilecam()))) && (!(((((((((!ui_active()) && (!dvarbool(g_hardcore))) && (!flashbanged())) && (!isempjammed())) && (!dvarint(scr_gameended))) && (((milliseconds() - localvarint("ui_show_youKilled")) < 2500) && (!((milliseconds() - localvarint("ui_show_killedBy")) < 4000)))) && (!dvarbool(ui_hide_playercards))) && (!((milliseconds() - localvarint("ui_show_killedBy")) < 4000))) || (((!ui_active()) && ((milliseconds() - localvarint("ui_show_killedBy")) < 4000)) && (!dvarbool(ui_hide_playercards)))))); + ownerdraw 80 + textscale 0.375 + textstyle 3 + forecolor 1 1 1 0.65 + } + itemDef + { + rect 0 -125 40 40 2 10 + type 8 + visible when(((((((!ui_active()) && (!dvarbool(g_hardcore))) && (!spectatingclient())) && (!inkillcam())) && (!dvarint(scr_gameended))) && (!flashbanged())) && (!(((((((weaponname() == "killstreak_ac130_mp") || (weaponname() == "killstreak_helicopter_minigun_mp")) || (weaponname() == "killstreak_predator_missile_mp")) || (((weaponname() == "ac130_105mm_mp") || (weaponname() == "ac130_40mm_mp")) || (weaponname() == "ac130_25mm_mp"))) || adsjavelin()) || (weaponname() == "heli_remote_mp")) || missilecam()))); + ownerdraw 72 + textscale 0.375 + textstyle 3 + forecolor 1 1 1 0.65 + } + itemDef + { + rect 0 -125 0 0 2 2 + decoration + type 8 + visible when((!ui_active()) && (!spectatingclient())); + ownerdraw 113 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "talking" + rect 108 48 24 24 8 8 + decoration + type 8 + visible when((((!ui_active()) && (!dvarbool(g_hardcore))) && (!inkillcam())) && (!dvarint(scr_gameended))); + ownerdraw 266 + textscale 0.55 + forecolor 1 1 1 0.85 + exp rect y (6 + (((((dvarstring(ui_danger_team) == "contested") || (((dvarstring(ui_danger_team) != "BombExploded") && ((team("name") == "TEAM_ALLIES") && (dvarstring(ui_danger_team) == "axis"))) || ((team("name") == "TEAM_AXIS") && (dvarstring(ui_danger_team) == "allies")))) || ((dvarstring(ui_danger_team) != "BombExploded") && (dvarstring(ui_danger_team) == "none"))) || (((dvarstring(ui_danger_team) != "BombExploded") && ((team("name") == "TEAM_ALLIES") && (dvarstring(ui_danger_team) == "allies"))) || ((team("name") == "TEAM_AXIS") && (dvarstring(ui_danger_team) == "axis")))) * 16)) + (dvarint(ui_bomb_timer) * 26); + } + itemDef + { + name "talker1" + rect 0 136 18 18 8 8 + decoration + type 8 + visible when((((!ui_active()) && (!dvarbool(g_hardcore))) && (!inkillcam())) && (!dvarint(scr_gameended))); + ownerdraw 193 + textalignx 18 + textaligny 17 + textscale 0.375 + textstyle 3 + } + itemDef + { + name "talker2" + rect 0 154 18 18 8 8 + decoration + type 8 + visible when((((!ui_active()) && (!dvarbool(g_hardcore))) && (!inkillcam())) && (!dvarint(scr_gameended))); + ownerdraw 194 + textalignx 18 + textaligny 17 + textscale 0.375 + textstyle 3 + } + itemDef + { + name "talker3" + rect 0 172 18 18 8 8 + decoration + type 8 + visible when((((!ui_active()) && (!dvarbool(g_hardcore))) && (!inkillcam())) && (!dvarint(scr_gameended))); + ownerdraw 195 + textalignx 18 + textaligny 17 + textscale 0.375 + textstyle 3 + } + itemDef + { + name "talker4" + rect 0 190 18 18 8 8 + decoration + type 8 + visible when((((!ui_active()) && (!dvarbool(g_hardcore))) && (!inkillcam())) && (!dvarint(scr_gameended))); + ownerdraw 196 + textalignx 18 + textaligny 17 + textscale 0.375 + textstyle 3 + } + itemDef + { + text "@CGAME_FOLLOWING" + rect -100 20 200 0 2 1 + visible when((((!inkillcam()) && (spectatingclient() || spectatingfree())) && (!ui_active())) && (!dvarint(scr_gameended))); + textalign 9 + textscale 0.375 + textstyle 3 + forecolor 1 1 1 0.65 + } + itemDef + { + rect -120 -35 180 5 3 1 + type 8 + visible when((((!inkillcam()) && (spectatingclient() || spectatingfree())) && (!ui_active())) && (!dvarint(scr_gameended))); + ownerdraw 61 + textalign 4 + textscale 0.375 + textstyle 3 + forecolor 1 1 1 0.65 + } + itemDef + { + rect 6 -60 10 10 8 10 + type 19 + visible when((!inkillcam()) && (!ui_active())); + textscale 0.375 + textstyle 3 + forecolor 1 1 1 0.45 + gamemsgwindowmode 1 + } + itemDef + { + rect 0 -60 10 10 9 9 + type 19 + visible when((!inkillcam()) && (!ui_active())); + textalign 1 + textscale 0.375 + textstyle 3 + textfont 1 + gamemsgwindowindex 1 + gamemsgwindowmode 1 + } + } +} diff --git a/ui_mp/iw4x_credits.menu b/ui_mp/iw4x_credits.menu new file mode 100644 index 0000000..6c49bdb --- /dev/null +++ b/ui_mp/iw4x_credits.menu @@ -0,0 +1,179 @@ +{ + menuDef + { + name "iw4x_credits" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -256 -246 512 128 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "logo_cod2" + exp forecolor a ((sin(milliseconds() / 1000) + 1) * 0.25) + 0.5; + } + itemDef + { + name "box_background" + rect 0 -130 600 320 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.3 0.3 0.3 0.5 + background "white" + exp rect x 0 - 300; + } + itemDef + { + name "welcome_box" + text "IW4x" + rect 0 -130 600 320 2 2 + style 1 + decoration + visible 1 + textalign 5 + textaligny -5 + textscale 1 + textfont 9 + backcolor 0 0 0 0.375 + background "white" + exp rect x 0 - 300; + } + itemDef + { + text "DEVELOPED BY" + rect 0 -90 500 280 2 2 + style 1 + decoration + autowrapped + visible 1 + textalign 5 + textscale 0.375 + textfont 7 + exp rect x 0 - 250; + } + itemDef + { + name "welcome_message" + text "@IW4X_CREDITS" + rect 0 -70 500 250 2 2 + style 1 + decoration + autowrapped + type 21 + visible 1 + textalign 5 + textscale 0.375 + textfont 7 + exp rect x 0 - 250; + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/leavelobbywarning.menu b/ui_mp/leavelobbywarning.menu new file mode 100644 index 0000000..e48d20c --- /dev/null +++ b/ui_mp/leavelobbywarning.menu @@ -0,0 +1,312 @@ +{ + menuDef + { + name "leavelobbywarning" + rect -150 -64 300 64 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setfocus cancel_button; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -544 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -544 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 64 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (2 * 20); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (2 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (2 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (2 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (2 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (2 * 20)); + } + itemDef + { + rect -64 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (2 * 20); + } + itemDef + { + text "@XBOXLIVE_LEAVELOBBY" + rect 0 0 300 24 2 2 + style 1 + decoration + visible when(((!inprivateparty()) || privatepartyhost()) || (!privatepartyhostinlobby())); + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + text "@XBOXLIVE_LEAVEPARTYANDLOBBY" + rect -150 -64 300 24 2 2 + style 1 + decoration + visible when((inprivateparty() && (!privatepartyhost())) && privatepartyhostinlobby()); + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + name "yes_button" + text "@MENU_YES" + group "mw2_popup_button" + rect 6 24 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + exec xstopparty; + if ((inprivateparty() && (!privatepartyhost())) && privatepartyhostinlobby()) + { + exec xstopprivateparty; + exec xstartprivateparty; + } + close menu_xboxlive_lobby; + close menu_xboxlive_privatelobby; + close menu_xboxlive_teams; + exec "xblive_privatematch 0"; + open pc_join_unranked close self; + } + } + itemDef + { + name "cancel_button" + text "@MENU_NO" + group "mw2_popup_button" + rect 6 44 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/main_text.menu b/ui_mp/main_text.menu new file mode 100644 index 0000000..f19161e --- /dev/null +++ b/ui_mp/main_text.menu @@ -0,0 +1,970 @@ +{ + menuDef + { + name "main_text" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow"; + uiScript checkFirstLaunch; + setLocalVarString ui_hint_text ""; + } + onESC + { + open quit_popmenu; + } + execKey "f" + { + play mouse_click; + open popup_friends; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + rect 304 215 288 72 0 0 + style 3 + decoration + visible 1 + textscale 0.55 + background "logo_cod2" + exp forecolor a ((sin(milliseconds() / 1000) + 1) * 0.25) + 0.5; + } + itemDef + { + name "ticker_bg" + rect -107 -30 900 16 1 1 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.2 + } + itemDef + { + name "ticker2" + rect -107 -30 900 16 1 1 + style 1 + decoration + type 20 + visible 1 + textaligny 16.5 + textscale 0.26 + textfont 3 + backcolor 0 0 0 0.3 + background "shadow_inset" + speed 20 + } + itemDef + { + rect 0 78 272 28 1 1 + decoration + autowrapped + visible when(!dvarbool(cl_updateavailable)); + textalign 6 + textalignx -59 + textscale 0.5833 + textfont 9 + exp text "IW4x"; + } + itemDef + { + rect 0 58 272 28 1 1 + decoration + autowrapped + visible when(dvarbool(cl_updateavailable)); + textalign 6 + textalignx -59 + textscale 0.5833 + textfont 9 + exp text "IW4x"; + } + itemDef + { + name "button_0" + text "@MENU_CHECK_FOR_UPDATES_CAPS" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible when(dvarbool(cl_updateavailable)); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_CHECK_FOR_UPDATES"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_CHECK_FOR_UPDATES"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + uiScript checkForUpdate; + open auconfirm; + } + } + itemDef + { + rect 236 88 40 20 1 1 + style 3 + decoration + visible when(dvarbool(cl_updateavailable)); + align 2 + exp material "specialty_new"; + } + itemDef + { + rect 0 107.5 216 1 1 1 + style 3 + decoration + visible when(dvarbool(cl_updateavailable)); + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_1" + text "@MENU_JOIN_GAME_CAPS" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_JOIN_GAME"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_JOIN_GAME"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec xrequirelivesignin; + open pc_join_unranked; + } + } + itemDef + { + name "button_2" + text "@MENU_CREATE_GAME_CAPS" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_CREATE_GAME"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_CREATE_GAME"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec xrequirelivesignin; + setDvar systemlink 0; + setDvar splitscreen 0; + setDvar onlinegame 1; + exec "exec default_xboxlive.cfg"; + setDvar party_maxplayers 18; + setDvar xblive_privateserver 0; + setDvar xblive_rankedmatch 0; + exec xstartprivateparty; + setDvar ui_mptype 0; + exec xcheckezpatch; + exec "exec default_xboxlive.cfg" setDvar xblive_rankedmatch 0; + exec ui_enumeratesaved; + setDvar xblive_privateserver 1; + exec xstartprivatematch; + open menu_xboxlive_privatelobby; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_3" + text "@MENU_CREATE_A_CLASS_CAPS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible when(!isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + forecolor 1 1 1 0.5 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + } + itemDef + { + name "button_3" + text "@MENU_CREATE_A_CLASS_CAPS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible when(isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_CREATE_A_CLASS"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_CREATE_A_CLASS"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open cac_popup; + } + } + itemDef + { + rect 236 148 40 20 1 1 + style 3 + decoration + visible when((((isitemunlocked("cac") && ((getplayerdataanybooltrue("weaponNew") || getplayerdataanybooltrue("camoNew")) || getplayerdataanybooltrue("attachmentNew"))) || getplayerdataanybooltrue("perkNew")) || (((((((((getplayerdata("perkNew", "frag_grenade_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "frag_grenade_mp", 8))) || (getplayerdata("perkNew", "semtex_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "semtex_mp", 8)))) || (getplayerdata("perkNew", "c4_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "c4_mp", 8)))) || (getplayerdata("perkNew", "claymore_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "claymore_mp", 8)))) || (getplayerdata("perkNew", "throwingknife_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "throwingknife_mp", 8)))) || (getplayerdata("perkNew", "specialty_tacticalinsertion") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "specialty_tacticalinsertion", 8)))) || (getplayerdata("perkNew", "specialty_blastshield") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "specialty_blastshield", 8)))) || weaponclassnew("weapon_grenade")) || weaponclassnew("weapon_equipment"))) || getplayerdata("featureNew", "cac")); + align 2 + exp material "specialty_new"; + } + itemDef + { + name "button_4" + text "@MENU_PLAYERCARD_CAPS" + group "mw2_button" + rect -64 168 336 20 1 1 + style 1 + type 1 + visible when(!isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + forecolor 1 1 1 0.5 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + } + itemDef + { + name "button_4" + text "@MENU_PLAYERCARD_CAPS" + group "mw2_button" + rect -64 168 336 20 1 1 + style 1 + type 1 + visible when(isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_PLAYERCARD"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_PLAYERCARD"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_callsign; + } + } + itemDef + { + rect 236 168 40 20 1 1 + style 3 + decoration + visible when(((((((((((((((getplayerdata("featureNew", "cas") || getplayerdata("featureNew", "token_1")) || getplayerdata("featureNew", "token_2")) || getplayerdata("featureNew", "token_3")) || getplayerdata("featureNew", "token_4")) || getplayerdata("featureNew", "token_5")) || getplayerdata("featureNew", "token_6")) || getplayerdata("featureNew", "token_7")) || getplayerdata("featureNew", "token_8")) || getplayerdata("featureNew", "token_9")) || getplayerdata("featureNew", "token_10")) || getplayerdata("featureNew", "token_11")) || getplayerdata("featureNew", "token_12")) || getplayerdata("featureNew", "clantag")) || (getplayerdataanybooltrue("iconNew") || getplayerdata("featureNew", "playercard_icon"))) || (getplayerdataanybooltrue("titleNew") || getplayerdata("featureNew", "playercard_title"))); + align 2 + exp material "specialty_new"; + } + itemDef + { + rect 0 187.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_5" + text "@MENU_BARRACKS_CAPS" + group "mw2_button" + rect -64 188 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@PATCH_DESC_BARRACKS"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@PATCH_DESC_BARRACKS"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open menu_online_barracks; + } + } + itemDef + { + rect 236 188 40 20 1 1 + style 3 + decoration + visible when(((getplayerdataanybooltrue("challengeTierNew") || getplayerdata("featureNew", "challenges")) || getplayerdata("featureNew", "challenges")) || getplayerdata("featureNew", "prestige")); + align 2 + exp material "specialty_new"; + } + itemDef + { + name "button_6" + text "@MENU_THEATER_CAPS" + group "mw2_button" + rect -64 208 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_THEATER"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_THEATER"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open pc_theater_menu; + } + } + itemDef + { + rect 0 227.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_7" + text "@MENU_MODS_CAPS" + group "mw2_button" + rect -64 228 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_MODS"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_MODS"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open mods_menu; + } + } + itemDef + { + name "button_8" + text "@MENU_OPTIONS_CAPS" + group "mw2_button" + rect -64 248 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_OPTIONS"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_OPTIONS"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open pc_options_video; + } + } + itemDef + { + rect 0 267.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_9" + text "@MENU_SP_CREDITS_CAPS" + group "mw2_button" + rect -64 268 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open iw4x_credits; + } + } + itemDef + { + name "button_10" + text "@MENU_VISIT_WEBSITE_CAPS" + group "mw2_button" + rect -64 288 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + uiScript visitWebsite; + } + } + itemDef + { + rect 0 307.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_11" + text "@MENU_MAIN_MENU_CAPS" + group "mw2_button" + rect -64 308 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MENU_SP_DESC_SINGLEPLAYER"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MENU_SP_DESC_SINGLEPLAYER"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open single_popmenu; + } + } + itemDef + { + name "button_12" + text "@MENU_QUIT_CAPS" + group "mw2_button" + rect -64 328 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_QUIT"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_QUIT"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open quit_popmenu; + } + } + itemDef + { + name "button_friends" + text "@PLATFORM_FRIENDS_CAPS" + rect -250 -4 120 20 3 3 + style 1 + type 1 + visible 1 + textalign 1 + textaligny 16 + textscale 0.275 + textfont 9 + disablecolor 0.6 0.55 0.55 1 + onFocus + { + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_FRIENDS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_friends; + } + } + itemDef + { + name "button_changelog" + text "@MENU_CHANGELOG_CAPS" + rect -120 -4 120 20 3 3 + style 1 + type 1 + visible 1 + textalign 1 + textaligny 16 + textscale 0.275 + textfont 9 + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_CHANGELOG"; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + action + { + play mouse_click; + open changelog; + } + } + itemDef + { + name "hint_area" + rect 0 380 215 18 1 1 + decoration + autowrapped + visible 1 + textalign 6 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text localvarstring("ui_hint_text"); + } + } +} diff --git a/ui_mp/menu_first_launch.menu b/ui_mp/menu_first_launch.menu new file mode 100644 index 0000000..fb3413e --- /dev/null +++ b/ui_mp/menu_first_launch.menu @@ -0,0 +1,227 @@ +{ + menuDef + { + name "menu_first_launch" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_opening" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onESC + { + open quit_popmenu; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_sp_image" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -256 -220 512 128 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "logo_cod2" + exp forecolor a ((sin(milliseconds() / 1000) + 1) * 0.25) + 0.5; + } + itemDef + { + name "box_background" + rect 0 -100 600 220 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.3 0.3 0.3 0.5 + background "white" + exp rect x 0 - 300; + } + itemDef + { + name "welcome_box" + text "Welcome to IW4x" + rect 0 -100 600 220 2 2 + style 1 + decoration + visible 1 + textalign 5 + textaligny 5 + textscale 0.45 + textfont 9 + backcolor 0 0 0 0.375 + background "white" + exp rect x 0 - 300; + } + itemDef + { + name "welcome_message" + text "Thank you for participating in the IW4x Beta!\n\nThis mod is in Beta, and will be so for some time. This means you will experience bugs, unfinished features, problematic design decision, and many more things that disrupt your game experience. We will be working with the community to fix these, to help us please visit ^2xlabs.dev ^7for development information.\n\nAbove all, please remember this mod is not finished, and is a work in progress." + rect 0 -60 500 180 2 2 + style 1 + decoration + autowrapped + visible 1 + textalign 5 + textscale 0.375 + textfont 7 + exp rect x 0 - 250; + } + itemDef + { + name "website" + text "WEBSITE" + rect -300 326 106.667 20 2 1 + style 1 + type 1 + visible 1 + textalign 9 + textscale 0.375 + textfont 9 + disablecolor 0.55 0.55 0.55 1 + background "white" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + uiScript visitWebsite; + } + } + itemDef + { + name "ok" + text "I UNDERSTAND" + rect -70 326 146.667 20 2 1 + style 1 + type 1 + visible 1 + textalign 9 + textscale 0.375 + textfont 9 + disablecolor 0.55 0.55 0.55 1 + background "white" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + setDvar g_firstLaunch 0; + open popup_playername; + close self; + } + } + itemDef + { + name "quit" + text "@MENU_QUIT_CAPS" + rect -70 400 146.667 20 2 1 + style 1 + type 1 + visible 1 + textalign 9 + textscale 0.375 + textfont 9 + disablecolor 0.55 0.55 0.55 1 + background "white" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + open quit_popmenu; + } + } + } +} diff --git a/ui_mp/menu_online_barracks.menu b/ui_mp/menu_online_barracks.menu new file mode 100644 index 0000000..9a9225c --- /dev/null +++ b/ui_mp/menu_online_barracks.menu @@ -0,0 +1,1313 @@ +{ + menuDef + { + name "menu_online_barracks" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + focusFirst; + } + onESC + { + close self; + } + execKey "f" + { + play mouse_click; + open popup_friends; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + name "ticker_bg" + rect -107 -30 900 16 1 1 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.2 + } + itemDef + { + name "ticker2" + rect -107 -30 900 16 1 1 + style 1 + decoration + type 20 + visible 1 + textaligny 16.5 + textscale 0.26 + textfont 3 + backcolor 0 0 0 0.3 + background "shadow_inset" + speed 20 + } + itemDef + { + rect 0 28 272 28 1 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -59 + textscale 0.5833 + textfont 9 + exp text "@MPUI_BARRACKS_CAP"; + } + itemDef + { + rect -272 0 0 18 3 1 + style 1 + visible when(inlobby()); + textalign 4 + textalignx 20 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + background "white" + } + itemDef + { + rect 0 320 215 18 1 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -1 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + name "button_0" + text "@MPUI_CHALLENGES_CAPS" + group "mw2_button" + rect -64 56 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("challenges")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + if (isitemunlocked("challenges")) + { + setLocalVarString ui_hint_text "@MPUI_DESC_CHALLENGES"; + } + else + { + if (tablelookup("mp/unlockTable.csv", 0, "challenges", 2) == 9999) + { + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_AT_NONE"; + } + else + { + if (tablelookup("mp/unlockTable.csv", 0, "challenges", 3) != "") + { + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE"; + } + else + { + setLocalVarString ui_hint_text "@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, "challenges", 2), 17); + } + } + exec "set ui_hint_text THIS MENU SHOULD BE UPDATED TO USE setLocalVarString ui_hint_text;"; + } + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setPlayerData ( featureNew , challenges , false ); + open menu_challenges; + } + } + itemDef + { + rect 236 56 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7)))) && getplayerdata("featureNew", "prestige")); + align 2 + exp material "specialty_new"; + } + itemDef + { + name "button_1" + text "@MPUI_HIGHLIGHTS_CAPS" + group "mw2_button" + rect -64 76 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_HIGHLIGHTS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open menu_records; + } + } + itemDef + { + rect 0 95.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_2" + text "@MENU_CUSTOM_TITLE_CAPS" + group "mw2_button" + rect -64 96 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_CUSTOM_TITLE"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open popup_customtitle; + } + } + itemDef + { + name "button_3" + text "@MPUI_CLAN_TAG_CAPS" + group "mw2_button" + rect -64 116 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_CLANTAG"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open popup_customclan; + } + } + itemDef + { + rect 0 135.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_4" + text "@MPUI_RESET_STATS_CAPS" + group "mw2_button" + rect -64 136 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_RESET_STATS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open stats_reset; + } + } + itemDef + { + name "button_5" + text "@MPUI_UNLOCK_STATS_CAPS" + group "mw2_button" + rect -64 156 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_UNLOCK_STATS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open stats_unlock; + } + } + itemDef + { + rect 0 155.5 216 1 1 1 + style 3 + decoration + visible when((getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) == 0); + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_6" + text "@MPUI_PRESTIGE_MODE_CAPS" + group "mw2_button" + rect -64 176 336 20 1 1 + style 1 + type 1 + visible when(!(getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))); + disabled when((!((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7))))) && (!(getplayerdata("prestige") == int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))))); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setPlayerData ( featureNew , prestige , false ); + if (!((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7))))) + { + setLocalVarString ui_hint_text "@MPUI_DESC_PRESTIGE2"; + } + else + { + setLocalVarString ui_hint_text "@MPUI_DESC_PRESTIGE"; + } + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open prestige_reset1; + } + } + itemDef + { + rect 236 156 40 20 1 1 + style 3 + decoration + visible when(((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (getplayerdata("experience") >= int(tablelookup("mp/rankTable.csv", 0, int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)), 7)))) && getplayerdata("featureNew", "prestige")); + align 2 + exp material "specialty_new"; + } + itemDef + { + name "playercard_background" + rect 0 0 208 70 3 1 + style 3 + decoration + visible when(getplayercardinfo(0, 1, 0) != 0); + textscale 0.55 + forecolor 0 0 0 0.25 + background "white" + exp rect x -208; + exp rect y 28; + } + itemDef + { + name "playercard_foreground" + rect 0 0 208 70 3 1 + style 1 + decoration + visible when(getplayercardinfo(0, 1, 0) != 0); + textalign 4 + textaligny -20 + textscale 0.375 + textfont 6 + backcolor 1 1 1 1 + background "cardtitle_248x48" + exp rect x -208; + exp rect y 28; + } + itemDef + { + name "playercard_title" + rect 0 0 160 32 3 1 + style 1 + type 1 + visible when(getplayercardinfo(0, 1, 0) != 0); + textalign 9 + textscale 0.375 + textstyle 8 + textfont 3 + backcolor 1 1 1 1 + onFocus + { + play mouse_over; + if (isitemunlocked("playercard_title")) + { + setLocalVarString ui_hint_text "@MPUI_DESC_PLAYERCARD_TITLE"; + } + else + { + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE"; + } + setLocalVarBool ui_menuAButton 1; + } + leaveFocus + { + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 1; + } + action + { + play mouse_click; + if (isitemunlocked("playercard_title")) + { + open menu_playercard_title_popup; + setPlayerData ( featureNew , playercard_title , false ); + } + } + exp text "@" + tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 1); + exp material tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 2); + exp rect x -208; + exp rect y 28 - 2; + exp forecolor r tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 3); + exp forecolor g tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 4); + exp forecolor b tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 1, 0), 5); + } + itemDef + { + name "playercard_name" + rect 0 0 160 18 3 1 + type 1 + visible when(getplayercardinfo(0, 1, 0) != 0); + textalign 4 + textalignx 8 + textscale 0.3333 + textstyle 8 + textfont 10 + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_CHANGE_NAME"; + setLocalVarBool ui_menuAButton 1; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 1; + } + action + { + play mouse_click; + open popup_playername; + } + exp text getplayercardinfo(8, 1, 0); + exp rect x -208; + exp rect y 28 + 28; + } + itemDef + { + name "playercard_icon" + rect 0 0 48 48 3 1 + style 3 + type 1 + visible when(getplayercardinfo(0, 1, 0) != 0); + textscale 0.55 + onFocus + { + play mouse_over; + if (isitemunlocked("playercard_icon")) + { + setLocalVarString ui_hint_text "@MPUI_DESC_PLAYERCARD_ICON"; + } + else + { + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE"; + } + setLocalVarBool ui_menuAButton 1; + } + leaveFocus + { + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 1; + } + action + { + play mouse_click; + if (isitemunlocked("playercard_icon")) + { + open menu_playercard_icon_popup; + setPlayerData ( featureNew , playercard_icon , false ); + } + } + exp material tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 1, 0), 1); + exp rect x -208 + 160; + exp rect y 28; + } + itemDef + { + name "playercard_rankicon" + rect 0 0 20 20 3 1 + style 1 + decoration + visible when((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(4, 1, 0) >= 0)); + textscale 0.55 + backcolor 1 1 1 1 + exp material tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 1, 0), getplayercardinfo(5, 1, 0) + 1); + exp rect x -208 + 164; + exp rect y 28 + 48; + } + itemDef + { + name "playercard_rank" + rect 0 0 20 20 3 1 + decoration + visible when((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(4, 1, 0) >= 0)); + textalign 9 + textalignx 20 + textscale 0.375 + textstyle 8 + textfont 3 + exp text tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 1, 0), 14); + exp rect x -208 + 164; + exp rect y 28 + 48; + } + itemDef + { + name "playercard_clantag" + rect 0 0 208 20 3 1 + style 1 + decoration + visible when((getplayercardinfo(0, 1, 0) != 0) && (getplayercardinfo(9, 1, 0) != "")); + textalign 8 + textalignx 2 + textscale 0.375 + textfont 3 + exp text ("[" + getplayercardinfo(9, 1, 0)) + "]"; + exp rect x -208; + exp rect y 28 + 48; + } + itemDef + { + name "playercard_killstreak1" + rect 0 0 20 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/killstreakTable.csv", 1, getplayerdata("killstreaks", 0), 16); + exp rect x -140 + 32; + exp rect y 28 + 48; + } + itemDef + { + name "playercard_killstreak2" + rect 0 0 20 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/killstreakTable.csv", 1, getplayerdata("killstreaks", 1), 16); + exp rect x -140 + 53; + exp rect y 28 + 48; + } + itemDef + { + name "playercard_killstreak3" + rect 0 0 20 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/killstreakTable.csv", 1, getplayerdata("killstreaks", 2), 16); + exp rect x -140 + 74; + exp rect y 28 + 48; + } + itemDef + { + rect -208 100 -208 260 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -208 100 -208 20 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_RANK_PRE"; + } + itemDef + { + rect -208 100 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -22 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/ranktable.csv", 0, levelforexperience(getplayerdata("experience")), 5); + } + itemDef + { + rect -18 101 18 18 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/rankIconTable.csv", 0, levelforexperience(getplayerdata("experience")), getplayerdata("prestige") + 1); + } + itemDef + { + rect -208 120 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_XP_PRE"; + } + itemDef + { + rect -208 120 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("experience"); + } + itemDef + { + rect -208 140 -208 20 3 1 + style 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && (((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)))) == 0)); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_NEXT_PRE"; + } + itemDef + { + rect -208 140 208 20 3 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && (((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)))) == 0)); + textalign 6 + textalignx -22 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/ranktable.csv", 0, levelforexperience(getplayerdata("experience")) + 1, 5); + } + itemDef + { + rect -18 141 18 18 3 1 + style 3 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && (((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1)))) == 0)); + textscale 0.55 + exp material tablelookup("mp/rankIconTable.csv", 0, levelforexperience(getplayerdata("experience")) + 1, getplayerdata("prestige") + 1); + } + itemDef + { + rect -208 140 -208 20 3 1 + style 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && ((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))))); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_NEXT_PRE"; + } + itemDef + { + rect -208 140 208 20 3 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && ((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))))); + textalign 6 + textalignx -22 + textscale 0.375 + textfont 3 + exp text "@MPUI_PRESTIGE"; + } + itemDef + { + rect -18 141 18 18 3 1 + style 3 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && ((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))))); + textscale 0.55 + exp material tablelookup("mp/rankIconTable.csv", 0, 0, getplayerdata("prestige") + 2); + } + itemDef + { + rect -208 140 -208 20 3 1 + style 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && ((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))))); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_NEXT_PRE"; + } + itemDef + { + rect -208 140 208 20 3 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && ((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))))); + textalign 6 + textalignx -22 + textscale 0.375 + textfont 3 + exp text "@MPUI_PRESTIGE"; + } + itemDef + { + rect -18 141 18 18 3 1 + style 3 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) && ((getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1))) && (levelforexperience(getplayerdata("experience")) == int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))))); + textscale 0.55 + exp material tablelookup("mp/rankIconTable.csv", 0, 0, getplayerdata("prestige") + 2); + } + itemDef + { + rect -208 140 -208 20 3 1 + style 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) == 0); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_NEXT_PRE"; + } + itemDef + { + rect -208 140 208 20 3 1 + decoration + visible when(((levelforexperience(getplayerdata("experience")) < int(tablelookup("mp/rankTable.csv", 0, "maxrank", 1))) || (getplayerdata("prestige") < int(tablelookup("mp/rankIconTable.csv", 0, "maxprestige", 1)))) == 0); + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + exp text "@MPUI_NONE"; + } + itemDef + { + rect -80 162 80 16 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.35 + background "black" + } + itemDef + { + rect -80 164 25 12 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 0.9 0.5 0.6 + background "gradient_fadein" + exp rect w 0 - ((80 * (int(tablelookup("mp/rankTable.csv", 0, levelforexperience(getplayerdata("experience")), 2)) - getplayerdata("experience"))) / int(tablelookup("mp/rankTable.csv", 0, levelforexperience(getplayerdata("experience")), 3))); + } + itemDef + { + rect -208 160 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_XP_REQUIRED_PRE"; + } + itemDef + { + rect -208 160 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text int(tablelookup("mp/rankTable.csv", 0, levelforexperience(getplayerdata("experience")), 7) - getplayerdata("experience")); + } + itemDef + { + rect -208 180 -208 20 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_SCORE_PRE"; + } + itemDef + { + rect -208 180 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + exp text getplayerdata("score"); + } + itemDef + { + rect -208 200 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_WINS_PRE"; + } + itemDef + { + rect -208 200 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("wins"); + } + itemDef + { + rect -208 220 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_LOSSES_PRE"; + } + itemDef + { + rect -208 220 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("losses"); + } + itemDef + { + rect -208 240 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_TIES_PRE"; + } + itemDef + { + rect -208 240 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("ties"); + } + itemDef + { + rect -208 260 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_WINSTREAK_PRE"; + } + itemDef + { + rect -208 260 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("winStreak"); + } + itemDef + { + rect -208 280 -208 20 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_KILLS_PRE"; + } + itemDef + { + rect -208 280 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("kills"); + } + itemDef + { + rect -208 300 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_HEADSHOTS_PRE"; + } + itemDef + { + rect -208 300 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("headshots"); + } + itemDef + { + rect -208 320 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_ASSISTS_PRE"; + } + itemDef + { + rect -208 320 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("assists"); + } + itemDef + { + rect -208 340 -208 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@MPUI_STREAK_PRE"; + } + itemDef + { + rect -208 340 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text getplayerdata("killStreak"); + } + itemDef + { + rect -208 360 -208 20 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_DEATHS_PRE"; + } + itemDef + { + rect -208 360 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + exp text getplayerdata("deaths"); + } + itemDef + { + rect -208 380 -208 20 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + background "white" + exp text "@MPUI_TIME_PLAYED_PRE"; + } + itemDef + { + rect -208 380 208 20 3 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + exp text secondsastime((getplayerdata("timePlayedAllies") + getplayerdata("timePlayedOpfor")) + getplayerdata("timePlayedOther")); + } + itemDef + { + name "button_friends" + text "@PLATFORM_FRIENDS_CAPS" + rect -120 -4 120 20 3 3 + style 1 + type 1 + visible 1 + textalign 1 + textaligny 16 + textscale 0.275 + textfont 9 + disablecolor 0.6 0.55 0.55 1 + onFocus + { + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@MPUI_DESC_FRIENDS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_friends; + } + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/menu_xboxlive_lobby.menu b/ui_mp/menu_xboxlive_lobby.menu new file mode 100644 index 0000000..50302a3 --- /dev/null +++ b/ui_mp/menu_xboxlive_lobby.menu @@ -0,0 +1,1748 @@ +{ + menuDef + { + name "menu_xboxlive_lobby" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + if (dvarbool(ui_opensummary)) + { + setLocalVarInt ui_autoopened 1; + open popup_summary; + setDvar ui_opensummary 0; + } + focusFirst; + exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow"; + } + onESC + { + open leavelobbywarning; + } + execKeyInt 22 + { + play mouse_click; + if (getfocuseditemname() == "lobbyList") + { + focusfirst; + } + } + execKeyInt 23 + { + play mouse_click; + setFocus lobbyList; + setLocalVarString ui_hint_text "@MPUI_DESC_PLAYER_OPTIONS"; + } + execKeyInt 30 + { + play mouse_click; + if (getfocuseditemname() == "lobbyList") + { + focusfirst; + } + } + execKeyInt 31 + { + play mouse_click; + setFocus lobbyList; + setLocalVarString ui_hint_text "@MPUI_DESC_PLAYER_OPTIONS"; + } + execKeyInt 167 + { + play mouse_click; + open popup_summary; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + name "party_hint_area" + rect 0 188 216 36 1 1 + decoration + autowrapped + type 21 + visible when((!localvarbool("ui_centerPopup")) && (!localvarbool("ui_leftPopup"))); + textalign 6 + textalignx -2 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + rect -272 0 0 18 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 20 + textscale 0.375 + textfont 3 + background "white" + exp text getpartystatus(); + } + itemDef + { + rect -272 12 0 18 3 1 + style 1 + decoration + visible when(!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))); + textalign 4 + textalignx 20 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + background "white" + exp text getsearchparams(); + } + itemDef + { + rect -272 -24 272 18 3 3 + style 1 + decoration + visible when(!(getplayercardinfo(0, 3, 17) != 0)); + textalign 6 + textscale 0.5833 + textfont 9 + forecolor 1 1 1 0.15 + background "white" + } + itemDef + { + text "@MPUI_SCORE_CAPS" + rect -272 0 272 28 3 1 + decoration + visible 1 + textalign 14 + textaligny 3 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.15 + } + itemDef + { + rect -272 28 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 0) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 48 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 1) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 68 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 2) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 88 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 3) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 108 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 4) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 128 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 5) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 148 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 6) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 168 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 7) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 188 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 8) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 208 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 9) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 228 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 10) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 248 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 11) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 268 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 12) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 288 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 13) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 308 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 14) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 328 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 15) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 348 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 16) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 368 272 20 3 1 + style 3 + decoration + visible when((!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))) && (getplayercardinfo(0, 3, 17) != 0)); + textscale 0.55 + forecolor 0 0 0 0.25 + background "playercard_short_bg" + } + itemDef + { + rect -272 28 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 0) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 28 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 0) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 48 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 1) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 48 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 1) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 68 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 2) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 68 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 2) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 88 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 3) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 88 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 3) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 108 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 4) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 108 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 4) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 128 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 5) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 128 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 5) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 148 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 6) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 148 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 6) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 168 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 7) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 168 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 7) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 188 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 8) != 0)) && (4 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 188 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 4, 8) != 0)) && (4 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 208 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 0) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 208 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 0) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 228 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 1) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 228 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 1) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 248 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 2) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 248 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 2) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 268 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 3) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 268 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 3) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 288 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 4) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 288 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 4) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 308 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 5) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 308 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 5) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 328 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 6) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 328 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 6) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 348 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 7) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 348 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 7) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 368 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 8) != 0)) && (5 == 4)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_AXIS")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_AXIS")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_ALLIES")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_AXIS")); + } + itemDef + { + rect -272 368 272 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_teamsVisible) && dvarbool(party_teamBased)) && (getplayercardinfo(0, 5, 8) != 0)) && (5 == 5)); + textscale 0.55 + forecolor 0 0 0 0.5 + background "playercard_short_bg" + exp forecolor r (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 14) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 14) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor g (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 15) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 15) * (player("teamname") == "TEAM_ALLIES")); + exp forecolor b (tablelookup("mp/factionTable.csv", 0, getmapcustom("allieschar"), 16) * (player("teamname") == "TEAM_AXIS")) + (tablelookup("mp/factionTable.csv", 0, getmapcustom("axischar"), 16) * (player("teamname") == "TEAM_ALLIES")); + } + itemDef + { + rect -272 0 272 20 3 1 + style 3 + decoration + visible when((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)); + textscale 0.55 + forecolor 0 0 0 1 + background "playercard_short_bg" + exp rect y 28 + (dvarint(party_selectedIndex) * 20); + } + itemDef + { + name "lobbyList" + rect -272 27 272 380 3 1 + type 6 + visible when(!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 48 + columns 1 + 0 0 1 0 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 18 + columns 1 + 38 16 40 0 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 31 + columns 1 + 38 16 40 0 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny 178 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 33 + columns 1 + 38 16 40 0 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))); + textalignx 20 + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 39 + columns 2 + 194 20 3 1 + 194 20 3 1 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textalignx 20 + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 42 + columns 2 + 194 20 3 1 + 194 20 3 1 + } + itemDef + { + rect -272 207 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textalignx 20 + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 41 + columns 2 + 194 20 3 1 + 194 20 3 1 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))); + textaligny -2 + textscale 0.375 + forecolor 1 1 1 0.65 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 35 + columns 1 + 230 40 4 2 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny -2 + textscale 0.375 + forecolor 1 1 1 0.65 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 36 + columns 1 + 230 40 4 2 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny 178 + textscale 0.375 + forecolor 1 1 1 0.65 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 37 + columns 1 + 230 40 4 2 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 45 + columns 1 + -20 16 40 2 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 46 + columns 1 + -20 16 40 2 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny 178 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 47 + columns 1 + -20 16 40 2 + } + itemDef + { + rect 0 0 272 40 3 1 + style 3 + decoration + visible when((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)); + textscale 0.55 + forecolor 0.25 0.25 0.25 1 + background "playercard_bg" + exp rect x - 268; + exp rect y (28 + (dvarint(party_selectedIndex) * 20)) - 10; + } + itemDef + { + rect 0 0 160 32 3 1 + style 1 + decoration + visible when((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)); + textalign 9 + textscale 0.375 + textfont 3 + backcolor 1 1 1 1 + exp text "@" + tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 3, dvarint(party_selectedIndex)), 1); + exp material tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 3, dvarint(party_selectedIndex)), 2); + exp rect x - 248; + exp rect y ((28 + (dvarint(party_selectedIndex) * 20)) - 10) - 4; + exp forecolor r tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 3, dvarint(party_selectedIndex)), 3); + exp forecolor g tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 3, dvarint(party_selectedIndex)), 4); + exp forecolor b tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 3, dvarint(party_selectedIndex)), 5); + } + itemDef + { + rect 0 0 248 20 3 1 + decoration + visible when((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)); + textalign 4 + textalignx 10 + textaligny 4 + textscale 0.3333 + textfont 10 + exp text getplayercardinfo(8, 3, dvarint(party_selectedIndex)); + exp rect x - 248; + exp rect y ((28 + (dvarint(party_selectedIndex) * 20)) - 10) + 20; + } + itemDef + { + rect 0 0 40 40 3 1 + style 3 + decoration + visible when((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)); + textscale 0.55 + exp material tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 3, dvarint(party_selectedIndex)), 1); + exp rect x (- 248) + 160; + exp rect y (28 + (dvarint(party_selectedIndex) * 20)) - 10; + } + itemDef + { + rect 0 0 20 20 3 1 + style 3 + decoration + visible when(((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)) && (getplayercardinfo(4, 3, dvarint(party_selectedIndex)) >= 0)); + textscale 0.55 + exp material tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 3, dvarint(party_selectedIndex)), getplayercardinfo(5, 3, dvarint(party_selectedIndex)) + 1); + exp rect x (- 248) + 204; + exp rect y (28 + (dvarint(party_selectedIndex) * 20)) - 10; + } + itemDef + { + rect 0 0 20 20 3 1 + decoration + visible when(((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)) && (getplayercardinfo(4, 3, dvarint(party_selectedIndex)) >= 0)); + textalign 9 + textscale 0.375 + textfont 3 + exp text tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 3, dvarint(party_selectedIndex)), 14); + exp rect x (- 248) + 222; + exp rect y (28 + (dvarint(party_selectedIndex) * 20)) - 10; + } + itemDef + { + rect 0 0 40 18 3 1 + decoration + visible when(((dvarbool(party_listFocus) && (!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)))) && (getplayercardinfo(0, 3, dvarint(party_selectedIndex)) != 0)) && (getplayercardinfo(9, 3, dvarint(party_selectedIndex)) != "")); + textalign 9 + textscale 0.375 + textfont 3 + exp text ("[" + getplayercardinfo(9, 3, dvarint(party_selectedIndex))) + "]"; + exp rect x (- 248) + 204; + exp rect y ((28 + (dvarint(party_selectedIndex) * 20)) - 10) + 18; + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(!(dvarbool(party_teamsVisible) && dvarbool(party_teamBased))); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 19 + columns 1 + 0 20 40 0 + } + itemDef + { + rect -272 27 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 32 + columns 1 + 0 20 40 0 + } + itemDef + { + rect -272 207 272 380 3 1 + decoration + type 6 + visible when(dvarbool(party_teamsVisible) && dvarbool(party_teamBased)); + textaligny -2 + textscale 0.375 + noscrollbars + elementwidth 272 + elementheight 20 + feeder 34 + columns 1 + 0 20 40 0 + } + itemDef + { + rect -128 -17 1280 18 1 3 + style 3 + decoration + textscale 0.55 + forecolor 0 0 0 0.25 + background "white" + } + itemDef + { + rect -128 -17 1280 18 1 3 + style 3 + decoration + textscale 0.55 + forecolor 0 0 0 0.45 + background "shadow_inset" + } + itemDef + { + rect 0 -18 726 18 1 3 + decoration + type 20 + textscale 0.375 + forecolor 1 1 1 0.9 + bordercolor 0 0 0 0.5 + background "gradient" + exp rect w 544 + (dvarint(wideScreen) * 182); + spacing 30 + speed 50 + newsfeed 1 + } + itemDef + { + name "ticker_bg" + rect -107 -30 900 16 1 1 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.2 + } + itemDef + { + name "ticker2" + rect -107 -30 900 16 1 1 + style 1 + decoration + type 20 + visible 1 + textaligny 16.5 + textscale 0.26 + textfont 3 + backcolor 0 0 0 0.3 + background "shadow_inset" + speed 20 + } + itemDef + { + rect 0 0 272 28 1 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -59 + textscale 0.4 + textfont 9 + exp text dvarstring(playlist_name); + } + itemDef + { + rect 0 49.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_1" + text "@MENU_CREATE_A_CLASS_CAPS" + group "mw2_button" + rect -64 50 336 20 1 1 + style 1 + type 1 + visible when(!isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + forecolor 1 1 1 0.5 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + } + itemDef + { + name "button_1" + text "@MENU_CREATE_A_CLASS_CAPS" + group "mw2_button" + rect -64 50 336 20 1 1 + style 1 + type 1 + visible when(isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_CREATE_A_CLASS"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_CREATE_A_CLASS"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open cac_popup; + } + } + itemDef + { + rect 236 50 40 20 1 1 + style 3 + decoration + visible when((((isitemunlocked("cac") && ((getplayerdataanybooltrue("weaponNew") || getplayerdataanybooltrue("camoNew")) || getplayerdataanybooltrue("attachmentNew"))) || getplayerdataanybooltrue("perkNew")) || (((((((((getplayerdata("perkNew", "frag_grenade_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "frag_grenade_mp", 8))) || (getplayerdata("perkNew", "semtex_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "semtex_mp", 8)))) || (getplayerdata("perkNew", "c4_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "c4_mp", 8)))) || (getplayerdata("perkNew", "claymore_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "claymore_mp", 8)))) || (getplayerdata("perkNew", "throwingknife_mp") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "throwingknife_mp", 8)))) || (getplayerdata("perkNew", "specialty_tacticalinsertion") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "specialty_tacticalinsertion", 8)))) || (getplayerdata("perkNew", "specialty_blastshield") || getplayerdata("perkNew", tablelookup("mp/perkTable.csv", 1, "specialty_blastshield", 8)))) || weaponclassnew("weapon_grenade")) || weaponclassnew("weapon_equipment"))) || getplayerdata("featureNew", "cac")); + align 2 + exp material "specialty_new"; + } + itemDef + { + name "button_2" + text "@MENU_PLAYERCARD_CAPS" + group "mw2_button" + rect -64 70 336 20 1 1 + style 1 + type 1 + visible when(!isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + forecolor 1 1 1 0.5 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@PERKS_UNLOCKED_BY_CHALLENGE"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + } + itemDef + { + name "button_2" + text "@MENU_PLAYERCARD_CAPS" + group "mw2_button" + rect -64 70 336 20 1 1 + style 1 + type 1 + visible when(isitemunlocked("cac")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_PLAYERCARD"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_PLAYERCARD"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_callsign; + } + } + itemDef + { + rect 236 70 40 20 1 1 + style 3 + decoration + visible when(((((((((((((((getplayerdata("featureNew", "cas") || getplayerdata("featureNew", "token_1")) || getplayerdata("featureNew", "token_2")) || getplayerdata("featureNew", "token_3")) || getplayerdata("featureNew", "token_4")) || getplayerdata("featureNew", "token_5")) || getplayerdata("featureNew", "token_6")) || getplayerdata("featureNew", "token_7")) || getplayerdata("featureNew", "token_8")) || getplayerdata("featureNew", "token_9")) || getplayerdata("featureNew", "token_10")) || getplayerdata("featureNew", "token_11")) || getplayerdata("featureNew", "token_12")) || getplayerdata("featureNew", "clantag")) || (getplayerdataanybooltrue("iconNew") || getplayerdata("featureNew", "playercard_icon"))) || (getplayerdataanybooltrue("titleNew") || getplayerdata("featureNew", "playercard_title"))); + align 2 + exp material "specialty_new"; + } + itemDef + { + name "button_3" + text "@MENU_BARRACKS_CAPS" + group "mw2_button" + rect -64 90 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@PATCH_DESC_BARRACKS"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@PATCH_DESC_BARRACKS"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open menu_online_barracks; + } + } + itemDef + { + rect 236 90 40 20 1 1 + style 3 + decoration + visible when(((getplayerdataanybooltrue("challengeTierNew") || getplayerdata("featureNew", "challenges")) || getplayerdata("featureNew", "challenges")) || getplayerdata("featureNew", "prestige")); + align 2 + exp material "specialty_new"; + } + itemDef + { + name "button_4" + text "@MENU_FRIENDS_CAPS" + group "mw2_button" + rect -64 110 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text "@MPUI_DESC_FRIENDS"; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc "@MPUI_DESC_FRIENDS"; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_friends; + } + } + itemDef + { + rect 0 109.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "button_5" + text "@MENU_VOTE_TO_SKIP_CAPS" + group "mw2_button" + rect -64 130 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!dvarbool(party_vetoButtonVisible)); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + if (dvarbool(party_vetoButtonVisible)) + { + setLocalVarString ui_hint_text "@MPUI_DESC_VOTE_TO_SKIP"; + } + else + { + setLocalVarString ui_hint_text "@MPUI_VOTE_CAST"; + } + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + focusfirst; + open skipmapconfirmation; + } + execKeyInt 21 + { + focusfirst; + } + execKeyInt 29 + { + focusfirst; + } + } + itemDef + { + name "preview_image" + rect 0 -159 216 122 1 3 + style 3 + decoration + visible 1 + textscale 0.375 + exp material "preview_" + dvarstring(ui_mapname); + } + itemDef + { + name "preview_mapname" + rect 0 -159 216 19 1 3 + style 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -4 + textaligny -1 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.5 + exp text dvarstring(party_mapname); + } + itemDef + { + name "vetostatus" + rect 0 -140 216 19 1 3 + style 1 + decoration + autowrapped + visible when(dvarstring(party_vetoStatus) != ""); + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + backcolor 1 0 0 0.25 + background "white" + exp text dvarstring(party_vetoStatus); + } + itemDef + { + name "preview_gametype" + rect 0 -56 216 19 1 3 + style 1 + decoration + autowrapped + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.5 + exp text dvarstring(party_gametype); + } + itemDef + { + name "button_summary" + text "@PLATFORM_GAME_SUMMARY_CAPS" + group "mw2_button" + rect -64 -24 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open popup_summary; + } + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open leavelobbywarning; + } + } + } +} diff --git a/ui_mp/menu_xboxlive_privatelobby.menu b/ui_mp/menu_xboxlive_privatelobby.menu new file mode 100644 index 0000000..cc684e3 --- /dev/null +++ b/ui_mp/menu_xboxlive_privatelobby.menu @@ -0,0 +1,12 @@ +{ + menuDef + { + name "menu_xboxlive_privatelobby" + fullscreen 1 + rect 0 0 640 480 0 0 + onOpen + { + open createserver; + } + } +} diff --git a/ui_mp/minimap_fullscreen.menu b/ui_mp/minimap_fullscreen.menu new file mode 100644 index 0000000..9d1cb8d --- /dev/null +++ b/ui_mp/minimap_fullscreen.menu @@ -0,0 +1,156 @@ +{ + menuDef + { + name "minimap_fullscreen" + rect 3 3 0 0 8 8 + hiddenDuringScope + hiddenDuringFlashbang + visible 1 + itemDef + { + name "minimap_border" + rect 3 3 100 100 8 8 + border 1 + borderSize 0.666667 + visible 1 + textscale 0.55 + bordercolor 1 1 1 0.35 + } + itemDef + { + rect 3 3 100 100 8 8 + style 3 + visible 1 + textscale 0.55 + forecolor 0.89 0.98 0.95 0.05 + background "minimap_scanlines" + } + itemDef + { + name "minimap_map" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 159 + textscale 0.55 + background "compass_map_default" + } + itemDef + { + name "minimap_friendlies" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 158 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "minimap_objectives" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 152 + textscale 0.55 + background "objective_line" + } + itemDef + { + name "minimap_enemies" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 175 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "minimap_vehicles" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 155 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "minimap_planes" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 156 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "minimap_sentries" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 165 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "minimap_player" + rect 3 3 100 100 8 8 + type 8 + visible 1 + ownerdraw 150 + textscale 0.55 + background "compassping_player" + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + rect 3 3 100 100 8 8 + style 3 + visible when(radarisjammed()); + textscale 0.55 + forecolor 0.64 0.74 0.71 1 + background "white" + exp forecolor a radarjamintensity(); + } + itemDef + { + rect 3 3 100 100 8 8 + style 3 + visible when(radarisjammed()); + textscale 0.55 + forecolor 0.89 0.98 0.95 1 + background "ac130_overlay_grain" + exp forecolor a radarjamintensity(); + } + itemDef + { + rect 3 3 100 100 8 8 + style 3 + visible 1 + textscale 0.55 + background "stencil_base" + } + itemDef + { + rect 3 3 100 100 8 8 + style 3 + visible 1 + textscale 0.55 + background "scanlines_stencil" + exp rect y -100 + (200 * (1 - ((milliseconds() % 4000) / 4000))); + } + itemDef + { + rect 3 3 100 100 8 8 + style 3 + visible 1 + textscale 0.55 + forecolor 0.89 0.98 0.95 1 + background "stencil_fill" + } + } +} diff --git a/ui_mp/mod_download_popmenu.menu b/ui_mp/mod_download_popmenu.menu new file mode 100644 index 0000000..6ded846 --- /dev/null +++ b/ui_mp/mod_download_popmenu.menu @@ -0,0 +1,320 @@ +{ + menuDef + { + name "mod_download_popmenu" + rect -150 -84 300 116 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + uiScript mod_download_cancel; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 992 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 992 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 116 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 32 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -63 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 56 + (3 * 20); + } + itemDef + { + text "@MPUI_DOWNLOADING" + rect 0 0 300 40 2 2 + decoration + type 1 + visible 1 + textalign 5 + textscale 0.375 + textfont 9 + } + itemDef + { + text "@EXE_EST_TIME_LEFT" + rect 0 45 300 20 2 2 + decoration + type 1 + visible 1 + textalignx 10 + textscale 0.4 + } + itemDef + { + name "est_time_left" + rect 0 45 300 20 2 2 + decoration + type 1 + visible 1 + textalign 2 + textalignx -10 + textscale 0.4 + exp text dvarstring(ui_dl_timeLeft); + } + itemDef + { + text "@EXE_TRANS_RATE" + rect 0 65 300 20 2 2 + decoration + type 1 + visible 1 + textalignx 10 + textscale 0.4 + } + itemDef + { + name "trans_rate" + rect 0 65 300 20 2 2 + decoration + type 1 + visible 1 + textalign 2 + textalignx -10 + textscale 0.4 + exp text dvarstring(ui_dl_transRate); + } + itemDef + { + text "@EXE_PROGRESS" + rect 0 85 300 20 2 2 + decoration + type 1 + visible 1 + textalignx 10 + textscale 0.4 + } + itemDef + { + name "progress" + rect 0 85 300 20 2 2 + decoration + autowrapped + type 1 + visible 1 + textalign 2 + textalignx -10 + textscale 0.4 + exp text dvarstring(ui_dl_progress); + } + itemDef + { + name "cancel" + text "@MENU_CANCEL" + group "mw2_popup_button" + rect 6 96 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/mods_menu.menu b/ui_mp/mods_menu.menu new file mode 100644 index 0000000..ca91202 --- /dev/null +++ b/ui_mp/mods_menu.menu @@ -0,0 +1,407 @@ +{ + menuDef + { + name "mods_menu" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + uiScript LoadMods; + setFocus modlist; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_MODS_CAPS" + rect 0 4 210 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + exp rect x -80; + } + itemDef + { + rect 0 28 640 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.15 + background "white" + } + itemDef + { + rect -32 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -4 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 640 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 640 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 640 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 384 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -32 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -32 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect -292 28 292 356 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.7 + background "black" + } + itemDef + { + name "image" + rect -282 50 272 127 3 1 + style 3 + decoration + visible when(localvarstring("ui_info_icon") != ""); + textscale 0.55 + exp material localvarstring("ui_info_icon"); + } + itemDef + { + name "longname" + rect -282 28 272 22 3 1 + decoration + visible 1 + textalign 4 + textscale 0.375 + textfont 9 + exp text "@" + localvarstring("ui_info_name"); + } + itemDef + { + name "description" + rect -282 180 272 20 3 1 + decoration + autowrapped + visible 1 + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + localvarstring("ui_info_desc"); + } + itemDef + { + name "modlist" + rect 0 28 210 356 1 1 + style 1 + type 6 + visible 1 + textalignx 6 + textscale 0.375 + textfont 1 + backcolor 0 0 0 0.5 + outlinecolor 0 0 0 0.6 + execKeyInt 13 + { + play mouse_click; + uiScript RunMod; + } + elementwidth 120 + elementheight 22 + feeder 9 + columns 1 + 8 120 25 0 + doubleclick + { + uiScript RunMod; + } + selectBorder 0.8 0.95 1 0 + } + itemDef + { + name "loadMod" + text "@MENU_LAUNCH" + group "mw2_button" + rect -292 -48 292 20 3 3 + style 1 + type 1 + visible when(dvarstring(fs_game) == ""); + textalign 6 + textalignx -40 + textscale 0.375 + textfont 1 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + uiScript RunMod; + } + } + itemDef + { + name "loadMod" + text "@MENU_LAUNCH" + group "mw2_button" + rect -292 -68 292 20 3 3 + style 1 + type 1 + visible when(dvarstring(fs_game) != ""); + textalign 6 + textalignx -40 + textscale 0.375 + textfont 1 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + uiScript RunMod; + } + } + itemDef + { + name "unloadMod" + text "@MENU_LAUNCH_WITHOUT_MODS" + group "mw2_button" + rect -292 -48 292 20 3 3 + style 1 + type 1 + visible when(dvarstring(fs_game) != ""); + textalign 6 + textalignx -40 + textscale 0.375 + textfont 1 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + uiScript ClearMods; + } + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/onlineupdate.menu b/ui_mp/onlineupdate.menu new file mode 100644 index 0000000..c06ecc5 --- /dev/null +++ b/ui_mp/onlineupdate.menu @@ -0,0 +1,251 @@ +{ + menuDef + { + name "onlineupdate" + rect -150 -44 300 44 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -524 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -524 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 44 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (1 * 20); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (1 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (1 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (1 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (1 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (1 * 20)); + } + itemDef + { + rect -63 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (1 * 20); + } + itemDef + { + rect 0 6 300 40 2 2 + decoration + type 1 + visible 1 + textalign 5 + textscale 0.375 + exp text dvarstring(popupText); + } + itemDef + { + rect 0 10 300 40 2 2 + decoration + type 1 + visible when((((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.25) && (((sin(milliseconds() * 0.005) + 1) * 0.5) <= 0.5)); + textalign 5 + textaligny 10 + textscale 0.375 + exp text "."; + } + itemDef + { + rect 0 10 300 40 2 2 + decoration + type 1 + visible when((((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.5) && (((sin(milliseconds() * 0.005) + 1) * 0.5) <= 0.75)); + textalign 5 + textaligny 10 + textscale 0.375 + exp text ".."; + } + itemDef + { + rect 0 10 300 40 2 2 + decoration + type 1 + visible when(((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.75); + textalign 5 + textaligny 10 + textscale 0.375 + exp text "..."; + } + } +} diff --git a/ui_mp/patch_mp_menus.txt b/ui_mp/patch_mp_menus.txt new file mode 100644 index 0000000..a99ba40 --- /dev/null +++ b/ui_mp/patch_mp_menus.txt @@ -0,0 +1,65 @@ +{ + loadMenu { "ui_mp/player_popup_party.menu" } + loadMenu { "ui_mp/player_popup_publiclobby.menu" } + loadMenu { "ui_mp/player_popup_privatematch.menu" } + loadMenu { "ui_mp/hostchangewarning.menu" } + loadMenu { "ui_mp/youarehost.menu" } + loadMenu { "ui_mp/popup_serverpassword.menu" } + loadMenu { "ui_mp/popup_joinpassword.menu" } + loadMenu { "ui_mp/settings_map.menu" } + loadMenu { "ui_mp/settings_bonus_map.menu" } + loadMenu { "ui_mp/auconfirm.menu" } + loadMenu { "ui_mp/cac_popup.menu" } + loadMenu { "ui_mp/changelog.menu" } + loadMenu { "ui_mp/connect.menu" } + loadMenu { "ui_mp/controls_multi.menu" } + loadMenu { "ui_mp/createfavorite_popmenu.menu" } + loadMenu { "ui_mp/createserver.menu" } + loadMenu { "ui_mp/dpad_hd.menu" } + loadMenu { "ui_mp/filter_popmenu.menu" } + loadMenu { "ui_mp/hud_fullscreen.menu" } + loadMenu { "ui_mp/iw4x_credits.menu" } + loadMenu { "ui_mp/leavelobbywarning.menu" } + loadMenu { "ui_mp/main_text.menu" } + loadMenu { "ui_mp/menu_first_launch.menu" } + loadMenu { "ui_mp/menu_online_barracks.menu" } + loadMenu { "ui_mp/menu_xboxlive_lobby.menu" } + loadMenu { "ui_mp/menu_xboxlive_privatelobby.menu" } + loadMenu { "ui_mp/minimap_fullscreen.menu" } + loadMenu { "ui_mp/mods_menu.menu" } + loadMenu { "ui_mp/mod_download_popmenu.menu" } + loadMenu { "ui_mp/onlineupdate.menu" } + loadMenu { "ui_mp/pc_join_unranked.menu" } + loadMenu { "ui_mp/pc_options_actions.menu" } + loadMenu { "ui_mp/pc_options_advanced_video.menu" } + loadMenu { "ui_mp/pc_options_audio.menu" } + loadMenu { "ui_mp/pc_options_controls.menu" } + loadMenu { "ui_mp/pc_options_game.menu" } + loadMenu { "ui_mp/pc_options_gamepad.menu" } + loadMenu { "ui_mp/pc_options_look.menu" } + loadMenu { "ui_mp/pc_options_movement.menu" } + loadMenu { "ui_mp/pc_options_multi.menu" } + loadMenu { "ui_mp/pc_options_video.menu" } + loadMenu { "ui_mp/playerdataread.menu" } + loadMenu { "ui_mp/popup_cac_assault_primary.menu" } + loadMenu { "ui_mp/popup_cac_handgun_secondary.menu" } + loadMenu { "ui_mp/popup_cac_primary_camo.menu" } + loadMenu { "ui_mp/popup_cac_smg_primary.menu" } + loadMenu { "ui_mp/popup_cac_sniper_primary.menu" } + loadMenu { "ui_mp/popup_cac_weapon_primary.menu" } + loadMenu { "ui_mp/popup_customclan.menu" } + loadMenu { "ui_mp/popup_customtitle.menu" } + loadMenu { "ui_mp/popup_friends.menu" } + loadMenu { "ui_mp/popup_gamesetup.menu" } + loadMenu { "ui_mp/popup_playername.menu" } + loadMenu { "ui_mp/popup_ready.menu" } + loadMenu { "ui_mp/quickmessage.menu" } + loadMenu { "ui_mp/resetclass.menu" } + loadMenu { "ui_mp/security_increase_popmenu.menu" } + loadMenu { "ui_mp/serverinfo_popmenu.menu" } + loadMenu { "ui_mp/settings_gametype.menu" } + loadMenu { "ui_mp/startup_messages.menu" } + loadMenu { "ui_mp/stats_reset.menu" } + loadMenu { "ui_mp/stats_unlock.menu" } + loadMenu { "ui_mp/pc_theater_menu.menu" } +} diff --git a/ui_mp/pc_join_unranked.menu b/ui_mp/pc_join_unranked.menu new file mode 100644 index 0000000..9eb53e0 --- /dev/null +++ b/ui_mp/pc_join_unranked.menu @@ -0,0 +1,889 @@ +{ + menuDef + { + name "pc_join_unranked" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + exec "selectStringTableEntryInDvar mp/didyouknow.csv 0 didyouknow"; + uiScript LoadArenas; + uiScript UpdateFilter; + uiScript RefreshServers; + setFocus serverlist; + } + onESC + { + close self; + } + execKeyInt 13 + { + play mouse_click; + uiScript JoinServer; + } + execKeyInt 171 + { + play mouse_click; + uiScript RefreshServers; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + name "sourcefield" + rect 100 -33 144 18 1 1 + style 1 + visible 1 + ownerdraw 220 + textalignx 10 + textaligny 16 + textscale 0.3 + textfont 3 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + } + } + itemDef + { + name "gametype" + text "@MENU_GAME_TYPE" + rect 100 -15 144 18 1 1 + style 1 + visible 1 + ownerdraw 253 + textalignx 10 + textaligny 16 + textscale 0.3 + textfont 3 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + } + } + itemDef + { + name "filterServers" + text "@MENU_FILTER_SERVERS" + rect 100 3 144 18 1 1 + style 1 + type 1 + visible 1 + textalignx 10 + textaligny 16 + textscale 0.3 + textfont 3 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + open filter_popmenu; + } + } + itemDef + { + name "refreshSource" + text "@PLATFORM_REFRESH_LIST" + rect 304 -33 144 18 1 1 + style 1 + type 1 + visible 1 + textalignx 10 + textaligny 16 + textscale 0.3 + textfont 3 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + uiScript RefreshServers; + } + } + itemDef + { + name "refreshFilter" + text "@MENU_QUICK_REFRESH" + rect 304 -15 144 18 1 1 + style 1 + type 1 + visible 1 + textalignx 10 + textaligny 16 + textscale 0.3 + textfont 3 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + uiScript RefreshFilter; + } + } + itemDef + { + name "createFavorite2" + text "@MENU_NEW_FAVORITE" + rect 304 3 144 18 1 1 + style 1 + type 1 + visible when(dvarint(ui_netSource) != 1); + disabled when(dvarint(ui_netSource) != 2); + textalignx 10 + textaligny 16 + textscale 0.3 + textfont 3 + backcolor 0.6 0.55 0.55 0.2 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + open createfavorite_popmenu; + } + } + itemDef + { + name "refreshDate" + rect -44 -13 100 18 1 1 + decoration + visible 1 + textalign 8 + textscale 0.25 + textfont 3 + exp text "@MPUI_SERVERQUERIED"; + } + itemDef + { + name "mapimageFrame" + rect 539 9 93 62 0 0 + style 1 + decoration + visible when(dvarbool(ui_serverSelected) && dvarbool(wideScreen)); + backcolor 0 0 0 0.5 + background "black" + } + itemDef + { + name "mapimage" + rect 540 10 91 60 0 0 + style 3 + decoration + visible when(dvarbool(ui_serverSelected) && dvarbool(wideScreen)); + background "black" + exp material "preview_" + dvarstring(ui_serverSelectedMap); + } + itemDef + { + name "window" + rect 0 42 698 338 4 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.15 + } + itemDef + { + rect 0 10 698 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 0 380 698 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + name "lineMatchtype" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "lineAimAssist" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "lineVoiceChat" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "lineServer" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "lineMap" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "linePlayers" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "lineType" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "lineMod" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "linePing" + group "grpCoulmnSep" + rect -2 -2 1 338 0 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0.2 + } + itemDef + { + name "serverlist" + rect 0 58 690 321 0 1 + style 1 + type 6 + visible 1 + textscale 0.25 + textfont 1 + outlinecolor 0 0 0 0.6 + elementwidth 120 + elementheight 16 + feeder 2 + columns 10 + 6 16 10 1 + 30 16 10 1 + 52 16 10 1 + 74 16 10 1 + 99 208 38 0 + 309 70 25 0 + 381 50 10 0 + 433 102 22 0 + 537 100 20 0 + 639 40 20 0 + doubleclick + { + uiScript JoinServer; + } + } + itemDef + { + name "password" + group "grpTabs" + rect 5 44 30 16 0 1 + style 1 + type 1 + visible 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 0; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor passwordicon foreColor 1 1 "0.5" 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + } + } + itemDef + { + name "passwordicon" + rect 2 2 16 16 0 1 + style 3 + decoration + visible 1 + background "cardicon_locked" + } + itemDef + { + name "matchtype" + group "grpTabs" + rect 32 44 20 16 0 1 + style 1 + type 1 + visible 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 1; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor matchtypeicon foreColor 1 1 "0.5" 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + } + } + itemDef + { + name "matchtypeicon" + rect 0 2 16 16 0 1 + style 3 + decoration + visible 1 + background "server_hardware_header" + } + itemDef + { + name "aimassist" + group "grpTabs" + rect 54 44 20 16 0 1 + style 1 + type 1 + visible 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 2; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor aimassisticon foreColor 1 1 "0.5" 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + } + } + itemDef + { + name "aimassisticon" + rect 0 2 16 16 0 1 + style 3 + decoration + visible 1 + background "cardicon_headshot" + } + itemDef + { + name "voicechat" + group "grpTabs" + rect 76 44 20 16 0 1 + style 1 + type 1 + visible 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 3; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor voicechaticon foreColor 1 1 "0.5" 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + } + } + itemDef + { + name "voicechaticon" + rect 0 2 16 16 0 1 + style 3 + decoration + visible 1 + background "talkingicon" + } + itemDef + { + name "server" + text "@MENU_SERVER_NAME" + group "grpTabs" + rect 98 44 208 16 0 1 + style 1 + type 1 + visible 1 + textalignx 2 + textaligny 16 + textscale 0.25 + textfont 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 4; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + setitemColor self foreColor 1 1 "0.5" 1; + } + } + itemDef + { + name "map" + text "@MENU_MAP_NAME" + group "grpTabs" + rect 308 44 70 16 0 1 + style 1 + type 1 + visible 1 + textalignx 2 + textaligny 16 + textscale 0.25 + textfont 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 5; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + setitemColor self foreColor 1 1 "0.5" 1; + } + } + itemDef + { + name "players" + text "@MENU_NUMPLAYERS" + group "grpTabs" + rect 380 44 50 16 0 1 + style 1 + type 1 + visible 1 + textalignx 2 + textaligny 16 + textscale 0.25 + textfont 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 6; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + setitemColor self foreColor 1 1 "0.5" 1; + } + } + itemDef + { + name "type" + text "@MENU_GAME_TYPE" + group "grpTabs" + rect 432 44 102 16 0 1 + style 1 + type 1 + visible 1 + textalignx 2 + textaligny 16 + textscale 0.25 + textfont 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 7; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + setitemColor self foreColor 1 1 "0.5" 1; + } + } + itemDef + { + name "mod" + text "@MPUI_MOD" + group "grpTabs" + rect 536 44 100 16 0 1 + style 1 + type 1 + visible 1 + textalignx 2 + textaligny 16 + textscale 0.25 + textfont 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 8; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + setitemColor self foreColor 1 1 "0.5" 1; + } + } + itemDef + { + name "ping" + text "@MENU_PING" + group "grpTabs" + rect 638 44 40 16 0 1 + style 1 + type 1 + visible 1 + textalignx 2 + textaligny 16 + textscale 0.25 + textfont 1 + forecolor 1 0.8 0.4 1 + action + { + play mouse_click; + uiScript ServerSort 9; + setItemColor grpTabs foreColor 1 "0.8" "0.4" 1; + setItemColor matchtypeicon foreColor 1 1 1 1; + setItemColor passwordicon foreColor 1 1 1 1; + setItemColor aimassisticon foreColor 1 1 1 1; + setItemColor voicechaticon foreColor 1 1 1 1; + setitemColor self foreColor 1 1 "0.5" 1; + } + } + itemDef + { + text "@MENU_JOIN_SERVER_CAPS" + rect -50 -35 146 28 1 1 + decoration + visible 1 + textalign 8 + textalignx 5 + textscale 0.45 + textfont 9 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + rect -310 -10 100 20 2 3 + style 1 + type 1 + visible 1 + textalign 9 + textscale 0.275 + textfont 9 + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + name "addFavorite" + text "@MENU_ADD_TO_FAVORITES_CAPS" + rect -194 -10 140 20 2 3 + style 1 + type 1 + visible when(dvarint(ui_netSource) != 2); + textalign 9 + textscale 0.275 + textfont 9 + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + uiScript CreateListFavorite; + } + } + itemDef + { + name "delFavorite" + text "@MENU_DEL_FAVORITE_CAPS" + rect -194 -10 140 20 2 3 + style 1 + type 1 + visible when(dvarint(ui_netSource) == 2); + textalign 9 + textscale 0.275 + textfont 9 + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + uiScript DeleteFavorite; + } + } + itemDef + { + name "passwordenter" + text "@MENU_PASSWORD_CAPS" + rect -34 -10 100 20 2 3 + style 1 + type 1 + visible 1 + textalign 9 + textscale 0.275 + textfont 9 + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + open popup_joinpassword; + } + } + itemDef + { + name "serverinfo" + text "@MENU_SERVER_INFO_CAPS" + rect 86 -10 100 20 2 3 + style 1 + type 1 + visible 1 + textalign 9 + textscale 0.275 + textfont 9 + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + open serverinfo_popmenu; + } + } + itemDef + { + name "joinserver" + text "@MENU_JOIN_SERVER_CAPS" + rect 206 -10 100 20 2 3 + style 1 + type 1 + visible 1 + textalign 9 + textscale 0.275 + textfont 9 + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + action + { + play mouse_click; + uiScript JoinServer; + } + } + } +} diff --git a/ui_mp/pc_options_actions.menu b/ui_mp/pc_options_actions.menu new file mode 100644 index 0000000..b3376e5 --- /dev/null +++ b/ui_mp/pc_options_actions.menu @@ -0,0 +1,1022 @@ +{ + menuDef + { + name "pc_options_actions" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarBool ui_hideBack 1; + setLocalVarBool ui_hint_display 0; + } + onClose + { + setLocalVarBool ui_hideBack 0; + open pc_options_controls; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_ACTIONS" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+attack" + } + itemDef + { + text "@MENU_FIRE_WEAPON" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+toggleads_throw" + } + itemDef + { + text "@MENU_AIM_DOWN_THE_SIGHT" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+speed_throw" + } + itemDef + { + text "@MENU_HOLD_AIM_DOWN_SIGHT" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+leanleft" + } + itemDef + { + text "@MENU_LEAN_LEFT" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+leanright" + } + itemDef + { + text "@MENU_LEAN_RIGHT" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 14 + visible when(dvarbool(gpad_in_use) == 1); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+usereload" + } + itemDef + { + text "@MENU_USE_RELOAD" + rect 232 128 336 20 1 1 + decoration + visible when(dvarbool(gpad_in_use) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 14 + visible when(dvarbool(gpad_in_use) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+reload" + } + itemDef + { + text "@MENU_RELOAD_WEAPON" + rect 232 128 336 20 1 1 + decoration + visible when(dvarbool(gpad_in_use) == 0); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 148 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "weapnext" + } + itemDef + { + text "@MENU_SWITCH_WEAPON" + rect 232 148 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 168 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+melee" + } + itemDef + { + text "@MENU_MELEE_ATTACK" + rect 232 168 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 188 336 20 1 1 + style 1 + type 14 + visible when(dvarbool(gpad_in_use) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+activate" + } + itemDef + { + text "@MENU_USE" + rect 232 188 336 20 1 1 + decoration + visible when(dvarbool(gpad_in_use) == 0); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 208 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+frag" + } + itemDef + { + text "@MENU_FRAG_EQUIPMENT" + rect 232 208 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 228 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+smoke" + } + itemDef + { + text "@MENU_THROW_SPECIAL_GRENADE" + rect 232 228 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 248 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+actionslot 3" + } + itemDef + { + text "@MENU_WEAPON_ATTACHMENT" + rect 232 248 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 268 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+actionslot 4" + } + itemDef + { + text "@MENU_INVENTORY_KILLSTREAK" + rect 232 268 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 288 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+actionslot 2" + } + itemDef + { + text "@MENU_SECONDARY_INVENTORY" + rect 232 288 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 308 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+actionslot 1" + } + itemDef + { + text "@MENU_NIGHT_VISION" + rect 232 308 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 328 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 328 336 20 1 1 + style 1 + type 14 + visible when(dvarbool(gpad_in_use) == 1); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "togglescores" + } + itemDef + { + text "@MENU_SHOW_OBJECTIVES_SCORES" + rect 232 328 336 20 1 1 + decoration + visible when(dvarbool(gpad_in_use) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 328 336 20 1 1 + style 1 + type 14 + visible when(dvarbool(gpad_in_use) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+scores" + } + itemDef + { + text "@MENU_SHOW_OBJECTIVES_SCORES" + rect 232 328 336 20 1 1 + decoration + visible when(dvarbool(gpad_in_use) == 0); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + name "keyBindStatus" + rect 10 20 500 240 2 3 + style 1 + decoration + autowrapped + type 8 + ownerdraw 250 + textalign 1 + textscale 0.375 + forecolor 0.65 0.65 0.65 1 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/pc_options_advanced_video.menu b/ui_mp/pc_options_advanced_video.menu new file mode 100644 index 0000000..e485929 --- /dev/null +++ b/ui_mp/pc_options_advanced_video.menu @@ -0,0 +1,1004 @@ +{ + menuDef + { + name "pc_options_advanced_video" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + execnow "profile_menuDvarsSetup; resetViewport"; + setLocalVarBool ui_hideBack 1; + } + onClose + { + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarBool ui_hideBack 0; + execOnDvarIntValue r_lodScaleRigid 2 "set r_lodScaleSkinned 4; set r_lodBiasSkinned -200; set r_lodBiasRigid -100"; + execOnDvarIntValue r_lodScaleRigid 1 "set r_lodScaleSkinned 1; set r_lodBiasSkinned 0; set r_lodBiasRigid 0"; + open pc_options_video; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_ADVANCED_VIDEO" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setDvarInt r_aspectratio dvarInt ( ui_r_aspectratio ); + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_aspectratio" + dvarFloatList { "@MENU_AUTO" 0 "@MENU_STANDARD_4_3" 1 "@MENU_WIDE_16_10" 2 "@MENU_WIDE_16_9" 3 } + } + itemDef + { + text "@MENU_ASPECT_RATIO" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_aasamples" + dvarFloatList { "@MENU_OFF" 1 "@MENU_2X" 2 "@MENU_4X" 4 } + } + itemDef + { + text "@MENU_ANTIALIASING" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 13 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_hint_display 1; + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MENU_GRAPHICS_WARNING"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_displayRefresh" + dvarEnumList "r_displayRefresh" + } + itemDef + { + text "@MENU_SCREEN_REFRESH_RATE" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_vsync" + } + itemDef + { + text "@MENU_SYNC_EVERY_FRAME" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 108 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "sm_enable" + } + itemDef + { + text "@MENU_SHADOWS" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "r_specular" + } + itemDef + { + text "@MENU_SPECULAR_MAP" + rect 232 128 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 148 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "r_dof_enable" + } + itemDef + { + text "@MENU_DOF" + rect 232 148 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 168 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 168 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "r_zfeather" + } + itemDef + { + text "@MENU_ZFEATHER_SMOKE" + rect 232 168 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 188 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "ragdoll_enable" + } + itemDef + { + text "@MENU_RAGDOLL" + rect 232 188 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 208 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "fx_marks" + } + itemDef + { + text "@MENU_BULLET_IMPACTS" + rect 232 208 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 228 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 228 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_picmip_manual" + dvarFloatList { "@MENU_AUTOMATIC" 0 "@MENU_MANUAL" 1 } + } + itemDef + { + text "@MENU_TEXTURE_QUALITY" + rect 232 228 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 248 336 20 1 1 + style 1 + type 12 + visible when(dvarbool(ui_r_picmip_manual)); + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_picmip" + dvarFloatList { "@MENU_LOW" 3 "@MENU_NORMAL" 2 "@MENU_HIGH" 1 "@MENU_EXTRA" 0 } + } + itemDef + { + text "@MENU_TEXTURE_RESOLUTION" + rect 232 248 336 20 1 1 + decoration + visible when(dvarbool(ui_r_picmip_manual)); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 268 336 20 1 1 + style 1 + type 12 + visible when(dvarbool(ui_r_picmip_manual)); + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_picmip_bump" + dvarFloatList { "@MENU_LOW" 3 "@MENU_NORMAL" 2 "@MENU_HIGH" 1 "@MENU_EXTRA" 0 } + } + itemDef + { + text "@MENU_NORMAL_MAP_RESOLUTION" + rect 232 268 336 20 1 1 + decoration + visible when(dvarbool(ui_r_picmip_manual)); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 288 336 20 1 1 + style 1 + type 12 + visible when(dvarbool(ui_r_picmip_manual)); + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_picmip_spec" + dvarFloatList { "@MENU_LOW" 3 "@MENU_NORMAL" 2 "@MENU_HIGH" 1 "@MENU_EXTRA" 0 } + } + itemDef + { + text "@MENU_SPECULAR_MAP_RESOLUTION" + rect 232 288 336 20 1 1 + decoration + visible when(dvarbool(ui_r_picmip_manual)); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/pc_options_audio.menu b/ui_mp/pc_options_audio.menu new file mode 100644 index 0000000..8a27395 --- /dev/null +++ b/ui_mp/pc_options_audio.menu @@ -0,0 +1,909 @@ +{ + menuDef + { + name "pc_options_audio" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_advanced_video; + close pc_options_controls; + close pc_options_game; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + if (!localvarint("ui_showAudioApply")) + { + exec "setfromdvar ui_snd_khz snd_khz"; + exec "setfromdvar ui_snd_enableEq snd_enableEq"; + exec "setfromdvar ui_outputConfig snd_outputConfiguration"; + } + execnow "profile_menuDvarsSetup; resetViewport"; + setFocus buttonAudio; + } + onESC + { + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_OPTIONS_CAPS" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "buttonVideo" + text "@MENU_VIDEO" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_video; + } + } + itemDef + { + name "buttonAudio" + text "@MENU_AUDIO" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_audio; + } + } + itemDef + { + name "buttonControls" + text "@MENU_CONTROLS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_controls; + } + } + itemDef + { + name "buttonMulti" + text "@MENU_MULTIPLAYER" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_multi; + } + } + itemDef + { + name "buttonGame" + text "@MENU_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_game; + } + } + itemDef + { + name "buttonGamepad" + text "@MENU_GAMEPAD" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_gamepad; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "buttonDefaults" + text "@MENU_RESET_SYSTEM_DEFAULTS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open options_graphics_defaults; + } + } + itemDef + { + name "graphic_warning" + text "@MENU_GRAPHICS_WARNING" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(((!localvarbool("ui_brightness_hint_display")) && (!localvarbool("ui_hint_display"))) && menuisopen("pc_options_video")); + textscale 0.375 + } + itemDef + { + name "brightness_hint" + text "@MENU_BRIGHTNESS_HINT_PC" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_brightness_hint_display") && (!localvarbool("ui_hint_display"))); + textscale 0.375 + forecolor 1 0.8 0.4 1 + } + itemDef + { + name "hint_area" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_hint_display")); + textscale 0.375 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + } + itemDef + { + text "@MENU_AUDIO" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 10 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textaligny 2 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvarFloat "snd_volume" 0 0 1 + } + itemDef + { + text "@MENU_MASTER_VOLUME" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 422 28 344 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -190 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + exp text dvarstring(snd_volume); + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showAudioApply 1; + } + dvar "ui_outputConfig" + dvarStrList { "@MENU_WINDOWS_DEFAULT" "Windows default" "@MENU_MONO" "Mono" "@MENU_STEREO" "Stereo" "@MENU_FOUR_SPEAKERS" "4 speakers" "@MENU_FIVE_ONE_SPEAKERS" "5.1 speakers" } + } + itemDef + { + text "@MENU_SPEAKER_CONFIG" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 68 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + "@MPUI_DESC_ENABLE_VOICE_CHAT"; + } + dvar "cl_voice" + } + itemDef + { + text "@MPUI_ENABLE_VOICE_CHAT" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+talk" + } + itemDef + { + text "@MENU_VOICE_CHAT_BUTTON" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + } +} diff --git a/ui_mp/pc_options_controls.menu b/ui_mp/pc_options_controls.menu new file mode 100644 index 0000000..30a624a --- /dev/null +++ b/ui_mp/pc_options_controls.menu @@ -0,0 +1,899 @@ +{ + menuDef + { + name "pc_options_controls" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_game; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_hideBack 1; + execnow "profile_menuDvarsSetup; resetViewport"; + setFocus buttonControls; + } + onClose + { + setLocalVarBool ui_hideBack 0; + } + onESC + { + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_OPTIONS_CAPS" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "buttonVideo" + text "@MENU_VIDEO" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_video; + } + } + itemDef + { + name "buttonAudio" + text "@MENU_AUDIO" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_audio; + } + } + itemDef + { + name "buttonControls" + text "@MENU_CONTROLS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_controls; + } + } + itemDef + { + name "buttonMulti" + text "@MENU_MULTIPLAYER" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_multi; + } + } + itemDef + { + name "buttonGame" + text "@MENU_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_game; + } + } + itemDef + { + name "buttonGamepad" + text "@MENU_GAMEPAD" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_gamepad; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "buttonDefaults" + text "@MENU_RESET_SYSTEM_DEFAULTS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open options_graphics_defaults; + } + } + itemDef + { + name "graphic_warning" + text "@MENU_GRAPHICS_WARNING" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(((!localvarbool("ui_brightness_hint_display")) && (!localvarbool("ui_hint_display"))) && menuisopen("pc_options_video")); + textscale 0.375 + } + itemDef + { + name "brightness_hint" + text "@MENU_BRIGHTNESS_HINT_PC" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_brightness_hint_display") && (!localvarbool("ui_hint_display"))); + textscale 0.375 + forecolor 1 0.8 0.4 1 + } + itemDef + { + name "hint_area" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_hint_display")); + textscale 0.375 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + } + itemDef + { + text "@MENU_CONTROLS" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + name "buttonMovement" + text "@MENU_MOVEMENT" + group "mw2_button" + rect 302 28 225 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 4 + textalignx 60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open pc_options_movement; + close self; + } + } + itemDef + { + name "buttonActions" + text "@MENU_ACTIONS" + group "mw2_button" + rect 302 48 225 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 4 + textalignx 60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open pc_options_actions; + close self; + } + } + itemDef + { + name "buttonLook" + text "@MENU_LOOK" + group "mw2_button" + rect 302 68 225 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 4 + textalignx 60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open pc_options_look; + close self; + } + } + itemDef + { + name "buttonChat" + text "@MENU_CHAT" + group "mw2_button" + rect 302 88 225 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 4 + textalignx 60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open controls_multi; + close self; + } + } + itemDef + { + rect 226 108 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + text "@MENU_RESTORE_DEFAULT_CONTROLS" + rect 302 108 225 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open options_control_defaults; + } + } + } +} diff --git a/ui_mp/pc_options_game.menu b/ui_mp/pc_options_game.menu new file mode 100644 index 0000000..a59e746 --- /dev/null +++ b/ui_mp/pc_options_game.menu @@ -0,0 +1,986 @@ +{ + menuDef + { + name "pc_options_game" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + exec "setfromdvar ui_name name"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_hint_display 1; + execnow "profile_menuDvarsSetup; resetViewport"; + setFocus buttonGame; + } + onClose + { + ON_MENU_CLOSE; + } + onESC + { + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_OPTIONS_CAPS" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "buttonVideo" + text "@MENU_VIDEO" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_video; + } + } + itemDef + { + name "buttonAudio" + text "@MENU_AUDIO" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_audio; + } + } + itemDef + { + name "buttonControls" + text "@MENU_CONTROLS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_controls; + } + } + itemDef + { + name "buttonMulti" + text "@MENU_MULTIPLAYER" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_multi; + } + } + itemDef + { + name "buttonGame" + text "@MENU_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_game; + } + } + itemDef + { + name "buttonGamepad" + text "@MENU_GAMEPAD" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_gamepad; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "buttonDefaults" + text "@MENU_RESET_SYSTEM_DEFAULTS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open options_graphics_defaults; + } + } + itemDef + { + name "graphic_warning" + text "@MENU_GRAPHICS_WARNING" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(((!localvarbool("ui_brightness_hint_display")) && (!localvarbool("ui_hint_display"))) && menuisopen("pc_options_video")); + textscale 0.375 + } + itemDef + { + name "brightness_hint" + text "@MENU_BRIGHTNESS_HINT_PC" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_brightness_hint_display") && (!localvarbool("ui_hint_display"))); + textscale 0.375 + forecolor 1 0.8 0.4 1 + } + itemDef + { + name "hint_area" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_hint_display")); + textscale 0.375 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + } + itemDef + { + text "@MENU_GAME" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "cg_blood" + } + itemDef + { + text "@MENU_SHOW_BLOOD" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_NEWCOLORS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "cg_newColors" + } + itemDef + { + text "@MENU_NEWCOLORS" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 68 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_AUTORECORD"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "cl_autoRecord" + } + itemDef + { + text "@MENU_AUTORECORD" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + text " " + rect 232 88 336 20 1 1 + style 1 + type 4 + visible 1 + textalign 4 + textalignx 160 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MPUI_DESC_DEMOS_KEEP"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "cl_demosKeep" + maxChars 3 + maxPaintChars 3 + } + itemDef + { + text "@MENU_DEMOS_KEEP" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "r_colorBlindTeams" + } + itemDef + { + text "@MENU_COLORBLIND_MODE" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + } +} diff --git a/ui_mp/pc_options_gamepad.menu b/ui_mp/pc_options_gamepad.menu new file mode 100644 index 0000000..4f21e37 --- /dev/null +++ b/ui_mp/pc_options_gamepad.menu @@ -0,0 +1,1200 @@ +{ + menuDef + { + name "pc_options_gamepad" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + exec "setfromdvar ui_name name"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_hint_display 1; + execnow "profile_menuDvarsSetup; resetViewport"; + setFocus buttonGamepad; + } + onClose + { + ON_MENU_CLOSE; + } + onESC + { + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_OPTIONS_CAPS" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "buttonVideo" + text "@MENU_VIDEO" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_video; + } + } + itemDef + { + name "buttonAudio" + text "@MENU_AUDIO" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_audio; + } + } + itemDef + { + name "buttonControls" + text "@MENU_CONTROLS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_controls; + } + } + itemDef + { + name "buttonMulti" + text "@MENU_MULTIPLAYER" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_multi; + } + } + itemDef + { + name "buttonGame" + text "@MENU_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_game; + } + } + itemDef + { + name "buttonGamepad" + text "@MENU_GAMEPAD" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_gamepad; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "buttonDefaults" + text "@MENU_RESET_SYSTEM_DEFAULTS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open options_graphics_defaults; + } + } + itemDef + { + name "graphic_warning" + text "@MENU_GRAPHICS_WARNING" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(((!localvarbool("ui_brightness_hint_display")) && (!localvarbool("ui_hint_display"))) && menuisopen("pc_options_video")); + textscale 0.375 + } + itemDef + { + name "brightness_hint" + text "@MENU_BRIGHTNESS_HINT_PC" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_brightness_hint_display") && (!localvarbool("ui_hint_display"))); + textscale 0.375 + forecolor 1 0.8 0.4 1 + } + itemDef + { + name "hint_area" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_hint_display")); + textscale 0.375 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + } + itemDef + { + text "@MENU_GAMEPAD" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_GAMEPAD_ENABLED"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + if (dvarbool(gpad_enabled) && (dvarstring(gpad_sticksConfig) == "")) + { + setdvar gpad_sticksConfig thumbstick_default; + execnow bindgpsticksconfigs; + } + if (dvarbool(gpad_enabled) && (dvarstring(gpad_buttonConfig) == "")) + { + setdvar gpad_buttonConfig buttons_default; + execnow bindgpbuttonsconfigs; + } + } + dvar "gpad_enabled" + } + itemDef + { + text "@MENU_GAMEPAD_ENABLED" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 48 -392 1 1 1 + style 3 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 11 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_LOOK_INVERSION"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "input_invertPitch" + } + itemDef + { + text "@MENU_LOOK_INVERSION" + rect 232 48 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 12 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MENU_DESC_THUMBSTICK_LAYOUT"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + execNow bindgpsticksconfigs; + } + dvar "gpad_sticksConfig" + dvarStrList { "@MENU_DEFAULT" "thumbstick_default" "@MENU_SOUTHPAW" "thumbstick_southpaw" "@MENU_LEGACY" "thumbstick_legacy" "@MENU_LEGACY_SOUTHPAW" "thumbstick_legacysouthpaw" } + } + itemDef + { + text "@MENU_THUMBSTICK_LAYOUT" + rect 232 68 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 12 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MENU_DESC_BUTTON_LAYOUT"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + execNow bindgpbuttonsconfigs; + } + dvar "gpad_buttonConfig" + dvarStrList { "@MENU_DEFAULT" "buttons_default" "@MENU_TACTICAL" "buttons_tactical" "@MENU_LEFTY" "buttons_lefty" "@MENU_NOMAD" "buttons_nomad" "@MENU_DEFAULT_ALT" "buttons_default_alt" "@MENU_TACTICAL_ALT" "buttons_tactical_alt" "@MENU_LEFTY_ALT" "buttons_lefty_alt" "@MENU_NOMAD_ALT" "buttons_nomad_alt" } + } + itemDef + { + text "@MENU_BUTTON_LAYOUT" + rect 232 88 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 12 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MPUI_DESC_GPAD_STYLE"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "gpad_style" + dvarFloatList { "@MENU_GPAD_XBOX_CAPS" 0 "@MENU_GPAD_PS_CAPS" 1 } + } + itemDef + { + text "@MENU_GPAD_STYLE" + rect 232 108 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 11 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_SLOWDOWN_ENABLED"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "gpad_slowdown_enabled" + } + itemDef + { + text "@MENU_SLOWDOWN_ENABLED" + rect 232 128 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 148 336 20 1 1 + style 1 + type 11 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_LOCKON_ENABLED"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "gpad_lockon_enabled" + } + itemDef + { + text "@MENU_LOCKON_ENABLED" + rect 232 148 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 168 -392 1 1 1 + style 3 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 168 336 20 1 1 + style 1 + type 10 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textaligny 2 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvarFloat "input_viewSensitivity" 1 0.5 4 + } + itemDef + { + text "@MENU_LOOK_SENSITIVITY" + rect 232 168 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 422 168 344 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -190 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + exp text dvarstring(input_viewSensitivity); + } + itemDef + { + rect 232 188 336 20 1 1 + style 1 + type 12 + visible when(dvarbool(gpad_enabled) == 1); + disabled when(dvarbool(gpad_enabled) == 0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MENU_DESC_LOOK_SENSITIVITY_PRESET"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "input_viewSensitivity" + dvarFloatList { "@MENU_SENSITIVITY_LOW_CAPS" 0.6 "@MENU_SENSITIVITY_MEDIUM_CAPS" 1 "3" 1.4 "@MENU_SENSITIVITY_HIGH_CAPS" 1.8 "5" 2 "6" 2.2 "@MENU_SENSITIVITY_VERY_HIGH_CAPS" 2.6 "8" 3 "9" 3.5 "@MENU_SENSITIVITY_INSANE_CAPS" 4 } + } + itemDef + { + text "@MENU_LOOK_SENSITIVITY_PRESET" + rect 232 188 336 20 1 1 + decoration + visible when(dvarbool(gpad_enabled) == 1); + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + } +} diff --git a/ui_mp/pc_options_look.menu b/ui_mp/pc_options_look.menu new file mode 100644 index 0000000..87dd4c4 --- /dev/null +++ b/ui_mp/pc_options_look.menu @@ -0,0 +1,649 @@ +{ + menuDef + { + name "pc_options_look" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarBool ui_hideBack 1; + setLocalVarBool ui_hint_display 0; + } + onClose + { + setLocalVarBool ui_hideBack 0; + open pc_options_controls; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_LOOK" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 422 28 344 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -190 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + exp text dvarstring(sensitivity); + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 10 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textaligny 2 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvarFloat "sensitivity" 5 0.1 10 + } + itemDef + { + text "@MENU_MOUSE_SENSITIVITY" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 422 28 344 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -190 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + exp text dvarstring(sensitivity); + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + uiscript updateui_mousePitch; + } + dvar "ui_mousePitch" + } + itemDef + { + text "@MENU_INVERT_MOUSE" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 68 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "m_filter" + } + itemDef + { + text "@MENU_SMOOTH_MOUSE" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "cl_freelook" + } + itemDef + { + text "@MENU_FREE_LOOK" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+lookup" + } + itemDef + { + text "@MENU_LOOK_UP" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+lookdown" + } + itemDef + { + text "@MENU_LOOK_DOWN" + rect 232 128 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 148 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+mlook" + } + itemDef + { + text "@MENU_HOLD_MOUSE_LOOK" + rect 232 148 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 168 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "centerview" + } + itemDef + { + text "@MENU_CENTER_VIEW" + rect 232 168 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + name "keyBindStatus" + rect 10 20 500 240 2 3 + style 1 + decoration + autowrapped + type 8 + ownerdraw 250 + textalign 1 + textscale 0.375 + forecolor 0.65 0.65 0.65 1 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/pc_options_movement.menu b/ui_mp/pc_options_movement.menu new file mode 100644 index 0000000..f26bf9b --- /dev/null +++ b/ui_mp/pc_options_movement.menu @@ -0,0 +1,969 @@ +{ + menuDef + { + name "pc_options_movement" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_look; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarBool ui_hideBack 1; + setLocalVarBool ui_hint_display 0; + } + onClose + { + setLocalVarBool ui_hideBack 0; + open pc_options_controls; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_MOVEMENT" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+forward" + } + itemDef + { + text "@MENU_FORWARD" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+back" + } + itemDef + { + text "@MENU_MOVE_BACK" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+moveleft" + } + itemDef + { + text "@MENU_MOVE_LEFT" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+moveright" + } + itemDef + { + text "@MENU_MOVE_RIGHT" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+gostand" + } + itemDef + { + text "@MENU_STANDJUMP" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "togglecrouch" + } + itemDef + { + text "@MENU_CROUCH" + rect 232 128 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 148 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "toggleprone" + } + itemDef + { + text "@MENU_PRONE" + rect 232 148 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 168 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+breath_sprint" + } + itemDef + { + text "@MENU_SPRINT_HOLD_BREATH" + rect 232 168 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 188 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 188 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+movedown" + } + itemDef + { + text "@MENU_HOLD_DOWN_CROUCH" + rect 232 188 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 208 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+prone" + } + itemDef + { + text "@MENU_HOLD_DOWN_PRONE" + rect 232 208 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 228 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+stance" + } + itemDef + { + text "@MENU_CHANGE_STANCE" + rect 232 228 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 248 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+sprint" + } + itemDef + { + text "@MENU_SPRINT" + rect 232 248 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 268 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+holdbreath" + } + itemDef + { + text "@MENU_HOLD_BREATH" + rect 232 268 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 288 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+left" + } + itemDef + { + text "@MENU_TURN_LEFT" + rect 232 288 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 308 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+right" + } + itemDef + { + text "@MENU_TURN_RIGHT" + rect 232 308 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 328 336 20 1 1 + style 1 + type 14 + visible 1 + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + show keyBindStatus; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + hide keyBindStatus; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "+strafe" + } + itemDef + { + text "@MENU_STRAFE" + rect 232 328 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + name "keyBindStatus" + rect 10 20 500 240 2 3 + style 1 + decoration + autowrapped + type 8 + ownerdraw 250 + textalign 1 + textscale 0.375 + forecolor 0.65 0.65 0.65 1 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/pc_options_multi.menu b/ui_mp/pc_options_multi.menu new file mode 100644 index 0000000..a9d89fb --- /dev/null +++ b/ui_mp/pc_options_multi.menu @@ -0,0 +1,1153 @@ +{ + menuDef + { + name "pc_options_multi" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_look; + close pc_options_movement; + close pc_options_video; + close pc_options_voice; + exec "setfromdvar ui_name name"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_hint_display 1; + execnow "profile_menuDvarsSetup; resetViewport"; + setFocus buttonMulti; + } + onClose + { + setLocalVarBool ui_hint_display 0; + exec "setfromdvar name ui_name"; + } + onESC + { + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_OPTIONS_CAPS" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "buttonVideo" + text "@MENU_VIDEO" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_video; + } + } + itemDef + { + name "buttonAudio" + text "@MENU_AUDIO" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_audio; + } + } + itemDef + { + name "buttonControls" + text "@MENU_CONTROLS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_controls; + } + } + itemDef + { + name "buttonMulti" + text "@MENU_MULTIPLAYER" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_multi; + } + } + itemDef + { + name "buttonGame" + text "@MENU_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_game; + } + } + itemDef + { + name "buttonGamepad" + text "@MENU_GAMEPAD" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_gamepad; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "buttonDefaults" + text "@MENU_RESET_SYSTEM_DEFAULTS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open options_graphics_defaults; + } + } + itemDef + { + name "graphic_warning" + text "@MENU_GRAPHICS_WARNING" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(((!localvarbool("ui_brightness_hint_display")) && (!localvarbool("ui_hint_display"))) && menuisopen("pc_options_video")); + textscale 0.375 + } + itemDef + { + name "brightness_hint" + text "@MENU_BRIGHTNESS_HINT_PC" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_brightness_hint_display") && (!localvarbool("ui_hint_display"))); + textscale 0.375 + forecolor 1 0.8 0.4 1 + } + itemDef + { + name "hint_area" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_hint_display")); + textscale 0.375 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_Audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + } + itemDef + { + text "@MENU_MULTIPLAYER" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + text " " + rect 232 28 336 20 1 1 + style 1 + type 4 + visible 1 + textalign 4 + textalignx 160 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "ui_name" + maxChars 15 + maxPaintChars 15 + } + itemDef + { + text "@MENU_PLAYER_NAME" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 48 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MENU_DESC_MAXPACKETS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "cl_maxpackets" + dvarFloatList { "30" 30 "100" 100 "125" 125 } + } + itemDef + { + text "@MENU_MAXPACKETS" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MENU_DESC_SNAPS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "snaps" + dvarFloatList { "20" 20 "30" 30 } + } + itemDef + { + text "@MENU_SNAPS" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 88 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "drawLagometer" + } + itemDef + { + text "@MENU_LAGOMETER" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MENU_DESC_DRAWFPS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "cg_drawFPS" + dvarStrList { "Off" "Off" "Simple" "Simple" "SimpleRanges" "SimpleRanges" "Verbose" "Verbose" "Verbose+Viewpos" "Verbose+Viewpos" } + } + itemDef + { + text "@MENU_DRAWFPS" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + "@MENU_DESC_FPSLABELS"; + } + dvar "cg_drawFPSLabels" + } + itemDef + { + text "@MENU_FPSLABELS" + rect 232 128 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 148 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 148 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_STREAM_FRIENDLY_UI"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "ui_streamFriendly" + } + itemDef + { + text "@MENU_STREAMFRIENDLY_UI" + rect 232 148 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 168 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + "@MPUI_DESC_FRIENDNOTIFY"; + } + dvar "cl_notifyFriendState" + } + itemDef + { + text "@MENU_FRIENDNOTIFY" + rect 232 168 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + } +} diff --git a/ui_mp/pc_options_video.menu b/ui_mp/pc_options_video.menu new file mode 100644 index 0000000..4c7b9d3 --- /dev/null +++ b/ui_mp/pc_options_video.menu @@ -0,0 +1,1264 @@ +{ + menuDef + { + name "pc_options_video" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + execnow "profile_menuDvarsSetup; resetViewport"; + setLocalVarBool ui_hideBack 1; + if ((!localvarint("ui_showApply")) && (!localvarint("ui_showPicApply"))) + { + exec "exec options_graphics.cfg"; + exec "setfromdvar ui_r_fullscreen r_fullscreen"; + } + execnow "profile_menuDvarsSetup; resetViewport"; + setFocus buttonVideo; + } + onClose + { + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarBool ui_hideBack 0; + execOnDvarIntValue r_lodScaleRigid 2 "set r_lodScaleSkinned 4; set r_lodBiasSkinned -200; set r_lodBiasRigid -100"; + execOnDvarIntValue r_lodScaleRigid 1 "set r_lodScaleSkinned 1; set r_lodBiasSkinned 0; set r_lodBiasRigid 0"; + exec "setfromdvar r_fullscreen ui_r_fullscreen"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + onESC + { + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_OPTIONS_CAPS" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "buttonVideo" + text "@MENU_VIDEO" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_video; + } + } + itemDef + { + name "buttonAudio" + text "@MENU_AUDIO" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_audio; + } + } + itemDef + { + name "buttonControls" + text "@MENU_CONTROLS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_controls; + } + } + itemDef + { + name "buttonMulti" + text "@MENU_MULTIPLAYER" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_multi; + } + } + itemDef + { + name "buttonGame" + text "@MENU_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_game; + } + } + itemDef + { + name "buttonGamepad" + text "@MENU_GAMEPAD" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(0); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close controls_multi; + close main_controls; + close main_options; + close options_control_defaults; + close options_graphics; + close options_graphics_defaults; + close options_graphics_texture; + close options_multi; + close options_voice; + close pc_options_actions; + close pc_options_advanced_video; + close pc_options_audio; + close pc_options_controls; + close pc_options_game; + close pc_options_gamepad; + close pc_options_look; + close pc_options_movement; + close pc_options_multi; + close pc_options_video; + close pc_options_voice; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + open pc_options_gamepad; + } + } + itemDef + { + rect 0 147.5 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "buttonDefaults" + text "@MENU_RESET_SYSTEM_DEFAULTS" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open options_graphics_defaults; + } + } + itemDef + { + name "graphic_warning" + text "@MENU_GRAPHICS_WARNING" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(((!localvarbool("ui_brightness_hint_display")) && (!localvarbool("ui_hint_display"))) && menuisopen("pc_options_video")); + textscale 0.375 + } + itemDef + { + name "brightness_hint" + text "@MENU_BRIGHTNESS_HINT_PC" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_brightness_hint_display") && (!localvarbool("ui_hint_display"))); + textscale 0.375 + forecolor 1 0.8 0.4 1 + } + itemDef + { + name "hint_area" + rect 10 -160 206 240 1 3 + decoration + autowrapped + visible when(localvarbool("ui_hint_display")); + textscale 0.375 + exp text localvarstring("ui_hint_text"); + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + if ((((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showPicApply")) && (!localvarbool("ui_showApply"))) && (!localvarbool("ui_showAudioApply"))) + { + execnow "setfromdvar r_picmip ui_r_picmip"; + execnow "setfromdvar r_picmip_bump ui_r_picmip_bump"; + execnow "setfromdvar r_picmip_spec ui_r_picmip_spec"; + execnow "setfromdvar r_picmip_manual ui_r_picmip_manual"; + exec "wait; wait; r_applyPicmip"; + setLocalVarBool ui_showPicApply 0; + } + if (((!((((menuisopen("pc_options_advanced_video") || menuisopen("pc_options_video")) || menuisopen("pc_options_audio")) || menuisopen("pc_options_controls")) || menuisopen("pc_options_voice"))) && localvarbool("ui_showApply")) || localvarbool("ui_showAudioApply")) + { + open all_restart_popmenu; + } + execnow "profile_menuDvarsFinish; resetViewport"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + } + itemDef + { + text "@MENU_VIDEO" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 232 28 336 20 1 1 + style 1 + type 13 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_hint_display 1; + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MENU_GRAPHICS_WARNING"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "ui_r_mode" + dvarEnumList "r_mode" + } + itemDef + { + text "@MENU_VIDEO_MODE" + rect 232 28 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 48 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_D3D9EX"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + } + dvar "r_useD3D9Ex" + } + itemDef + { + text "@MENU_D3D9EX" + rect 232 48 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 68 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 68 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + exec "vid_xpos 0;vid_ypos 0"; + } + dvar "ui_r_fullscreen" + } + itemDef + { + text "@MENU_FULLSCREEN" + rect 232 68 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 88 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_NOBORDER"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + setLocalVarBool ui_showApply 1; + exec "vid_xpos 0;vid_ypos 0"; + } + dvar "r_noborder" + } + itemDef + { + text "@MENU_NOBORDER" + rect 232 88 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 108 336 20 1 1 + style 1 + type 11 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + if (menuisopen("pc_options_video")) + { + setLocalVarBool ui_brightness_hint_display 1; + } + else + { + setLocalVarBool ui_brightness_hint_display 0; + } + setLocalVarString ui_hint_text "@MPUI_DESC_NATIVECURSOR"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarBool ui_brightness_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "ui_nativeCursor" + } + itemDef + { + text "@MENU_NATIVECURSOR" + rect 232 108 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 128 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + rect 232 128 336 20 1 1 + style 1 + type 10 + visible 1 + disabled when((dvarbool(cl_ingame) || dvarbool(sv_running)) || inlobby()); + textalign 4 + textalignx 170 + textaligny 2 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setLocalVarBool ui_brightness_hint_display 1; + } + leaveFocus + { + setLocalVarBool ui_brightness_hint_display 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + execNow profile_menuDvarsFinish; + } + dvarFloat "r_gamma" 0.8 0.5 3 + } + itemDef + { + text "@MENU_BRIGHTNESS" + rect 232 128 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 422 128 344 20 1 1 + decoration + textalign 6 + textalignx -190 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + exp text dvarstring(r_gamma); + } + itemDef + { + rect 232 148 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MPUI_DESC_FOV"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + execNow profile_menuDvarsFinish; + } + dvar "cg_fov" + dvarFloatList { "65 (Default)" 65 "80" 80 "90" 90 "120" 120 } + } + itemDef + { + text "@MENU_FOV" + rect 232 148 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 168 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MPUI_DESC_FOVSCALE"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + execNow profile_menuDvarsFinish; + } + dvar "cg_fovscale" + dvarFloatList { "1 (Default)" 1 "1.1" 1.1 "1.2" 1.2 "1.3" 1.3 "1.4" 1.4 "1.5" 1.5 "1.6" 1.6 "1.7" 1.7 "1.8" 1.8 "1.9" 1.9 "2" 2 } + } + itemDef + { + text "@MENU_FOVSCALE" + rect 232 168 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 232 188 336 20 1 1 + style 1 + type 12 + visible 1 + disabled when(0); + textalign 4 + textalignx 170 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_hint_display 1; + setLocalVarString ui_hint_text "@MPUI_DESC_MAXFPS"; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_hint_display 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + } + dvar "com_maxfps" + dvarFloatList { "30" 30 "85 (Default)" 85 "125" 125 "250" 250 "333" 333 "Unlimited" 0 } + } + itemDef + { + text "@MENU_MAXFPS" + rect 232 188 336 20 1 1 + decoration + visible 1 + textalign 6 + textalignx -180 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + } + itemDef + { + rect 226 208 -392 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "line_horizontal" + } + itemDef + { + text "@MENU_ADVANCED_VIDEO" + rect 260 208 225 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_setting_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + open pc_options_advanced_video; + close self; + } + } + } +} diff --git a/ui_mp/pc_theater_menu.menu b/ui_mp/pc_theater_menu.menu new file mode 100644 index 0000000..ec6a8d8 --- /dev/null +++ b/ui_mp/pc_theater_menu.menu @@ -0,0 +1,461 @@ +{ + menuDef + { + name "pc_theater_menu" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + uiScript LoadArenas; + uiScript loadDemos; + setFoucs demoList; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MENU_THEATER_CAPS" + rect 0 4 260 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + exp rect x -90; + } + itemDef + { + rect 0 28 640 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.15 + background "white" + } + itemDef + { + rect -32 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -4 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 640 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 640 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 640 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 384 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -32 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -32 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect -242 28 242 356 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.7 + background "black" + } + itemDef + { + name "image" + rect -232 50 222 127 3 1 + style 3 + decoration + visible when(dvarstring(ui_demo_mapname) != ""); + textscale 0.55 + exp material "preview_" + dvarstring(ui_demo_mapname); + } + itemDef + { + name "image" + rect -232 50 222 127 3 1 + style 3 + decoration + visible when(dvarstring(ui_demo_mapname) == ""); + textscale 0.55 + exp material "loadscreen_mp_bonusmaps"; + } + itemDef + { + name "mapname" + rect -232 28 222 22 3 1 + decoration + visible 1 + textalign 4 + textscale 0.375 + textfont 9 + exp text dvarstring(ui_demo_mapname_localized); + } + itemDef + { + name "gametype" + rect -232 180 222 20 3 1 + decoration + autowrapped + visible 1 + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text dvarstring(ui_demo_gametype); + } + itemDef + { + name "author_label" + text "@MPUI_DEMO_AUTHOR" + rect -232 200 222 20 3 1 + decoration + autowrapped + visible 1 + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + name "author" + rect -232 200 222 20 3 1 + decoration + autowrapped + visible 1 + textalign 6 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text " " + dvarstring(ui_demo_author); + } + itemDef + { + name "length_label" + text "@MPUI_DEMO_LENGTH" + rect -232 220 222 20 3 1 + decoration + autowrapped + visible 1 + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + name "length" + rect -232 220 222 20 3 1 + decoration + autowrapped + visible 1 + textalign 6 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text " " + dvarstring(ui_demo_length); + } + itemDef + { + name "date_label" + text "@MPUI_DEMO_DATE" + rect -232 240 222 20 3 1 + decoration + autowrapped + visible 1 + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + name "date" + rect -232 240 222 20 3 1 + decoration + autowrapped + visible 1 + textalign 6 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text " " + dvarstring(ui_demo_date); + } + itemDef + { + name "play" + text "@MENU_PLAY" + group "mw2_button" + rect -242 -68 242 20 3 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -30 + textscale 0.375 + textfont 1 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + uiScript launchDemo; + } + } + itemDef + { + name "delete" + text "@MENU_DELETE" + group "mw2_button" + rect -242 -48 242 20 3 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -30 + textscale 0.375 + textfont 1 + backcolor 0.6 0.55 0.55 0.2 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor "0.6" "0.55" "0.55" "0.2"; + } + action + { + play mouse_click; + uiScript deleteDemo; + } + } + itemDef + { + name "demoList" + rect 0 28 260 356 1 1 + style 1 + type 6 + visible 1 + textalignx 6 + textscale 0.3 + textfont 1 + backcolor 0 0 0 0.5 + outlinecolor 0 0 0 0.6 + execKeyInt 13 + { + uiScript launchDemo; + } + elementwidth 260 + elementheight 16 + feeder 10 + columns 1 + 8 260 80 0 + doubleclick + { + uiScript launchDemo; + } + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/player_popup_party.menu b/ui_mp/player_popup_party.menu new file mode 100644 index 0000000..3a9a3a5 --- /dev/null +++ b/ui_mp/player_popup_party.menu @@ -0,0 +1,281 @@ +{ + menuDef + { + name "player_popup_party" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -150 -84 300 84 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -84 1708 480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 300 0 2 2 + style 3 + decoration + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 300 0 1 1 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -214 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -150 -148 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 150 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 150 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect 150 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -150 -84 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (3 * 20); + } + itemDef + { + text "@MPUI_PLAYER_OPTIONS" + rect -150 -84 300 24 2 2 + style 1 + decoration + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + name "player_mute" + text "@XBOXLIVE_PLAYER_MUTE" + group "mw2_popup_button" + rect -146 -40 292 20 2 2 + style 1 + type 1 + disabled when(dvarbool(party_iamselected) || (!dvarbool(party_playervisible))); + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + togglePlayerMute; + close self; + } + } + itemDef + { + name "player_kick" + text "@XBOXLIVE_KICK" + group "mw2_popup_button" + rect -146 -20 292 20 2 2 + style 1 + type 1 + disabled when(((!privatepartyhost()) || (!dvarbool(party_playervisible))) || dvarbool(party_iamselected)); + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + getKickPlayerQuestion; + close self; + } + } + } +} diff --git a/ui_mp/player_popup_privatematch.menu b/ui_mp/player_popup_privatematch.menu new file mode 100644 index 0000000..acb72b8 --- /dev/null +++ b/ui_mp/player_popup_privatematch.menu @@ -0,0 +1,281 @@ +{ + menuDef + { + name "player_popup_privatematch" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -150 -84 300 84 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -84 1708 480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 300 0 2 2 + style 3 + decoration + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 300 0 1 1 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -214 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -150 -148 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 150 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 150 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect 150 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -150 -84 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (3 * 20); + } + itemDef + { + text "@MPUI_PLAYER_OPTIONS" + rect -150 -84 300 24 2 2 + style 1 + decoration + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + name "player_mute" + text "@XBOXLIVE_PLAYER_MUTE" + group "mw2_popup_button" + rect -146 -40 292 20 2 2 + style 1 + type 1 + disabled when(dvarbool(party_iamselected) || (!dvarbool(party_playervisible))); + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + togglePlayerMute; + close self; + } + } + itemDef + { + name "player_kick" + text "@XBOXLIVE_KICK" + group "mw2_popup_button" + rect -146 -20 292 20 2 2 + style 1 + type 1 + disabled when(((menuisopen("menu_xboxlive_lobby") || (!privatepartyhost())) || (!dvarbool(party_playervisible))) || dvarbool(party_iamselected)); + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + getKickPlayerQuestion; + close self; + } + } + } +} diff --git a/ui_mp/player_popup_publiclobby.menu b/ui_mp/player_popup_publiclobby.menu new file mode 100644 index 0000000..004c18d --- /dev/null +++ b/ui_mp/player_popup_publiclobby.menu @@ -0,0 +1,292 @@ +{ + menuDef + { + name "player_popup_publiclobby" + rect -150 -64 300 64 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -544 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -544 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 64 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -64 1708 480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -64 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (2 * 20); + } + itemDef + { + rect -150 -64 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -64 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -64 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (2 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (2 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (2 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (2 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (2 * 20)); + } + itemDef + { + rect -64 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (2 * 20); + } + itemDef + { + text "@MPUI_PLAYER_OPTIONS" + rect 0 0 300 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + name "player_add_friend" + text "@MENU_FRIEND_ADD" + group "mw2_popup_button" + rect 6 24 292 20 2 2 + style 1 + type 1 + visible 1 + disabled when(1); + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + name "player_mute" + text "@XBOXLIVE_PLAYER_MUTE" + group "mw2_popup_button" + rect 6 44 292 20 2 2 + style 1 + type 1 + visible 1 + disabled when(dvarbool(party_iamselected) || (!dvarbool(party_playervisible))); + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + togglePlayerMute; + close self; + } + } + } +} diff --git a/ui_mp/playerdataread.menu b/ui_mp/playerdataread.menu new file mode 100644 index 0000000..5332a23 --- /dev/null +++ b/ui_mp/playerdataread.menu @@ -0,0 +1,73 @@ +{ + menuDef + { + name "playerdataread" + decoration + rect 0 0 0 0 0 0 + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + setLocalVarInt oldClassIndex localvarint("classIndex"); + setDvar ui_checkclass 0; + open resetclass; + setDvar ui_checkclass 1; + open resetclass; + setDvar ui_checkclass 2; + open resetclass; + setDvar ui_checkclass 3; + open resetclass; + setDvar ui_checkclass 4; + open resetclass; + setDvar ui_checkclass 5; + open resetclass; + setDvar ui_checkclass 6; + open resetclass; + setDvar ui_checkclass 7; + open resetclass; + setDvar ui_checkclass 8; + open resetclass; + setDvar ui_checkclass 9; + open resetclass; + setDvar ui_checkclass 10; + open resetclass; + setDvar ui_checkclass 11; + open resetclass; + setDvar ui_checkclass 12; + open resetclass; + setDvar ui_checkclass 13; + open resetclass; + setDvar ui_checkclass 14; + open resetclass; + setLocalVarInt classIndex localvarint("oldClassIndex"); + if ((!isitemunlocked(getplayerdata("killstreaks", 0))) && (getplayerdata("killstreaks", 0) != "none")) + { + setLocalVarString temp debugprint("Stats", ((("Killstreak " + getplayerdata("killstreaks", 0)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setPlayerData ( killstreaks , 0 , none ); + } + setPlayerData ( killstreakUnlocked , uav , true ); + if ((!isitemunlocked(getplayerdata("killstreaks", 1))) && (getplayerdata("killstreaks", 1) != "none")) + { + setLocalVarString temp debugprint("Stats", ((("Killstreak " + getplayerdata("killstreaks", 1)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setPlayerData ( killstreaks , 1 , none ); + } + setPlayerData ( killstreakUnlocked , airdrop , true ); + if ((!isitemunlocked(getplayerdata("killstreaks", 2))) && (getplayerdata("killstreaks", 2) != "none")) + { + setLocalVarString temp debugprint("Stats", ((("Killstreak " + getplayerdata("killstreaks", 2)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setPlayerData ( killstreaks , 2 , none ); + } + setPlayerData ( killstreakUnlocked , predator_missile , true ); + setLocalVarInt ui_tempVar getplayerdata("prestige") + 1; + setPlayerData ( challengeState , ch_prestige , localVarInt ( ui_tempVar ) ); + setLocalVarInt ui_tempVar getplayerdata("prestige"); + setPlayerData ( challengeProgress , ch_prestige , localVarInt ( ui_tempVar ) ); + if (getplayerdata("prestige") == 10) + { + setPlayerData ( challengeState , ch_prestige_10 , 2 ) setPlayerData ( challengeProgress , ch_prestige_10 , 1 ); + } + close self; + } + } +} diff --git a/ui_mp/popup_cac_assault_primary.menu b/ui_mp/popup_cac_assault_primary.menu new file mode 100644 index 0000000..1e8b1f2 --- /dev/null +++ b/ui_mp/popup_cac_assault_primary.menu @@ -0,0 +1,2581 @@ +{ + menuDef + { + name "popup_cac_assault_primary" + rect 0 0 854 204 1 1 + style 1 + backcolor 1 1 1 0 + forecolor 1 1 1 0 + focuscolor 1 1 1 1 + background "white" + outOfBoundsClick + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_assault_primary_tabDepth")); + exp rect Y localvarfloat("ui_popupYPos") + (localvarint("ui_tabDepth") * 20); + onOpen + { + setfocus cac_weapon_m4; + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") + 1; + setLocalVarInt ui_popup_cac_assault_primary_tabDepth localvarint("ui_tabDepth"); + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "m4") + { + setfocus cac_weapon_m4; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "famas") + { + setfocus cac_weapon_famas; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "scar") + { + setfocus cac_weapon_scar; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "tavor") + { + setfocus cac_weapon_tavor; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "fal") + { + setfocus cac_weapon_fal; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "m16") + { + setfocus cac_weapon_m16; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "masada") + { + setfocus cac_weapon_masada; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "fn2000") + { + setfocus cac_weapon_fn2000; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ak47") + { + setfocus cac_weapon_ak47; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ak47classic") + { + setfocus cac_weapon_ak47classic; + } + } + onClose + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") - 1; + } + onESC + { + close self; + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 854 184 1 1 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 4 + (10 * 20); + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 0.85 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + exp rect h 4 + (10 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 4 + (10 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 790 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 790 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 4 + (10 * 20); + } + itemDef + { + rect 790 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y 4 + (10 * 20); + } + itemDef + { + rect -64 0 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y 4 + (10 * 20); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y 4 + (10 * 20); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 4 + (10 * 20); + } + itemDef + { + rect -64 0 280 184 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0 + background "gradient_fadein" + exp rect h 4 + (10 * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab1Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab2Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab3Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab4Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab5Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + } + itemDef + { + name "cac_weapon_m4" + group "mw2_popup_button" + rect -64 4 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("m4")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 m4; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , m4 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "m4") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , m4 ); + setPlayerData ( weaponNew , m4 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "m4", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "m4", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "m4", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "m4", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "m4", 3); + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "m4") || getplayerdataanybooltrue("camoNew", "m4")) || getplayerdataanybooltrue("attachmentNew", "m4")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("m4") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_famas" + group "mw2_popup_button" + rect -64 24 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("famas")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 famas; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , famas , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "famas") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , famas ); + setPlayerData ( weaponNew , famas , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "famas", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "famas", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "famas", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "famas", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "famas", 3); + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "famas") || getplayerdataanybooltrue("camoNew", "famas")) || getplayerdataanybooltrue("attachmentNew", "famas")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("famas") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_scar" + group "mw2_popup_button" + rect -64 44 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("scar")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 scar; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , scar , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "scar") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , scar ); + setPlayerData ( weaponNew , scar , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "scar", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "scar", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "scar", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "scar", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "scar", 3); + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "scar") || getplayerdataanybooltrue("camoNew", "scar")) || getplayerdataanybooltrue("attachmentNew", "scar")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("scar") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_tavor" + group "mw2_popup_button" + rect -64 64 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("tavor")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 tavor; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , tavor , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "tavor") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , tavor ); + setPlayerData ( weaponNew , tavor , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "tavor", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "tavor", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "tavor", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "tavor", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "tavor", 3); + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "tavor") || getplayerdataanybooltrue("camoNew", "tavor")) || getplayerdataanybooltrue("attachmentNew", "tavor")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("tavor") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_fal" + group "mw2_popup_button" + rect -64 84 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("fal")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 fal; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , fal , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "fal") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , fal ); + setPlayerData ( weaponNew , fal , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "fal", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "fal", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "fal", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "fal", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "fal", 3); + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "fal") || getplayerdataanybooltrue("camoNew", "fal")) || getplayerdataanybooltrue("attachmentNew", "fal")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("fal") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_m16" + group "mw2_popup_button" + rect -64 104 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("m16")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 m16; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , m16 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "m16") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , m16 ); + setPlayerData ( weaponNew , m16 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "m16", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "m16", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "m16", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "m16", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "m16", 3); + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "m16") || getplayerdataanybooltrue("camoNew", "m16")) || getplayerdataanybooltrue("attachmentNew", "m16")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("m16") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_masada" + group "mw2_popup_button" + rect -64 124 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("masada")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 masada; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , masada , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "masada") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , masada ); + setPlayerData ( weaponNew , masada , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "masada", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "masada", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "masada", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "masada", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "masada", 3); + } + itemDef + { + rect 162 124 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "masada") || getplayerdataanybooltrue("camoNew", "masada")) || getplayerdataanybooltrue("attachmentNew", "masada")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 124 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("masada") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_fn2000" + group "mw2_popup_button" + rect -64 144 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("fn2000")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 fn2000; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , fn2000 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "fn2000") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , fn2000 ); + setPlayerData ( weaponNew , fn2000 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "fn2000", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "fn2000", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "fn2000", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "fn2000", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "fn2000", 3); + } + itemDef + { + rect 162 144 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "fn2000") || getplayerdataanybooltrue("camoNew", "fn2000")) || getplayerdataanybooltrue("attachmentNew", "fn2000")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 144 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("fn2000") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_ak47" + group "mw2_popup_button" + rect -64 164 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("ak47")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 ak47; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , ak47 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "ak47") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , ak47 ); + setPlayerData ( weaponNew , ak47 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "ak47", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "ak47", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "ak47", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "ak47", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "ak47", 3); + } + itemDef + { + rect 162 164 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "ak47") || getplayerdataanybooltrue("camoNew", "ak47")) || getplayerdataanybooltrue("attachmentNew", "ak47")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 164 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("ak47") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_ak47classic" + group "mw2_popup_button" + rect -64 184 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("ak47classic")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 ak47classic; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , ak47classic , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "ak47classic") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , ak47classic ); + setPlayerData ( weaponNew , ak47classic , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "ak47classic", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "ak47classic", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "ak47classic", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "ak47classic", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "ak47classic", 3); + } + itemDef + { + rect 162 184 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "ak47classic") || getplayerdataanybooltrue("camoNew", "ak47classic")) || getplayerdataanybooltrue("attachmentNew", "ak47classic")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 184 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("ak47classic") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + rect -56 0 200 204 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "small_box_lightfx" + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 3); + } + itemDef + { + rect -56 10 200 100 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 6); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/statstable.csv", 4, localvarstring("ui_selected_ref"), 7); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(!isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_selected_ref"), 2), 17); + } + itemDef + { + text "@PLATFORM_VIEW_CHALLENGES" + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref")) && (tablelookup("mp/challengeTable.csv", 6, localvarstring("ui_selected_ref"), 4) != "")); + textalign 4 + textalignx 4 + textaligny 144 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + text "@MPUI_ACCURACY" + rect -128 22 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_DAMAGE" + rect -128 48 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_RANGE" + rect -128 74 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_FIRE_RATE" + rect -128 100 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_MOBILITY" + rect -128 126 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + } +} diff --git a/ui_mp/popup_cac_handgun_secondary.menu b/ui_mp/popup_cac_handgun_secondary.menu new file mode 100644 index 0000000..e9b6321 --- /dev/null +++ b/ui_mp/popup_cac_handgun_secondary.menu @@ -0,0 +1,1626 @@ +{ + menuDef + { + name "popup_cac_handgun_secondary" + rect 0 0 854 184 1 1 + style 1 + backcolor 1 1 1 0 + forecolor 1 1 1 0 + focuscolor 1 1 1 1 + background "white" + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_handgun_secondary_tabDepth")); + exp rect Y localvarfloat("ui_popupYPos") + (localvarint("ui_tabDepth") * 20); + onOpen + { + setfocus cac_weapon_usp; + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") + 1; + setLocalVarInt ui_popup_cac_handgun_secondary_tabDepth localvarint("ui_tabDepth"); + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") == "usp") + { + setfocus cac_weapon_usp; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") == "coltanaconda") + { + setfocus cac_weapon_coltanaconda; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") == "beretta") + { + setfocus cac_weapon_beretta; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") == "deserteagle") + { + setfocus cac_weapon_deserteagle; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") == "deserteaglegold") + { + setfocus cac_weapon_deserteaglegold; + } + } + onClose + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") - 1; + } + onESC + { + close self; + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 854 184 1 1 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 0.85 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 790 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 790 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect 790 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -64 0 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 184 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0 + background "gradient_fadein" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab1Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab2Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab3Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab4Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab5Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + } + itemDef + { + name "cac_weapon_usp" + group "mw2_popup_button" + rect -64 4 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("usp")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 usp; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , usp , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "usp", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "usp", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "usp", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "usp", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "usp", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "usp", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") != "usp") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , usp ); + setPlayerData ( weaponNew , usp , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (1 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "usp", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "usp", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "usp", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "usp", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "usp", 3); + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "usp") || getplayerdataanybooltrue("camoNew", "usp")) || getplayerdataanybooltrue("attachmentNew", "usp")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("usp") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_coltanaconda" + group "mw2_popup_button" + rect -64 24 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("coltanaconda")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 coltanaconda; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , coltanaconda , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "coltanaconda", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "coltanaconda", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "coltanaconda", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "coltanaconda", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "coltanaconda", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "coltanaconda", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") != "coltanaconda") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , coltanaconda ); + setPlayerData ( weaponNew , coltanaconda , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (1 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "coltanaconda", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "coltanaconda", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "coltanaconda", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "coltanaconda", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "coltanaconda", 3); + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "coltanaconda") || getplayerdataanybooltrue("camoNew", "coltanaconda")) || getplayerdataanybooltrue("attachmentNew", "coltanaconda")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("coltanaconda") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_beretta" + group "mw2_popup_button" + rect -64 44 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("beretta")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 beretta; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , beretta , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "beretta", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "beretta", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "beretta", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "beretta", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "beretta", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "beretta", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") != "beretta") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , beretta ); + setPlayerData ( weaponNew , beretta , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (1 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "beretta", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "beretta", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "beretta", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "beretta", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "beretta", 3); + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "beretta") || getplayerdataanybooltrue("camoNew", "beretta")) || getplayerdataanybooltrue("attachmentNew", "beretta")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("beretta") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_deserteagle" + group "mw2_popup_button" + rect -64 64 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("deserteagle")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 deserteagle; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , deserteagle , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteagle", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteagle", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteagle", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteagle", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteagle", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteagle", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") != "deserteagle") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , deserteagle ); + setPlayerData ( weaponNew , deserteagle , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (1 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "deserteagle", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "deserteagle", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "deserteagle", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "deserteagle", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "deserteagle", 3); + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "deserteagle") || getplayerdataanybooltrue("camoNew", "deserteagle")) || getplayerdataanybooltrue("attachmentNew", "deserteagle")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("deserteagle") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_deserteaglegold" + group "mw2_popup_button" + rect -64 84 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("deserteaglegold")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 deserteaglegold; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , deserteaglegold , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") != "deserteaglegold") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , deserteaglegold ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , gold ); + setPlayerData ( weaponNew , deserteaglegold , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (1 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "deserteaglegold", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "deserteaglegold", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "deserteaglegold", 3); + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "deserteaglegold") || getplayerdataanybooltrue("camoNew", "deserteaglegold")) || getplayerdataanybooltrue("attachmentNew", "deserteaglegold")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("deserteaglegold") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + rect -56 0 200 184 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "small_box_lightfx" + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 3); + } + itemDef + { + rect -56 10 200 100 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 6); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/statstable.csv", 4, localvarstring("ui_selected_ref"), 7); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(!isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_selected_ref"), 2), 17); + } + itemDef + { + text "@PLATFORM_VIEW_CHALLENGES" + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref")) && (tablelookup("mp/challengeTable.csv", 6, localvarstring("ui_selected_ref"), 4) != "")); + textalign 4 + textalignx 4 + textaligny 144 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + text "@MPUI_ACCURACY" + rect -128 22 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_DAMAGE" + rect -128 48 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_RANGE" + rect -128 74 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_FIRE_RATE" + rect -128 100 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_MOBILITY" + rect -128 126 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 0); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 0); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 0); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 0); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + } +} diff --git a/ui_mp/popup_cac_primary_camo.menu b/ui_mp/popup_cac_primary_camo.menu new file mode 100644 index 0000000..61363f2 --- /dev/null +++ b/ui_mp/popup_cac_primary_camo.menu @@ -0,0 +1,2126 @@ +{ + menuDef + { + name "popup_cac_primary_camo" + rect -64 0 854 184 1 1 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + allowedBinding "+talk" + visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_primary_camo_tabDepth")); + exp rect Y localvarfloat("ui_popupYPos") + (localvarint("ui_tabDepth") * 20); + onOpen + { + if (((((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ak47classic") || (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ak74u")) || (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "m40a3")) || (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "peacekeeper")) || (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "dragunov")) + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") + 1; + setLocalVarInt ui_popup_cac_primary_camo_tabDepth localvarint("ui_tabDepth"); + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "none") + { + setfocus cac_camo_none; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "desert") + { + setfocus cac_camo_desert; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "arctic") + { + setfocus cac_camo_arctic; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "woodland") + { + setfocus cac_camo_woodland; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "digital") + { + setfocus cac_camo_digital; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "red_urban") + { + setfocus cac_camo_red_urban; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "blue_tiger") + { + setfocus cac_camo_blue_tiger; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "red_tiger") + { + setfocus cac_camo_red_tiger; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo") == "orange_fall") + { + setfocus cac_camo_orange_fall; + } + } + onClose + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") - 1; + } + onESC + { + close self; + } + execKeyInt 168 + { + if ((localvarstring("ui_selected_ref") != "none") && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + localvarstring("ui_selected_ref")))) + { + open menu_challenge_detail_popup; + } + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 854 184 1 1 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (8 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (8 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 790 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 790 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (8 * 20); + } + itemDef + { + rect 790 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (8 * 20)); + } + itemDef + { + rect -64 0 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (8 * 20)); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (8 * 20)); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (8 * 20); + } + itemDef + { + rect 0 0 280 184 1 1 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 0 + background "gradient_fadein" + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textscale 0.55 + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab1Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textscale 0.55 + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab2Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textscale 0.55 + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab3Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textscale 0.55 + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab4Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textscale 0.55 + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + } + itemDef + { + rect 0 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab5Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + } + itemDef + { + name "cac_camo_none" + group "mw2_popup_button" + rect 0 4 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "none")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 none; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "none"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , none , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "none", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "none", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "none", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "none", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "none", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "none", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , none , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "none", 2); + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "none")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "none"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_desert" + group "mw2_popup_button" + rect 0 24 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "desert")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 desert; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "desert"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , desert , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "desert", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "desert", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "desert", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "desert", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "desert", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "desert", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , desert , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , desert ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "desert", 2); + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "desert")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "desert"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_arctic" + group "mw2_popup_button" + rect 0 44 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "arctic")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 arctic; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "arctic"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , arctic , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "arctic", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "arctic", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "arctic", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "arctic", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "arctic", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "arctic", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , arctic , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , arctic ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "arctic", 2); + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "arctic")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "arctic"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_woodland" + group "mw2_popup_button" + rect 0 64 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "woodland")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 woodland; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "woodland"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , woodland , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "woodland", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "woodland", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "woodland", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "woodland", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "woodland", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "woodland", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , woodland , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , woodland ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "woodland", 2); + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "woodland")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "woodland"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_digital" + group "mw2_popup_button" + rect 0 84 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "digital")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 digital; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "digital"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , digital , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "digital", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "digital", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "digital", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "digital", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "digital", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "digital", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , digital , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , digital ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "digital", 2); + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "digital")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "digital"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_red_urban" + group "mw2_popup_button" + rect 0 104 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "red_urban")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 red_urban; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "red_urban"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , red_urban , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "red_urban", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "red_urban", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "red_urban", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "red_urban", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "red_urban", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "red_urban", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , red_urban , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , red_urban ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "red_urban", 2); + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "red_urban")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "red_urban"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_blue_tiger" + group "mw2_popup_button" + rect 0 124 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "blue_tiger")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 blue_tiger; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "blue_tiger"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , blue_tiger , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "blue_tiger", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "blue_tiger", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "blue_tiger", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "blue_tiger", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "blue_tiger", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "blue_tiger", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , blue_tiger , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , blue_tiger ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "blue_tiger", 2); + } + itemDef + { + rect 162 124 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "blue_tiger")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 124 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "blue_tiger"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_red_tiger" + group "mw2_popup_button" + rect 0 144 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "red_tiger")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 red_tiger; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "red_tiger"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , red_tiger , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "red_tiger", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "red_tiger", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "red_tiger", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "red_tiger", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "red_tiger", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "red_tiger", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , red_tiger , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , red_tiger ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "red_tiger", 2); + } + itemDef + { + rect 162 144 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "red_tiger")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 144 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "red_tiger"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_camo_orange_fall" + group "mw2_popup_button" + rect 0 164 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "orange_fall")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 orange_fall; + setLocalVarString ui_weapon_ref getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString ui_unlock_ref (localvarstring("ui_weapon_ref") + " ") + "orange_fall"; + setLocalVarString ui_challenge_ref tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_unlock_ref"), 3); + setLocalVarInt ui_challenge_state 1; + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_2")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 2; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_3")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 3; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_4")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 4; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_5")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 5; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_6")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 6; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_7")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 7; + } + if (localvarstring("ui_challenge_ref") == (("ch_expert_" + localvarstring("ui_weapon_ref")) + "_8")) + { + setLocalVarString ui_challenge_ref "ch_expert_" + localvarstring("ui_weapon_ref"); + setLocalVarInt ui_challenge_state 8; + } + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , orange_fall , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/camoTable.csv", 1, "orange_fall", 2); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/camoTable.csv", 1, "orange_fall", 2); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/camoTable.csv", 1, "orange_fall", 2); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/camoTable.csv", 1, "orange_fall", 2); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/camoTable.csv", 1, "orange_fall", 2); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/camoTable.csv", 1, "orange_fall", 2); + } + setLocalVarString tempName getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setPlayerData ( camoNew , localVarString ( tempName ) , orange_fall , false ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , orange_fall ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + exp text "@" + tablelookup("mp/camoTable.csv", 1, "orange_fall", 2); + } + itemDef + { + rect 162 164 40 20 1 1 + style 3 + decoration + visible when(1 && getplayerdata("camoNew", getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), "orange_fall")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 164 40 20 1 1 + style 3 + decoration + visible when(1 && (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + "orange_fall"))); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + rect 0 0 200 184 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "small_box_lightfx" + } + itemDef + { + rect 16 0 200 184 2 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + exp text "@" + tablelookup("mp/camoTable.csv", 1, localvarstring("ui_selected_ref"), 2); + } + itemDef + { + rect 16 24 -300 100 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("ui_selected_ref"), 4); + } + itemDef + { + rect 16 24 -300 100 2 1 + style 3 + decoration + visible when(localvarstring("ui_selected_ref") == "none"); + textscale 0.55 + forecolor 0 0 0 0.5 + exp material "ui_camoskin_woodland"; + } + itemDef + { + rect 16 124 400 20 2 1 + decoration + autowrapped + visible when(isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.35 + forecolor 1 1 1 0.65 + background "black" + exp text "@" + tablelookup("mp/camoTable.csv", 1, localvarstring("ui_selected_ref"), 3); + } + itemDef + { + text "@MPUI_UNLOCKED_BY_CHALLENGE_PRE" + rect 16 124 400 20 2 1 + decoration + autowrapped + visible when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + rect 16 124 400 20 2 1 + decoration + autowrapped + visible when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 20 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text locstring("@" + tablelookup("mp/allChallengesTable.csv", 0, localvarstring("ui_challenge_ref"), 1)) + locstring((("@" + tablelookup("mp/allChallengesTable.csv", 0, localvarstring("ui_challenge_ref"), 3)) + "_") + localvarint("ui_challenge_state")); + } + itemDef + { + text "@PLATFORM_VIEW_CHALLENGE_DETAILS" + rect 16 124 400 20 2 1 + decoration + autowrapped + visible when(!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 40 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + } +} diff --git a/ui_mp/popup_cac_smg_primary.menu b/ui_mp/popup_cac_smg_primary.menu new file mode 100644 index 0000000..e1ab06e --- /dev/null +++ b/ui_mp/popup_cac_smg_primary.menu @@ -0,0 +1,2008 @@ +{ + menuDef + { + name "popup_cac_smg_primary" + rect 0 0 854 184 1 1 + style 1 + backcolor 1 1 1 0 + forecolor 1 1 1 0 + focuscolor 1 1 1 1 + background "white" + outOfBoundsClick + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_smg_primary_tabDepth")); + exp rect Y localvarfloat("ui_popupYPos") + (localvarint("ui_tabDepth") * 20); + onOpen + { + setfocus cac_weapon_mp5k; + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") + 1; + setLocalVarInt ui_popup_cac_smg_primary_tabDepth localvarint("ui_tabDepth"); + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "mp5k") + { + setfocus cac_weapon_mp5k; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ump45") + { + setfocus cac_weapon_ump45; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "kriss") + { + setfocus cac_weapon_kriss; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "p90") + { + setfocus cac_weapon_p90; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "uzi") + { + setfocus cac_weapon_uzi; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "ak74u") + { + setfocus cac_weapon_ak74u; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "peacekeeper") + { + setfocus cac_weapon_peacekeeper; + } + } + onClose + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") - 1; + } + onESC + { + close self; + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 854 184 1 1 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 0.85 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 790 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 790 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect 790 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -64 0 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 184 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0 + background "gradient_fadein" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab1Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab2Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab3Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab4Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab5Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + } + itemDef + { + name "cac_weapon_mp5k" + group "mw2_popup_button" + rect -64 4 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("mp5k")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 mp5k; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , mp5k , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "mp5k", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "mp5k", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "mp5k", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "mp5k", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "mp5k", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "mp5k", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "mp5k") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , mp5k ); + setPlayerData ( weaponNew , mp5k , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "mp5k", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "mp5k", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "mp5k", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "mp5k", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "mp5k", 3); + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "mp5k") || getplayerdataanybooltrue("camoNew", "mp5k")) || getplayerdataanybooltrue("attachmentNew", "mp5k")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("mp5k") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_ump45" + group "mw2_popup_button" + rect -64 24 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("ump45")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 ump45; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , ump45 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "ump45", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "ump45", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "ump45", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "ump45", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "ump45", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "ump45", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "ump45") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , ump45 ); + setPlayerData ( weaponNew , ump45 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "ump45", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "ump45", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "ump45", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "ump45", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "ump45", 3); + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "ump45") || getplayerdataanybooltrue("camoNew", "ump45")) || getplayerdataanybooltrue("attachmentNew", "ump45")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("ump45") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_kriss" + group "mw2_popup_button" + rect -64 44 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("kriss")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 kriss; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , kriss , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "kriss", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "kriss", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "kriss", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "kriss", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "kriss", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "kriss", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "kriss") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , kriss ); + setPlayerData ( weaponNew , kriss , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "kriss", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "kriss", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "kriss", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "kriss", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "kriss", 3); + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "kriss") || getplayerdataanybooltrue("camoNew", "kriss")) || getplayerdataanybooltrue("attachmentNew", "kriss")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("kriss") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_p90" + group "mw2_popup_button" + rect -64 64 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("p90")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 p90; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , p90 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "p90", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "p90", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "p90", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "p90", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "p90", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "p90", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "p90") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , p90 ); + setPlayerData ( weaponNew , p90 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "p90", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "p90", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "p90", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "p90", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "p90", 3); + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "p90") || getplayerdataanybooltrue("camoNew", "p90")) || getplayerdataanybooltrue("attachmentNew", "p90")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("p90") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_uzi" + group "mw2_popup_button" + rect -64 84 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("uzi")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 uzi; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , uzi , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "uzi", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "uzi", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "uzi", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "uzi", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "uzi", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "uzi", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "uzi") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , uzi ); + setPlayerData ( weaponNew , uzi , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "uzi", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "uzi", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "uzi", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "uzi", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "uzi", 3); + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "uzi") || getplayerdataanybooltrue("camoNew", "uzi")) || getplayerdataanybooltrue("attachmentNew", "uzi")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("uzi") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_ak74u" + group "mw2_popup_button" + rect -64 104 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("ak74u")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 ak74u; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , ak74u , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "ak74u", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "ak74u", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "ak74u", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "ak74u", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "ak74u", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "ak74u", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "ak74u") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , ak74u ); + setPlayerData ( weaponNew , ak74u , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "ak74u", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "ak74u", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "ak74u", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "ak74u", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "ak74u", 3); + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "ak74u") || getplayerdataanybooltrue("camoNew", "ak74u")) || getplayerdataanybooltrue("attachmentNew", "ak74u")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("ak74u") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_peacekeeper" + group "mw2_popup_button" + rect -64 124 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("peacekeeper")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 peacekeeper; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , peacekeeper , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "peacekeeper", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "peacekeeper", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "peacekeeper", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "peacekeeper", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "peacekeeper", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "peacekeeper", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "peacekeeper") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , peacekeeper ); + setPlayerData ( weaponNew , peacekeeper , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "peacekeeper", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "peacekeeper", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "peacekeeper", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "peacekeeper", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "peacekeeper", 3); + } + itemDef + { + rect 162 124 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "peacekeeper") || getplayerdataanybooltrue("camoNew", "peacekeeper")) || getplayerdataanybooltrue("attachmentNew", "peacekeeper")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 124 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("peacekeeper") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + rect -56 0 200 184 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "small_box_lightfx" + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 3); + } + itemDef + { + rect -56 10 200 100 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 6); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/statstable.csv", 4, localvarstring("ui_selected_ref"), 7); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(!isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_selected_ref"), 2), 17); + } + itemDef + { + text "@PLATFORM_VIEW_CHALLENGES" + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref")) && (tablelookup("mp/challengeTable.csv", 6, localvarstring("ui_selected_ref"), 4) != "")); + textalign 4 + textalignx 4 + textaligny 144 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + text "@MPUI_ACCURACY" + rect -128 22 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_DAMAGE" + rect -128 48 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_RANGE" + rect -128 74 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_FIRE_RATE" + rect -128 100 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_MOBILITY" + rect -128 126 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + } +} diff --git a/ui_mp/popup_cac_sniper_primary.menu b/ui_mp/popup_cac_sniper_primary.menu new file mode 100644 index 0000000..5097474 --- /dev/null +++ b/ui_mp/popup_cac_sniper_primary.menu @@ -0,0 +1,1817 @@ +{ + menuDef + { + name "popup_cac_sniper_primary" + rect 0 0 854 184 1 1 + style 1 + backcolor 1 1 1 0 + forecolor 1 1 1 0 + focuscolor 1 1 1 1 + background "white" + outOfBoundsClick + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_sniper_primary_tabDepth")); + exp rect Y localvarfloat("ui_popupYPos") + (localvarint("ui_tabDepth") * 20); + onOpen + { + setfocus cac_weapon_cheytac; + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") + 1; + setLocalVarInt ui_popup_cac_sniper_primary_tabDepth localvarint("ui_tabDepth"); + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "cheytac") + { + setfocus cac_weapon_cheytac; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "barrett") + { + setfocus cac_weapon_barrett; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "wa2000") + { + setfocus cac_weapon_wa2000; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "m21") + { + setfocus cac_weapon_m21; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "m40a3") + { + setfocus cac_weapon_m40a3; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "dragunov") + { + setfocus cac_weapon_dragunov; + } + } + onClose + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") - 1; + } + onESC + { + close self; + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 854 184 1 1 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 0.85 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 790 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 790 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect 790 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -64 0 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 184 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0 + background "gradient_fadein" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab1Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab2Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab3Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab4Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab5Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + } + itemDef + { + name "cac_weapon_cheytac" + group "mw2_popup_button" + rect -64 4 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("cheytac")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 cheytac; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , cheytac , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "cheytac", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "cheytac", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "cheytac", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "cheytac", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "cheytac", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "cheytac", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "cheytac") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , cheytac ); + setPlayerData ( weaponNew , cheytac , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "cheytac", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "cheytac", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "cheytac", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "cheytac", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "cheytac", 3); + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "cheytac") || getplayerdataanybooltrue("camoNew", "cheytac")) || getplayerdataanybooltrue("attachmentNew", "cheytac")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("cheytac") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_barrett" + group "mw2_popup_button" + rect -64 24 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("barrett")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 barrett; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , barrett , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "barrett", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "barrett", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "barrett", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "barrett", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "barrett", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "barrett", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "barrett") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , barrett ); + setPlayerData ( weaponNew , barrett , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "barrett", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "barrett", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "barrett", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "barrett", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "barrett", 3); + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "barrett") || getplayerdataanybooltrue("camoNew", "barrett")) || getplayerdataanybooltrue("attachmentNew", "barrett")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 24 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("barrett") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_wa2000" + group "mw2_popup_button" + rect -64 44 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("wa2000")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 wa2000; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , wa2000 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "wa2000", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "wa2000", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "wa2000", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "wa2000", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "wa2000", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "wa2000", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "wa2000") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , wa2000 ); + setPlayerData ( weaponNew , wa2000 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "wa2000", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "wa2000", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "wa2000", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "wa2000", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "wa2000", 3); + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "wa2000") || getplayerdataanybooltrue("camoNew", "wa2000")) || getplayerdataanybooltrue("attachmentNew", "wa2000")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 44 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("wa2000") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_m21" + group "mw2_popup_button" + rect -64 64 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("m21")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 m21; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , m21 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "m21", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "m21", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "m21", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "m21", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "m21", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "m21", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "m21") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , m21 ); + setPlayerData ( weaponNew , m21 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "m21", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "m21", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "m21", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "m21", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "m21", 3); + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "m21") || getplayerdataanybooltrue("camoNew", "m21")) || getplayerdataanybooltrue("attachmentNew", "m21")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 64 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("m21") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_m40a3" + group "mw2_popup_button" + rect -64 84 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("m40a3")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 m40a3; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , m40a3 , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "m40a3", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "m40a3", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "m40a3", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "m40a3", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "m40a3", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "m40a3", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "m40a3") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , m40a3 ); + setPlayerData ( weaponNew , m40a3 , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "m40a3", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "m40a3", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "m40a3", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "m40a3", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "m40a3", 3); + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "m40a3") || getplayerdataanybooltrue("camoNew", "m40a3")) || getplayerdataanybooltrue("attachmentNew", "m40a3")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("m40a3") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + name "cac_weapon_dragunov" + group "mw2_popup_button" + rect -64 104 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("dragunov")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 dragunov; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , dragunov , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "dragunov", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "dragunov", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "dragunov", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "dragunov", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "dragunov", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "dragunov", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "dragunov") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , dragunov ); + setPlayerData ( weaponNew , dragunov , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "dragunov", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "dragunov", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "dragunov", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "dragunov", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "dragunov", 3); + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "dragunov") || getplayerdataanybooltrue("camoNew", "dragunov")) || getplayerdataanybooltrue("attachmentNew", "dragunov")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 104 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("dragunov") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + rect -56 0 200 184 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "small_box_lightfx" + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 3); + } + itemDef + { + rect -56 10 200 100 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 6); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/statstable.csv", 4, localvarstring("ui_selected_ref"), 7); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(!isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_selected_ref"), 2), 17); + } + itemDef + { + text "@PLATFORM_VIEW_CHALLENGES" + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref")) && (tablelookup("mp/challengeTable.csv", 6, localvarstring("ui_selected_ref"), 4) != "")); + textalign 4 + textalignx 4 + textaligny 144 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + text "@MPUI_ACCURACY" + rect -128 22 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_DAMAGE" + rect -128 48 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_RANGE" + rect -128 74 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_FIRE_RATE" + rect -128 100 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_MOBILITY" + rect -128 126 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + } +} diff --git a/ui_mp/popup_cac_weapon_primary.menu b/ui_mp/popup_cac_weapon_primary.menu new file mode 100644 index 0000000..eaf6fd7 --- /dev/null +++ b/ui_mp/popup_cac_weapon_primary.menu @@ -0,0 +1,862 @@ +{ + menuDef + { + name "popup_cac_weapon_primary" + rect 0 0 854 124 1 1 + style 1 + backcolor 1 1 1 0 + forecolor 1 1 1 0 + focuscolor 1 1 1 1 + background "white" + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_weapon_primary_tabDepth")); + exp rect Y localvarfloat("ui_popupYPos") + (localvarint("ui_tabDepth") * 20); + onOpen + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") + 1; + setLocalVarInt ui_popup_cac_weapon_primary_tabDepth localvarint("ui_tabDepth"); + if (tablelookup("mp/statsTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), 2) == "weapon_assault") + { + setfocus cac_primary_assault; + } + if (tablelookup("mp/statsTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), 2) == "weapon_smg") + { + setfocus cac_primary_smg; + } + if (tablelookup("mp/statsTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), 2) == "weapon_lmg") + { + setfocus cac_primary_lmg; + } + if (tablelookup("mp/statsTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"), 2) == "weapon_sniper") + { + setfocus cac_primary_sniper; + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "riotshield") + { + setfocus cac_primary_riotshield; + } + } + onClose + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") - 1; + } + onESC + { + close self; + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 854 184 1 1 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 4 + (6 * 20); + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 0.85 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + exp rect h 4 + (6 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 4 + (6 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 790 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 790 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 4 + (6 * 20); + } + itemDef + { + rect 790 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y 4 + (6 * 20); + } + itemDef + { + rect -64 0 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y 4 + (6 * 20); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y 4 + (6 * 20); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 4 + (6 * 20); + } + itemDef + { + rect -64 0 280 184 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0 + background "gradient_fadein" + exp rect h 4 + (6 * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab1Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab2Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab3Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab4Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab5Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + } + itemDef + { + name "cac_primary_assault" + text "@MENU_ASSAULT_RIFLES_CAPS" + group "mw2_popup_button" + rect -64 4 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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_info_name "@MENU_ASSAULT_RIFLES_CAPS"; + setLocalVarString ui_info_desc @; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@MENU_ASSAULT_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@MENU_ASSAULT_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@MENU_ASSAULT_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@MENU_ASSAULT_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@MENU_ASSAULT_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@MENU_ASSAULT_RIFLES_CAPS"; + } + open popup_cac_assault_primary; + } + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(weaponclassnew("assault")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_primary_smg" + text "@MENU_SMGS_CAPS" + group "mw2_popup_button" + rect -64 24 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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_info_name "@MENU_SMGS_CAPS"; + setLocalVarString ui_info_desc @; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@MENU_SMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@MENU_SMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@MENU_SMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@MENU_SMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@MENU_SMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@MENU_SMGS_CAPS"; + } + open popup_cac_smg_primary; + } + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(weaponclassnew("smg")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_primary_lmg" + text "@MENU_LMGS_CAPS" + group "mw2_popup_button" + rect -64 44 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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_info_name "@MENU_LMGS_CAPS"; + setLocalVarString ui_info_desc @; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@MENU_LMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@MENU_LMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@MENU_LMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@MENU_LMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@MENU_LMGS_CAPS"; + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@MENU_LMGS_CAPS"; + } + open popup_cac_lmg_primary; + } + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(weaponclassnew("lmg")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_primary_sniper" + text "@MENU_SNIPER_RIFLES_CAPS" + group "mw2_popup_button" + rect -64 64 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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_info_name "@MENU_SNIPER_RIFLES_CAPS"; + setLocalVarString ui_info_desc @; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@MENU_SNIPER_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@MENU_SNIPER_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@MENU_SNIPER_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@MENU_SNIPER_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@MENU_SNIPER_RIFLES_CAPS"; + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@MENU_SNIPER_RIFLES_CAPS"; + } + open popup_cac_sniper_primary; + } + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(weaponclassnew("sniper")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + name "cac_primary_riotshield" + text "@MENU_RIOT_SHIELD_CAPS" + group "mw2_popup_button" + rect -64 84 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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_info_name "@" + tablelookup("mp/statsTable.csv", 4, "riotshield", 3); + setLocalVarString ui_info_desc "@" + tablelookup("mp/statstable.csv", 4, "riotshield", 7); + setLocalVarString ui_info_icon tablelookup("mp/statsTable.csv", 4, "riotshield", 6); + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + } + action + { + play mouse_click; + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "riotshield") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , riotshield ); + setPlayerData ( weaponNew , riotshield , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "riotshield", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "riotshield", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + close self; + close popup_cac_weapon_primary; + close popup_primary_attachments close popup_secondary_attachments close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + itemDef + { + rect 162 84 40 20 1 1 + style 3 + decoration + visible when(weaponclassnew("weapon_shield")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect -56 0 200 124 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "small_box_lightfx" + } + itemDef + { + rect -56 0 200 124 2 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + exp text localvarstring("ui_info_name"); + } + itemDef + { + rect -56 10 200 100 2 1 + style 3 + decoration + visible when(localvarstring("ui_info_icon") != ""); + textscale 0.55 + exp material localvarstring("ui_info_icon"); + } + itemDef + { + rect -56 0 200 124 2 1 + decoration + autowrapped + visible when(isitemunlocked(("weaponRefString" + " ") + "refString")); + textalign 4 + textalignx 4 + textaligny 84 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text localvarstring("ui_info_desc"); + } + } +} diff --git a/ui_mp/popup_customclan.menu b/ui_mp/popup_customclan.menu new file mode 100644 index 0000000..31c23bf --- /dev/null +++ b/ui_mp/popup_customclan.menu @@ -0,0 +1,249 @@ +{ + menuDef + { + name "popup_customclan" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setFocus customclanEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 84 2 2 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 300 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 84 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -64 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -64 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect 0 0 300 18 2 2 + decoration + visible 1 + textalign 1 + textaligny 18 + textscale 0.375 + textfont 9 + exp text "@MPUI_CLAN_TAG"; + } + itemDef + { + name "customclanEntry" + text " " + rect 10 32 280 20 2 2 + style 1 + type 4 + visible 1 + textalignx 5 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.3 + accept + { + close self; + } + dvar "clanName" + maxChars 4 + maxPaintChars 4 + } + itemDef + { + text "@MENU_CLOSE" + group "mw2_popup_button" + rect 6 64 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/popup_customtitle.menu b/ui_mp/popup_customtitle.menu new file mode 100644 index 0000000..b09b939 --- /dev/null +++ b/ui_mp/popup_customtitle.menu @@ -0,0 +1,249 @@ +{ + menuDef + { + name "popup_customtitle" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setFocus customtitleEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 84 2 2 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 300 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 84 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -64 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -64 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect 0 0 300 18 2 2 + decoration + visible 1 + textalign 1 + textaligny 18 + textscale 0.375 + textfont 9 + exp text "@MENU_CUSTOM_TITLE"; + } + itemDef + { + name "customtitleEntry" + text " " + rect 10 32 280 20 2 2 + style 1 + type 4 + visible 1 + textalignx 5 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.3 + accept + { + close self; + } + dvar "customtitle" + maxChars 15 + maxPaintChars 15 + } + itemDef + { + text "@MENU_CLOSE" + group "mw2_popup_button" + rect 6 64 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/popup_friends.menu b/ui_mp/popup_friends.menu new file mode 100644 index 0000000..5b59588 --- /dev/null +++ b/ui_mp/popup_friends.menu @@ -0,0 +1,259 @@ +{ + menuDef + { + name "popup_friends" + rect -250 -184 520 370 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + uiScript LoadFriends; + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + execKey "f" + { + play mouse_click; + close self; + } + itemDef + { + rect 0 0 520 370 2 2 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 520 370 2 2 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 520 370 2 2 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 520 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 520 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 520 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 520 0 64 370 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 520 370 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 370 520 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -64 370 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -64 0 64 370 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect 0 0 520 18 2 2 + style 1 + decoration + visible 1 + textalign 1 + textaligny 18 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.7 + background "gradient_fadein" + exp text "@MENU_FRIENDS"; + } + itemDef + { + name "friendsList" + rect 0 22 520 326 0 0 + style 1 + type 6 + visible 1 + textscale 0.25 + textfont 1 + backcolor 0 0 0 0.5 + outlinecolor 0 0 0 0.6 + elementwidth 120 + elementheight 16 + feeder 61 + columns 3 + 8 16 4 0 + 42 178 51 0 + 226 263 52 0 + doubleclick + { + uiScript JoinFriend; + } + } + itemDef + { + text "@MENU_CLOSE" + group "mw2_popup_button" + rect 6 350 512 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/popup_gamesetup.menu b/ui_mp/popup_gamesetup.menu new file mode 100644 index 0000000..8547f41 --- /dev/null +++ b/ui_mp/popup_gamesetup.menu @@ -0,0 +1,434 @@ +{ + menuDef + { + name "popup_gamesetup" + rect 0 0 280 0 1 1 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + exp rect Y localvarfloat("ui_popup_gamesetup_ypos"); + onOpen + { + setLocalVarFloat ui_popup_gamesetup_ypos localvarfloat("ui_popupYPos"); + setLocalVarInt ui_leftPopup 1; + if (dvarbool(useonlinestats)) + { + exec "set ui_useonlinestats_button_name @PLATFORM_USEONLINESTATS_TRUE"; + } + else + { + exec "set ui_useonlinestats_button_name @PLATFORM_USEONLINESTATS_FALSE"; + } + if (dvarint(sv_privateClients) == dvarint(party_maxPlayers)) + { + exec "set ui_jip_button_name @MPUI_JOININPROGRESS_NOT_ALLOWED"; + } + else + { + exec "set ui_jip_button_name @MPUI_JOININPROGRESS_ALLOWED"; + } + } + onClose + { + setLocalVarInt ui_leftPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 280 0 1 1 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 24 + (4 * 20); + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 280 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (4 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 280 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (4 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 280 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 216 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 216 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (4 * 20); + } + itemDef + { + rect 216 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (4 * 20)); + } + itemDef + { + rect -64 0 280 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (4 * 20)); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (4 * 20)); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (4 * 20); + } + itemDef + { + rect 216 0 -256 0 1 1 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.35 0.35 0.35 1 + background "gradient_slow_fadein" + exp rect h 24 + (4 * 20); + } + itemDef + { + text "@MENU_GAME_SETUP_CAPS" + rect -64 0 280 22 1 1 + style 1 + decoration + visible 1 + textalign 6 + textalignx -4 + textscale 0.375 + textfont 9 + backcolor 1 1 1 0.25 + background "gradient_fadein" + } + itemDef + { + name "settings_change_map" + text "@MENU_CHANGE_MAP_CAPS" + group "mw2_popup_button" + rect -64 24 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_popup_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + } + action + { + play mouse_click; + open settings_map; + } + } + itemDef + { + name "settings_change_gamemode" + text "@MENU_CHANGE_GAME_MODE_CAPS" + group "mw2_popup_button" + rect -64 44 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_popup_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + } + action + { + play mouse_click; + open settings_gametype; + } + } + itemDef + { + name "settings_change_gamerules" + text "@MENU_CHANGE_GAME_RULES_CAPS" + group "mw2_popup_button" + rect -64 64 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_popup_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + } + action + { + play mouse_click; + if (dvarstring(ui_gametype) == "arena") + { + open settings_quick_arena; + } + if (dvarstring(ui_gametype) == "war") + { + open settings_quick_war; + } + if (dvarstring(ui_gametype) == "sd") + { + open settings_quick_sd; + } + if (dvarstring(ui_gametype) == "sab") + { + open settings_quick_sab; + } + if (dvarstring(ui_gametype) == "dm") + { + open settings_quick_dm; + } + if (dvarstring(ui_gametype) == "dom") + { + open settings_quick_dom; + } + if (dvarstring(ui_gametype) == "ctf") + { + open settings_quick_ctf; + } + if (dvarstring(ui_gametype) == "koth") + { + open settings_quick_koth; + } + if (dvarstring(ui_gametype) == "oneflag") + { + open settings_quick_oneflag; + } + if (dvarstring(ui_gametype) == "dd") + { + open settings_quick_dd; + } + } + } + itemDef + { + name "settings_offlineoptions" + group "mw2_popup_button" + rect -64 84 336 20 1 1 + style 1 + type 1 + visible when((dvarbool(systemlink) || dvarbool(splitscreen)) && dvarbool(iwnet_allclientsauthed)); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_popup_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + } + action + { + play mouse_click; + if (dvarbool(useonlinestats)) + { + exec "set useonlinestats 0"; + exec "set ui_useonlinestats_button_name @PLATFORM_USEONLINESTATS_FALSE"; + } + else + { + open popup_statswarning; + } + } + exp text dvarstring(ui_useonlinestats_button_name); + } + } +} diff --git a/ui_mp/popup_joinpassword.menu b/ui_mp/popup_joinpassword.menu new file mode 100644 index 0000000..9d6f9ef --- /dev/null +++ b/ui_mp/popup_joinpassword.menu @@ -0,0 +1,249 @@ +{ + menuDef + { + name "popup_joinpassword" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setFocus passwordEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 84 2 2 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 300 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 84 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -64 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -64 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect 0 0 300 18 2 2 + decoration + visible 1 + textalign 1 + textaligny 18 + textscale 0.375 + textfont 9 + exp text "@MENU_PASSWORD"; + } + itemDef + { + name "passwordEntry" + text " " + rect 10 32 280 20 2 2 + style 1 + type 4 + visible 1 + textalignx 5 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.3 + accept + { + close self; + } + dvar "password" + maxChars 32 + maxPaintChars 32 + } + itemDef + { + text "@MENU_OK" + group "mw2_popup_button" + rect 6 64 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/popup_playername.menu b/ui_mp/popup_playername.menu new file mode 100644 index 0000000..49c15ea --- /dev/null +++ b/ui_mp/popup_playername.menu @@ -0,0 +1,252 @@ +{ + menuDef + { + name "popup_playername" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + exec "setfromdvar ui_name name"; + setFocus nameEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 84 2 2 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 300 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 84 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -64 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -64 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect 0 0 300 18 2 2 + decoration + visible 1 + textalign 1 + textaligny 18 + textscale 0.375 + textfont 9 + exp text "@MENU_PLAYER_NAME"; + } + itemDef + { + name "nameEntry" + text " " + rect 10 32 280 20 2 2 + style 1 + type 4 + visible 1 + textalignx 5 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.3 + accept + { + exec "setfromdvar name ui_name"; + close self; + } + dvar "ui_name" + maxChars 15 + maxPaintChars 15 + } + itemDef + { + text "@MENU_CLOSE" + group "mw2_popup_button" + rect 6 64 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "setfromdvar name ui_name"; + close self; + } + } + } +} diff --git a/ui_mp/popup_ready.menu b/ui_mp/popup_ready.menu new file mode 100644 index 0000000..95a5829 --- /dev/null +++ b/ui_mp/popup_ready.menu @@ -0,0 +1,860 @@ +{ + menuDef + { + name "popup_ready" + rect 0 0 854 184 1 1 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + outOfBoundsClick + popup + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + visible when(localvarint("ui_tabDepth") == localvarint("ui_popup_cac_sniper_primary_tabDepth")); + exp rect Y localvarfloat("ui_popupYPos") + (localvarint("ui_tabDepth") * 20); + onOpen + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") + 1; + setLocalVarInt ui_popup_cac_sniper_primary_tabDepth localvarint("ui_tabDepth"); + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "mosin") + { + setfocus cac_weapon_mosin; + } + } + onClose + { + setLocalVarInt ui_tabDepth localvarint("ui_tabDepth") - 1; + } + onESC + { + close self; + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible when(!localvarint("ui_centerPopup")); + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -918 -480 1708 960 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -64 0 854 184 1 1 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 1708 480 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 0.85 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 -1708 -480 1 1 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 0 854 0 1 1 + style 3 + decoration + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -96 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -64 -32 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 790 -32 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 790 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect 790 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -64 0 854 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 32 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y 4 + (9 * 20); + } + itemDef + { + rect -96 0 32 0 1 1 + style 3 + decoration + visible when(!localvarint("ui_centerPopup")); + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 184 1 1 + style 1 + decoration + visible 1 + backcolor 1 1 1 0 + background "gradient_fadein" + exp rect h 4 + (9 * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (1 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab1Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 1) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 1) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (2 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab2Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 2) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 2) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (3 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab3Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 3) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 3) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (4 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab4Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 4) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 4) * 0.35); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + backcolor 0.25 0.25 0.25 1 + background "white" + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + } + itemDef + { + rect -64 0 280 20 1 1 + style 1 + decoration + visible when(localvarint("ui_tabDepth") > (5 - 1)); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 9 + backcolor 0 0 0 1 + background "gradient_fadein" + exp text localvarstring("ui_tab5Name"); + exp rect y (- 20) - ((localvarint("ui_tabDepth") - 5) * 20); + exp forecolor r 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor g 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + exp forecolor b 1 - ((localvarint("ui_tabDepth") > 5) * 0.35); + } + itemDef + { + name "cac_weapon_mosin" + group "mw2_popup_button" + rect -64 4 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("mosin")); + textalign 4 + textalignx 68 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_short" + 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 mosin; + } + leaveFocus + { + setItemColor self backcolor 1 1 1 0; + setLocalVarBool ui_popupAButton 0; + setPlayerData ( weaponNew , mosin , false ); + } + action + { + play mouse_click; + if (localvarint("ui_tabDepth") == 0) + { + setLocalVarString ui_tab1Name "@" + tablelookup("mp/statsTable.csv", 4, "mosin", 3); + } + if (localvarint("ui_tabDepth") == 1) + { + setLocalVarString ui_tab2Name "@" + tablelookup("mp/statsTable.csv", 4, "mosin", 3); + } + if (localvarint("ui_tabDepth") == 2) + { + setLocalVarString ui_tab3Name "@" + tablelookup("mp/statsTable.csv", 4, "mosin", 3); + } + if (localvarint("ui_tabDepth") == 3) + { + setLocalVarString ui_tab4Name "@" + tablelookup("mp/statsTable.csv", 4, "mosin", 3); + } + if (localvarint("ui_tabDepth") == 4) + { + setLocalVarString ui_tab5Name "@" + tablelookup("mp/statsTable.csv", 4, "mosin", 3); + } + if (localvarint("ui_tabDepth") == 5) + { + setLocalVarString ui_tab6Name "@" + tablelookup("mp/statsTable.csv", 4, "mosin", 3); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") != "mosin") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , none ); + } + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , mosin ); + setPlayerData ( weaponNew , mosin , false ); + if (((!((tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0), 12) != "") || (tablelookup("mp/attachmentTable.csv", 4, getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0), 12) != ""))) && (((getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_gl") || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_grip")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_shotgun"))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null_heartbeat")) + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , specialty_null ); + } + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + if (0 == 0) + { + if (tablelookup("mp/statsTable.csv", 4, "mosin", 11) != "") + { + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + open popup_primary_attachments_bling; + } + else + { + open popup_primary_attachments; + } + } + else + { + open popup_cac_primary_camo; + } + } + else + { + if (tablelookup("mp/statsTable.csv", 4, "mosin", 11) != "") + { + if ((getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") && isitemunlocked("specialty_secondarybling")) + { + open popup_secondary_attachments_bling; + } + else + { + open popup_secondary_attachments; + } + } + else + { + close popup_cac_weapon_primary; + close popup_primary_attachments; + close popup_secondary_attachments; + close popup_cac_weapon_secondary; + close popup_cac_handgun_secondary; + close popup_cac_machinePistols_secondary; + close popup_cac_assault_primary; + close popup_cac_SMG_primary; + close popup_cac_LMG_primary; + close popup_cac_sniper_primary; + close popup_cac_shotgun_primary; + close popup_cac_assault_secondary; + close popup_cac_SMG_secondary; + close popup_cac_LMG_secondary; + close popup_cac_sniper_secondary; + close popup_cac_shotgun_secondary; + close popup_cac_template; + close popup_cac_primary_camo; + close popup_cac_secondary_camo; + close popup_cac_bling; + close popup_cac_perk2; + close popup_cac_rocket_secondary; + close popup_primary_attachments_bling; + close popup_secondary_attachments_bling; + close popup_cac_other_primary; + } + } + } + execKeyInt 168 + { + if (tablelookup("mp/challengeTable.csv", 6, "mosin", 4) != "") + { + setLocalVarString ui_challengeTierTable tablelookup("mp/challengeTable.csv", 6, "mosin", 4); + open menu_challenge_details; + } + } + exp text "@" + tablelookup("mp/statsTable.csv", 4, "mosin", 3); + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when((getplayerdata("weaponNew", "mosin") || getplayerdataanybooltrue("camoNew", "mosin")) || getplayerdataanybooltrue("attachmentNew", "mosin")); + textscale 0.55 + background "specialty_new" + } + itemDef + { + rect 162 4 40 20 1 1 + style 3 + decoration + visible when(isitemunlocked("mosin") == 0); + textscale 0.55 + background "specialty_locked" + } + itemDef + { + rect -56 0 200 184 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "small_box_lightfx" + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 3); + } + itemDef + { + rect -56 10 200 100 2 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 6); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/statstable.csv", 4, localvarstring("ui_selected_ref"), 7); + } + itemDef + { + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(!isitemunlocked(localvarstring("ui_selected_ref"))); + textalign 4 + textalignx 4 + textaligny 104 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/rankTable.csv", 0, tablelookup("mp/unlockTable.csv", 0, localvarstring("ui_selected_ref"), 2), 17); + } + itemDef + { + text "@PLATFORM_VIEW_CHALLENGES" + rect -56 0 200 184 2 1 + decoration + autowrapped + visible when(isitemunlocked(localvarstring("ui_selected_ref")) && (tablelookup("mp/challengeTable.csv", 6, localvarstring("ui_selected_ref"), 4) != "")); + textalign 4 + textalignx 4 + textaligny 144 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + } + itemDef + { + text "@MPUI_ACCURACY" + rect -128 22 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100) * 120; + } + itemDef + { + rect -128 22 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 22) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_DAMAGE" + rect -128 48 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100) * 120; + } + itemDef + { + rect -128 48 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 23) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_RANGE" + rect -128 74 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100) * 120; + } + itemDef + { + rect -128 74 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 24) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_FIRE_RATE" + rect -128 100 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100) * 120; + } + itemDef + { + rect -128 100 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 25) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + itemDef + { + text "@MPUI_MOBILITY" + rect -128 126 120 4 3 1 + style 1 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textalign 6 + textaligny -20 + textscale 0.375 + textfont 3 + backcolor 0 0 0 1 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.75 1 0.7 0.85 + background "white" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "gradient_fadein" + exp rect w (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100) * 120; + } + itemDef + { + rect -128 126 120 2 3 1 + style 3 + decoration + visible when(tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) && 1); + textscale 0.55 + forecolor 1 1 0.25 0.65 + background "white" + exp rect x ((- 64) + (0 - (120 * (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)))) + ((0 - (120 * (0 / 100))) * (0 < 0)); + exp rect w min(120 * (0 / 100), (1 - (tablelookup("mp/statsTable.csv", 4, localvarstring("ui_selected_ref"), 26) / 100)) * 120); + exp forecolor r ((0 < 0) * 0.45) + 0.25; + exp forecolor g ((0 > 0) * 0.45) + 0.25; + } + } +} diff --git a/ui_mp/popup_serverpassword.menu b/ui_mp/popup_serverpassword.menu new file mode 100644 index 0000000..1e0144a --- /dev/null +++ b/ui_mp/popup_serverpassword.menu @@ -0,0 +1,251 @@ +{ + menuDef + { + name "popup_serverpassword" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + exec "setfromdvar ui_password g_password"; + setFocus passwordEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 84 2 2 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 84 2 2 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 300 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 84 300 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -64 84 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -64 0 64 84 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect 0 0 300 18 2 2 + decoration + visible 1 + textalign 1 + textaligny 18 + textscale 0.375 + textfont 9 + exp text "@MENU_PASSWORD"; + } + itemDef + { + name "passwordEntry" + text " " + rect 10 32 280 20 2 2 + style 1 + type 4 + visible 1 + textalignx 5 + textaligny 18 + textscale 0.375 + textfont 3 + backcolor 0 0 0 0.3 + accept + { + exec "setfromdvar g_password ui_password"; + close self; + } + dvar "ui_password" + maxChars 32 + maxPaintChars 32 + } + itemDef + { + text "@MENU_OK" + group "mw2_popup_button" + rect 6 64 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/quickmessage.menu b/ui_mp/quickmessage.menu new file mode 100644 index 0000000..a33e5fd --- /dev/null +++ b/ui_mp/quickmessage.menu @@ -0,0 +1,128 @@ +{ + menuDef + { + name "quickmessage" + rect -52 314 194 128 1 1 + style 1 + border 1 + borderSize 2 + focuscolor 1 1 1 1 + popup + onOpen + { + close quickcommands; + close quickstatements; + close quickresponses; + setDvar cl_bypassMouseInput 1; + } + onClose + { + setDvar cl_bypassMouseInput 0; + } + onESC + { + play mouse_click; + close self; + } + execKey "1" + { + close self; + open quickcommands; + } + execKey "2" + { + close self; + open quickstatements; + } + execKey "3" + { + close self; + open quickresponses; + } + itemDef + { + rect 0 0 194 128 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 0.2 0.2 0.22 0.65 + bordercolor 0.4 0.4 0.42 1 + exp material "white"; + } + itemDef + { + rect 0 0 194 128 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 1 1 1 0.7 + bordercolor 0.4 0.4 0.42 1 + exp material "gradient_bottom"; + } + itemDef + { + rect 97 2 0 0 1 1 + decoration + type 1 + visible 1 + textalign 5 + textscale 0.4583 + textstyle 6 + textfont 1 + forecolor 0.69 0.69 0.69 1 + exp text "@QUICKMESSAGE_QUICK_MESSAGE"; + } + itemDef + { + name "window" + text "@QUICKMESSAGE_1_COMMANDS" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_2_STATEMENTS" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_3_RESPONSES" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_ESC_EXIT" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + } +} diff --git a/ui_mp/resetclass.menu b/ui_mp/resetclass.menu new file mode 100644 index 0000000..1d75708 --- /dev/null +++ b/ui_mp/resetclass.menu @@ -0,0 +1,157 @@ +{ + menuDef + { + name "resetclass" + decoration + rect 0 0 0 0 0 0 + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + setLocalVarInt classIndex dvarint(ui_checkclass); + if ((!isitemunlocked(getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"))) || (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") == "none")) + { + setLocalVarString temp debugprint("Stats", ((("Weapon " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon")) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadout" + "Primary", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , weapon , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Primary") + "Attachment", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Primary") + "Attachment2", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Primary") + "Camo", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) ); + } + if (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0))) + { + setLocalVarString temp debugprint("Stats", ((((("Attachment " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon")) + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue none; + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 0 , localVarString ( dataValue ) ); + } + if (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1))) + { + setLocalVarString temp debugprint("Stats", ((((("Attachment2 " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon")) + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue none; + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , localVarString ( dataValue ) ); + } + if (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon") + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"))) + { + setLocalVarString temp debugprint("Stats", ((((("Camo " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon")) + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo")) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue none; + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , camo , localVarString ( dataValue ) ); + } + if ((!isitemunlocked(getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"))) || (getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") == "none")) + { + setLocalVarString temp debugprint("Stats", ((("Weapon " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon")) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment2", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Camo", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) ); + } + if (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0))) + { + setLocalVarString temp debugprint("Stats", ((((("Attachment " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon")) + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue none; + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) ); + } + if (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1))) + { + setLocalVarString temp debugprint("Stats", ((((("Attachment2 " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon")) + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue none; + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) ); + } + if (!isitemunlocked((getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon") + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"))) + { + setLocalVarString temp debugprint("Stats", ((((("Camo " + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon")) + " ") + getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo")) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue none; + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) ); + } + if ((!isitemunlocked(getplayerdata("customClasses", localvarint("classIndex"), "perks", 0))) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 0) == "specialty_null")) + { + setLocalVarString temp debugprint("Stats", ((("Equipment " + getplayerdata("customClasses", localvarint("classIndex"), "perks", 0)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadoutEquipment", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 0 , localVarString ( dataValue ) ); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade") == "none") + { + setLocalVarString temp debugprint("Stats", ((("Secondary offhand " + getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade")) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadoutOffhand", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , specialGrenade , localVarString ( dataValue ) ); + } + if (((!isitemunlocked(getplayerdata("customClasses", localvarint("classIndex"), "perks", 1))) || (tablelookup("mp/perkTable.csv", 1, getplayerdata("customClasses", localvarint("classIndex"), "perks", 1), 5) != "perk1")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_null")) + { + setLocalVarString temp debugprint("Stats", ((("Perk " + getplayerdata("customClasses", localvarint("classIndex"), "perks", 1)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_bling") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 1) == "specialty_onemanarmy") + { + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment2", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Camo", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) ); + } + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 1, (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 1 , localVarString ( dataValue ) ); + } + if (((!isitemunlocked(getplayerdata("customClasses", localvarint("classIndex"), "perks", 2))) || (tablelookup("mp/perkTable.csv", 1, getplayerdata("customClasses", localvarint("classIndex"), "perks", 2), 5) != "perk2")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 2) == "specialty_null")) + { + setLocalVarString temp debugprint("Stats", ((("Perk " + getplayerdata("customClasses", localvarint("classIndex"), "perks", 2)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 2) == "specialty_bling") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 2) == "specialty_onemanarmy") + { + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment2", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Camo", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) ); + } + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 2, (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 2 , localVarString ( dataValue ) ); + } + if (((!isitemunlocked(getplayerdata("customClasses", localvarint("classIndex"), "perks", 3))) || (tablelookup("mp/perkTable.csv", 1, getplayerdata("customClasses", localvarint("classIndex"), "perks", 3), 5) != "perk3")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 3) == "specialty_null")) + { + setLocalVarString temp debugprint("Stats", ((("Perk " + getplayerdata("customClasses", localvarint("classIndex"), "perks", 3)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 3) == "specialty_bling") + { + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 0 , attachment , 1 , none ) setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , none ); + } + if (getplayerdata("customClasses", localvarint("classIndex"), "perks", 3) == "specialty_onemanarmy") + { + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadout" + "Secondary", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , weapon , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 0 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Attachment2", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , attachment , 1 , localVarString ( dataValue ) ); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, ("loadout" + "Secondary") + "Camo", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , weaponSetups , 1 , camo , localVarString ( dataValue ) ); + } + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadoutPerk" + 3, (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 3 , localVarString ( dataValue ) ); + } + if (((!isitemunlocked(getplayerdata("customClasses", localvarint("classIndex"), "perks", 4))) || (tablelookup("mp/perkTable.csv", 1, getplayerdata("customClasses", localvarint("classIndex"), "perks", 4), 5) != "perk4")) || (getplayerdata("customClasses", localvarint("classIndex"), "perks", 4) == "specialty_null")) + { + setLocalVarString temp debugprint("Stats", ((("Deathstreak " + getplayerdata("customClasses", localvarint("classIndex"), "perks", 4)) + " locked for class ") + localvarint("classIndex")) + "; resetting"); + setLocalVarString dataValue tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", (localvarint("classIndex") % 5) + 6); + setPlayerData ( customClasses , localVarInt ( classIndex ) , perks , 4 , localVarString ( dataValue ) ); + } + close self; + } + } +} diff --git a/ui_mp/scriptmenus/callvote.menu b/ui_mp/scriptmenus/callvote.menu new file mode 100644 index 0000000..66c9d61 --- /dev/null +++ b/ui_mp/scriptmenus/callvote.menu @@ -0,0 +1,420 @@ +{ + menuDef + { + name "callvote" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onESC + { + close self; + open class; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MPUI_CALLVOTE" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "button_1" + text "@MP_VOTE_MAPRESTART" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_restart"; + close self; + } + } + itemDef + { + name "button_2" + text "@MP_VOTE_NEXTMAP" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_rotate"; + close self; + } + } + itemDef + { + name "button_3" + text "@MENU_CHANGE_MAP" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open changemap; + close changegametype; + close kickplayer; + close self; + } + } + itemDef + { + name "button_4" + text "Change Gametype" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open changegametype; + close changemap; + close kickplayer; + close self; + } + } + itemDef + { + name "button_5" + text "@MPUI_KICK_PLAYER" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open kickplayer; + close changemap; + close changegametype; + close self; + } + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/scriptmenus/changeclass.menu b/ui_mp/scriptmenus/changeclass.menu new file mode 100644 index 0000000..ddfedff --- /dev/null +++ b/ui_mp/scriptmenus/changeclass.menu @@ -0,0 +1,2051 @@ +{ + menuDef + { + name "changeclass" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + focusfirst; + } + onESC + { + scriptmenuresponse back; + } + execKey "f" + { + play mouse_click; + open popup_friends; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.25 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_CHOOSE_CLASS_CAP" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when(localvarstring("ui_team") == "marines"); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Allies); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when(localvarstring("ui_team") == "opfor"); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Axis); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "marines")); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Allies); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "opfor")); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Axis); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when(team("name") == "TEAM_ALLIES"); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Allies); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "marines")); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Allies); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when(team("name") == "TEAM_AXIS"); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Axis); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "opfor")); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Axis); + } + itemDef + { + name "class_choose_1" + text "@CLASS_CLASS1" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 0 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 0 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 0 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 0 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 0 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 0 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 0 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 0 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 0 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 0 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 0 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 0 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 0 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 0 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 0 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 0 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 0 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 0 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class0; + close self; + } + } + itemDef + { + name "class_choose_2" + text "@CLASS_CLASS2" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 1 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 1 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 1 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 1 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 1 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 1 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 1 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 1 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 1 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 1 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 1 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 1 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 1 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 1 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 1 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 1 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 1 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 1 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class1; + close self; + } + } + itemDef + { + name "class_choose_3" + text "@CLASS_CLASS3" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 2 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 2 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 2 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 2 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 2 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 2 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 2 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 2 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 2 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 2 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 2 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 2 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 2 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 2 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 2 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 2 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 2 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 2 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class2; + close self; + } + } + itemDef + { + name "class_choose_4" + text "@CLASS_CLASS4" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("sniper")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + if (!isitemunlocked("sniper")) + { + setItemColor self backcolor 0 0 0 "0.25"; + } + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 3 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 3 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 3 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 3 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 3 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 3 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 3 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 3 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 3 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 3 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 3 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 3 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 3 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 3 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 3 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 3 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 3 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 3 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class3; + close self; + } + } + itemDef + { + name "class_choose_5" + text "@CLASS_CLASS5" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("demolitions")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + if (!isitemunlocked("sniper")) + { + setItemColor self backcolor 0 0 0 "0.25"; + } + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 4 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 4 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 4 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 4 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 4 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 4 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 4 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 4 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 4 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 4 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 4 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 4 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 4 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 4 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 4 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 4 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 4 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 4 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class4; + close self; + } + } + itemDef + { + rect 0 128 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 0; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom1; + close self; + } + exp text getplayerdata("customClasses", 0, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 1; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom2; + close self; + } + exp text getplayerdata("customClasses", 1, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 168 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 2; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom3; + close self; + } + exp text getplayerdata("customClasses", 2, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 188 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 3; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom4; + close self; + } + exp text getplayerdata("customClasses", 3, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 208 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 4; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom5; + close self; + } + exp text getplayerdata("customClasses", 4, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 228 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 5; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom6; + close self; + } + exp text getplayerdata("customClasses", 5, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 248 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 6; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom7; + close self; + } + exp text getplayerdata("customClasses", 6, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 268 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 7; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom8; + close self; + } + exp text getplayerdata("customClasses", 7, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 288 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 8; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom9; + close self; + } + exp text getplayerdata("customClasses", 8, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 308 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 9; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom10; + close self; + } + exp text getplayerdata("customClasses", 9, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 328 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 10; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom11; + close self; + } + exp text getplayerdata("customClasses", 10, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 348 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 11; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom12; + close self; + } + exp text getplayerdata("customClasses", 11, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 368 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 12; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom13; + close self; + } + exp text getplayerdata("customClasses", 12, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 388 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 13; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom14; + close self; + } + exp text getplayerdata("customClasses", 13, "name"); + } + itemDef + { + name "class_custom" + group "mw2_button" + rect -64 408 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 14; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom15; + close self; + } + exp text getplayerdata("customClasses", 14, "name"); + } + itemDef + { + rect -272 28 -272 20 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 1 1 1 0.25 + background "gradient_fadein" + exp text localvarstring("loadoutClassName"); + } + itemDef + { + rect -272 268 -272 4 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "gradient_fadein" + } + itemDef + { + rect -272 48 -272 100 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -272 48 272 100 3 1 + style 3 + decoration + visible when(localvarstring("loadoutPrimaryCamo") != "none"); + textscale 0.55 + forecolor 1 1 1 0.5 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutPrimaryCamo"), 4); + } + itemDef + { + rect -272 48 272 18 3 1 + style 3 + decoration + visible when(localvarstring("loadoutPrimaryCamo") != "none"); + textscale 0.55 + forecolor 0 0 0 0.25 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutPrimaryCamo"), 4); + } + itemDef + { + rect -272 48 -272 18 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.35 + background "gradient_fadein" + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 3); + } + itemDef + { + rect -200 48 200 101.333 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 6); + } + itemDef + { + rect -268 66 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 6); + } + itemDef + { + rect -268 106 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 6); + } + itemDef + { + rect -224 106 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 6); + } + itemDef + { + rect -272 48 272 100 3 1 + decoration + visible when((localvarstring("loadoutPrimaryAttachment") != "none") || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 11) != ""))); + textalign 12 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutPrimaryAttachment") == "none"); + } + itemDef + { + rect -272 48 272 100 3 1 + decoration + visible when(((isitemunlocked("specialty_secondarybling") || (0 == 0)) && (localvarstring("loadoutPrimaryAttachment2") != "none")) || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 11 + 1) != ""))); + textalign 12 + textalignx 4 + textaligny -40 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutPrimaryAttachment2") == "none"); + } + itemDef + { + rect -272 148 -272 100 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -272 148 272 100 3 1 + style 3 + decoration + visible when(localvarstring("loadoutSecondaryCamo") != "none"); + textscale 0.55 + forecolor 1 1 1 0.5 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutSecondaryCamo"), 4); + } + itemDef + { + rect -272 148 272 18 3 1 + style 3 + decoration + visible when(localvarstring("loadoutSecondaryCamo") != "none"); + textscale 0.55 + forecolor 0 0 0 0.25 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutSecondaryCamo"), 4); + } + itemDef + { + rect -272 148 -272 18 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.35 + background "gradient_fadein" + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 3); + } + itemDef + { + rect -200 148 200 101.333 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 6); + } + itemDef + { + rect -268 166 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 6); + } + itemDef + { + rect -268 206 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 6); + } + itemDef + { + rect -224 206 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 6); + } + itemDef + { + rect -272 148 272 100 3 1 + decoration + visible when((localvarstring("loadoutSecondaryAttachment") != "none") || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != ""))); + textalign 12 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutSecondaryAttachment") == "none"); + } + itemDef + { + rect -272 148 272 100 3 1 + decoration + visible when(((isitemunlocked("specialty_secondarybling") || (1 == 0)) && (localvarstring("loadoutSecondaryAttachment2") != "none")) || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11 + 1) != ""))); + textalign 12 + textalignx 4 + textaligny -40 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutSecondaryAttachment2") == "none"); + } + itemDef + { + rect -272 268 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 268 36 36 3 1 + style 3 + decoration + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)))); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 3); + } + itemDef + { + rect -268 268 36 36 3 1 + style 3 + decoration + visible when(((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8))) && (localvarstring("loadoutPerk1") != "")); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 3) + "_upgrade"; + } + itemDef + { + rect -232 268 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)) * (9 - 2)))); + } + itemDef + { + rect -228 284 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 4); + } + itemDef + { + rect -228 284 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8), 9); + } + itemDef + { + rect -272 304 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 304 36 36 3 1 + style 3 + decoration + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)))); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 3); + } + itemDef + { + rect -268 304 36 36 3 1 + style 3 + decoration + visible when(((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8))) && (localvarstring("loadoutPerk2") != "")); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 3) + "_upgrade"; + } + itemDef + { + rect -232 304 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)) * (9 - 2)))); + } + itemDef + { + rect -228 320 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 4); + } + itemDef + { + rect -228 320 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8), 9); + } + itemDef + { + rect -272 340 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 340 36 36 3 1 + style 3 + decoration + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)))); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 3); + } + itemDef + { + rect -268 340 36 36 3 1 + style 3 + decoration + visible when(((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8))) && (localvarstring("loadoutPerk3") != "")); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 3) + "_upgrade"; + } + itemDef + { + rect -232 340 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)) * (9 - 2)))); + } + itemDef + { + rect -228 356 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 4); + } + itemDef + { + rect -228 356 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8), 9); + } + itemDef + { + rect -272 376 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 376 36 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutDeathStreak"), 3); + } + itemDef + { + rect -232 376 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutDeathStreak"), 2); + } + itemDef + { + rect -272 376 -272 1 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.5 + background "gradient_fadein" + } + itemDef + { + rect -272 248 -272 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -272 248 -272 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.35 + background "gradient_fadein" + } + itemDef + { + rect -268 248 20 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutEquipment"), 3); + } + itemDef + { + rect -248 248 272 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutEquipment"), 2); + } + itemDef + { + rect -136 248 20 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutOffhandSecondary"), 6); + } + itemDef + { + rect -116 248 272 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text locstring("@MPUI_N_XN", "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutOffhandSecondary"), 3), int(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutOffhandSecondary"), 5))); + } + itemDef + { + rect -272 268 -272 1 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.5 + background "gradient_fadein" + } + } +} diff --git a/ui_mp/scriptmenus/changegametype.menu b/ui_mp/scriptmenus/changegametype.menu new file mode 100644 index 0000000..e257a21 --- /dev/null +++ b/ui_mp/scriptmenus/changegametype.menu @@ -0,0 +1,487 @@ +{ + menuDef + { + name "changegametype" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onESC + { + close self; + open class; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MPUI_CALLVOTE" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "button_1" + text "@MP_VOTE_MAPRESTART" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_restart"; + close self; + } + } + itemDef + { + name "button_2" + text "@MP_VOTE_NEXTMAP" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_rotate"; + close self; + } + } + itemDef + { + name "button_3" + text "@MENU_CHANGE_MAP" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open changemap; + close changegametype; + close kickplayer; + close callvote; + } + } + itemDef + { + name "button_4" + text "Change Gametype" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open changegametype; + close changemap; + close kickplayer; + close callvote; + } + } + itemDef + { + name "button_5" + text "@MPUI_KICK_PLAYER" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open kickplayer; + close changemap; + close changegametype; + close callvote; + } + } + itemDef + { + text "Change Gametype" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + name "maplist2" + rect 275 42 300 270 1 1 + style 1 + type 6 + border 1 + borderSize 1 + visible 1 + textalignx 6 + textscale 0.375 + textfont 3 + bordercolor 1 1 1 0.15 + outlinecolor 1 1 1 0.2 + mouseEnter + { + setitemcolor maplist2; + bordercolor 1 1 1 "0.55"; + } + mouseExit + { + setitemcolor maplist2; + bordercolor 1 1 1 "0.15"; + } + elementwidth 120 + elementheight 24 + feeder 29 + columns 1 + 2 190 25 0 + } + itemDef + { + text "@MPUI_CALL_VOTE" + rect 275 312 320 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -55 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + } + action + { + close self; + uiScript voteGame; + } + } + } +} diff --git a/ui_mp/scriptmenus/changemap.menu b/ui_mp/scriptmenus/changemap.menu new file mode 100644 index 0000000..033baa9 --- /dev/null +++ b/ui_mp/scriptmenus/changemap.menu @@ -0,0 +1,488 @@ +{ + menuDef + { + name "changemap" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onESC + { + close self; + open class; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MPUI_CALLVOTE" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "button_1" + text "@MP_VOTE_MAPRESTART" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_restart"; + close self; + } + } + itemDef + { + name "button_2" + text "@MP_VOTE_NEXTMAP" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_rotate"; + close self; + } + } + itemDef + { + name "button_3" + text "@MENU_CHANGE_MAP" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open changemap; + close changegametype; + close kickplayer; + close callvote; + } + } + itemDef + { + name "button_4" + text "Change Gametype" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open changegametype; + close changemap; + close kickplayer; + close callvote; + } + } + itemDef + { + name "button_5" + text "@MPUI_KICK_PLAYER" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open kickplayer; + close changemap; + close changegametype; + close callvote; + } + } + itemDef + { + text "@MENU_CHANGE_MAP" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + name "maplist" + rect 275 42 300 270 1 1 + style 1 + type 6 + border 1 + borderSize 1 + visible 1 + textalignx 6 + textaligny -1 + textscale 0.375 + textfont 3 + bordercolor 1 1 1 0.15 + outlinecolor 1 1 1 0.2 + mouseEnter + { + setitemcolor maplist; + bordercolor 1 1 1 "0.55"; + } + mouseExit + { + setitemcolor maplist; + bordercolor 1 1 1 "0.15"; + } + elementwidth 120 + elementheight 24 + feeder 4 + columns 1 + 2 190 25 0 + } + itemDef + { + text "@MPUI_CALL_VOTE" + rect 275 312 320 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -55 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + } + action + { + close self; + uiScript voteMap; + } + } + } +} diff --git a/ui_mp/scriptmenus/class.menu b/ui_mp/scriptmenus/class.menu new file mode 100644 index 0000000..857d78b --- /dev/null +++ b/ui_mp/scriptmenus/class.menu @@ -0,0 +1,790 @@ +{ + menuDef + { + name "class" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onOpen + { + focusfirst; + } + onESC + { + scriptmenuresponse back; + } + execKey "f" + { + play mouse_click; + open popup_friends; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.25 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MENU_OPTIONS_UPPER_CASE" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "fullmap_border" + rect -260 135 240 240 3 1 + decoration + border 1 + borderSize 0.666667 + visible when(!isempjammed()); + textscale 0.55 + bordercolor 1 1 1 0.35 + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + forecolor 0.89 0.98 0.95 0.05 + background "minimap_scanlines" + } + itemDef + { + name "fullmap_map" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 181 + textscale 0.55 + background "compass_map_default" + } + itemDef + { + name "fullmap_friendlies" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 185 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "fullmap_enemies" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 188 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "fullmap_objectives" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 182 + textscale 0.55 + background "objective_line" + } + itemDef + { + name "fullmap_sentries" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 189 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "fullmap_player" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 183 + textscale 0.55 + background "compassping_player" + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(radarisjammed() && (!isempjammed())); + textscale 0.55 + forecolor 0.64 0.74 0.71 1 + background "white" + exp forecolor a radarjamintensity(); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(radarisjammed() && (!isempjammed())); + textscale 0.55 + forecolor 0.89 0.98 0.95 1 + background "ac130_overlay_grain" + exp forecolor a radarjamintensity(); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + background "stencil_base" + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + background "scanlines_stencil" + exp rect y (135 - 240) + ((240 * 2) * (1 - ((milliseconds() % 4000) / 4000))); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + forecolor 0.89 0.98 0.95 1 + background "stencil_fill" + } + itemDef + { + rect -260 115 -136 20 3 1 + style 1 + decoration + visible when(!isempjammed()); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.35 + background "gradient_fadein" + exp text getmapname(); + } + itemDef + { + rect -272 0 272 28 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.35 + textfont 9 + exp text gametypename(); + } + itemDef + { + rect -272 28 272 60 3 1 + decoration + autowrapped + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + forecolor 1 1 1 0.75 + exp text gametypedescription(); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when(localvarstring("ui_team") == "marines"); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Allies); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when(localvarstring("ui_team") == "opfor"); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Axis); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "marines")); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Allies); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "opfor")); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Axis); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when(team("name") == "TEAM_ALLIES"); + textscale 0.4583 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Allies); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "marines")); + textscale 0.4583 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Allies); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when(team("name") == "TEAM_AXIS"); + textscale 0.4583 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Axis); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "opfor")); + textscale 0.4583 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Axis); + } + itemDef + { + name "game_choose_class" + text "@MPUI_CHOOSE_CLASS" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when((!((localvarstring("ui_team") == "marines") || (localvarstring("ui_team") == "opfor"))) || (!1)); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (localvarstring("ui_team") == "marines") + { + scriptmenuresponse changeclass_marines; + } + if (localvarstring("ui_team") == "opfor") + { + scriptmenuresponse changeclass_opfor; + } + } + } + itemDef + { + name "game_choose_team" + text "@MPUI_CHANGE_TEAM" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!(dvarbool(ui_allow_teamchange) && ((!dvarbool(onlinegame)) || dvarbool(xblive_privatematch)))); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse changeteam; + } + } + itemDef + { + rect 0 68 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "game_options" + text "@MPUI_MUTE_PLAYERS" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + close self; + open muteplayer; + } + } + itemDef + { + name "game_options" + text "@MENU_OPTIONS" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + close self; + open pc_options_video; + execnow "set ui_allow_graphic_change 0"; + } + } + itemDef + { + name "game_options" + text "@MENU_ADD_TO_FAVORITES" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(dvarbool(party_host)); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + close self; + uiScript CreateCurrentServerFavorite; + } + } + itemDef + { + name "game_callvote" + text "@MPUI_CALL_VOTE" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!dvarbool(g_allowvote)); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + close self; + open callvote; + } + } + itemDef + { + name "game_endgame" + text "@MENU_END_GAME" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible when((!(dvarbool(onlinegame) && (!dvarbool(xblive_privatematch)))) && dvarbool(sv_running)); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open popup_endgame; + } + } + itemDef + { + name "game_leavegame" + text "@MENU_LEAVE_GAME" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible when((dvarbool(onlinegame) && (!dvarbool(xblive_privatematch))) || (!dvarbool(sv_running))); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if ((((dvarbool(onlinegame) && (!dvarbool(xblive_privatematch))) == 0) && (dvarbool(sv_running) == 0)) && ((inprivateparty() && (!privatepartyhost())) && privatepartyhostinlobby())) + { + open popup_leavegameandparty; + } + if ((((dvarbool(onlinegame) && (!dvarbool(xblive_privatematch))) == 0) && (dvarbool(sv_running) == 0)) && (((!inprivateparty()) || privatepartyhost()) || (!privatepartyhostinlobby()))) + { + open popup_leavegame; + } + if ((dvarbool(onlinegame) && (!dvarbool(xblive_privatematch))) && dvarbool(sv_running)) + { + open popup_endgame_ranked; + } + if (((dvarbool(onlinegame) && (!dvarbool(xblive_privatematch))) && (dvarbool(sv_running) == 0)) && ((inprivateparty() && (!privatepartyhost())) && privatepartyhostinlobby())) + { + open popup_leavegameandparty_ranked; + } + if (((dvarbool(onlinegame) && (!dvarbool(xblive_privatematch))) && (dvarbool(sv_running) == 0)) && (((!inprivateparty()) || privatepartyhost()) || (!privatepartyhostinlobby()))) + { + open popup_leavegame_ranked; + } + } + } + itemDef + { + text "@PLATFORM_FRIENDS_CAPS" + group "mw2_button" + rect -64 -40 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + open popup_friends; + } + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + escape self; + } + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + open popup_summary; + } + } + } +} diff --git a/ui_mp/scriptmenus/kickplayer.menu b/ui_mp/scriptmenus/kickplayer.menu new file mode 100644 index 0000000..500bebf --- /dev/null +++ b/ui_mp/scriptmenus/kickplayer.menu @@ -0,0 +1,401 @@ +{ + menuDef + { + name "kickplayer" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + onESC + { + close self; + open class; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) != "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -107 0 854 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + background "animbg_blur_front" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_bottom" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + visible when(dvarint(cl_ingame) == 0); + textscale 0.55 + forecolor 0.25 0.25 0.25 0.75 + background "gradient_fadein" + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + text "@MPUI_CALLVOTE" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "button_1" + text "@MP_VOTE_MAPRESTART" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_restart"; + close self; + } + } + itemDef + { + name "button_2" + text "@MP_VOTE_NEXTMAP" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + exec "cmd callvote map_rotate"; + close self; + } + } + itemDef + { + name "button_3" + text "@MPUI_KICK_PLAYER" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_hint_text ""; + setLocalVarString ui_info_name ""; + setLocalVarString ui_info_desc ""; + setLocalVarString ui_info_icon ""; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + open kickplayer; + close changemap; + close changegametype; + close self; + } + } + itemDef + { + text "@MPUI_KICK_PLAYER" + rect 232 0 344 28 1 1 + decoration + visible 1 + textalign 5 + textscale 0.5 + textfont 9 + } + itemDef + { + name "back" + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -4 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + name "maplist" + rect 275 42 300 270 1 1 + style 1 + type 6 + border 1 + borderSize 1 + visible 1 + textalignx 6 + textscale 0.375 + textfont 3 + bordercolor 1 1 1 0.15 + outlinecolor 1 1 1 0.2 + mouseEnter + { + setitemcolor maplist; + bordercolor 1 1 1 "0.55"; + } + mouseExit + { + setitemcolor maplist; + bordercolor 1 1 1 "0.15"; + } + elementwidth 120 + elementheight 24 + feeder 7 + columns 1 + 2 190 25 0 + } + itemDef + { + text "@MPUI_CALL_VOTE" + rect 275 312 320 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -55 + textscale 0.375 + textfont 3 + background "menu_setting_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + } + action + { + close self; + uiScript voteKick; + } + } + } +} diff --git a/ui_mp/scriptmenus/onemanarmy.menu b/ui_mp/scriptmenus/onemanarmy.menu new file mode 100644 index 0000000..049ac26 --- /dev/null +++ b/ui_mp/scriptmenus/onemanarmy.menu @@ -0,0 +1,1921 @@ +{ + menuDef + { + name "onemanarmy" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + onRequestClose + { + scriptmenuresponse back; + } + onESC + { + scriptmenuresponse back; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.25 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@PERKS_ONEMANARMY" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "class_choose_1" + text "@CLASS_CLASS1" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 0 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 0 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 0 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 0 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 0 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 0 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 0 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 0 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 0 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 0 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 0 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 0 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 0 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 0 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 0 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 0 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 0 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 0 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class0; + close self; + } + } + itemDef + { + name "class_choose_2" + text "@CLASS_CLASS2" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 1 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 1 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 1 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 1 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 1 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 1 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 1 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 1 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 1 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 1 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 1 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 1 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 1 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 1 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 1 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 1 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 1 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 1 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class1; + close self; + } + } + itemDef + { + name "class_choose_3" + text "@CLASS_CLASS3" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 2 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 2 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 2 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 2 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 2 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 2 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 2 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 2 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 2 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 2 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 2 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 2 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 2 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 2 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 2 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 2 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 2 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 2 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class2; + close self; + } + } + itemDef + { + name "class_choose_4" + text "@CLASS_CLASS4" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("sniper")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + if (!isitemunlocked("sniper")) + { + setItemColor self backcolor 0 0 0 "0.25"; + } + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 3 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 3 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 3 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 3 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 3 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 3 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 3 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 3 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 3 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 3 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 3 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 3 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 3 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 3 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 3 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 3 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 3 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 3 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class3; + close self; + } + } + itemDef + { + name "class_choose_5" + text "@CLASS_CLASS5" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(!isitemunlocked("demolitions")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + if (!isitemunlocked("sniper")) + { + setItemColor self backcolor 0 0 0 "0.25"; + } + setLocalVarString loadoutPrimary tablelookup("mp/classTable.csv", 0, "loadoutPrimary", 4 + 1); + setLocalVarString loadoutPrimaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment", 4 + 1); + setLocalVarString loadoutPrimaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutPrimaryAttachment2", 4 + 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo tablelookup("mp/classTable.csv", 0, "loadoutPrimaryCamo", 4 + 1); + setLocalVarString loadoutSecondary tablelookup("mp/classTable.csv", 0, "loadoutSecondary", 4 + 1); + setLocalVarString loadoutSecondaryAttachment tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment", 4 + 1); + setLocalVarString loadoutSecondaryAttachment2 tablelookup("mp/classTable.csv", 0, "loadoutSecondaryAttachment2", 4 + 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo tablelookup("mp/classTable.csv", 0, "loadoutSecondaryCamo", 4 + 1); + setLocalVarString loadoutEquipment tablelookup("mp/classTable.csv", 0, "loadoutEquipment", 4 + 1); + setLocalVarString loadoutPerk1 tablelookup("mp/classTable.csv", 0, "loadoutPerk1", 4 + 1); + setLocalVarString loadoutPerk2 tablelookup("mp/classTable.csv", 0, "loadoutPerk2", 4 + 1); + setLocalVarString loadoutPerk3 tablelookup("mp/classTable.csv", 0, "loadoutPerk3", 4 + 1); + setLocalVarString loadoutStreak1 tablelookup("mp/classTable.csv", 0, "loadoutStreak1", 4 + 1); + setLocalVarString loadoutStreak2 tablelookup("mp/classTable.csv", 0, "loadoutStreak2", 4 + 1); + setLocalVarString loadoutStreak3 tablelookup("mp/classTable.csv", 0, "loadoutStreak3", 4 + 1); + setLocalVarString loadoutDeathStreak tablelookup("mp/classTable.csv", 0, "loadoutDeathStreak", 4 + 1); + setLocalVarString loadoutOffhandSecondary tablelookup("mp/classTable.csv", 0, "loadoutOffhand", 4 + 1); + setLocalVarString loadoutClassName "@" + tablelookup("mp/classTable.csv", 0, "loadoutName", 4 + 1); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse class4; + close self; + } + } + itemDef + { + rect 0 128 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "class_custom_1" + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 0, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 0; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom1; + close self; + } + exp text getplayerdata("customClasses", 0, "name"); + } + itemDef + { + name "class_custom_2" + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 1, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 1; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom2; + close self; + } + exp text getplayerdata("customClasses", 1, "name"); + } + itemDef + { + name "class_custom_3" + group "mw2_button" + rect -64 168 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 2, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 2; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom3; + close self; + } + exp text getplayerdata("customClasses", 2, "name"); + } + itemDef + { + name "class_custom_4" + group "mw2_button" + rect -64 188 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 3, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 3; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom4; + close self; + } + exp text getplayerdata("customClasses", 3, "name"); + } + itemDef + { + name "class_custom_5" + group "mw2_button" + rect -64 208 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 4, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 4; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom5; + close self; + } + exp text getplayerdata("customClasses", 4, "name"); + } + itemDef + { + name "class_custom_6" + group "mw2_button" + rect -64 228 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 5, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 5; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom6; + close self; + } + exp text getplayerdata("customClasses", 5, "name"); + } + itemDef + { + name "class_custom_7" + group "mw2_button" + rect -64 248 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 6, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 6; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom7; + close self; + } + exp text getplayerdata("customClasses", 6, "name"); + } + itemDef + { + name "class_custom_8" + group "mw2_button" + rect -64 268 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 7, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 7; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom8; + close self; + } + exp text getplayerdata("customClasses", 7, "name"); + } + itemDef + { + name "class_custom_9" + group "mw2_button" + rect -64 288 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 8, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 8; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom9; + close self; + } + exp text getplayerdata("customClasses", 8, "name"); + } + itemDef + { + name "class_custom_10" + group "mw2_button" + rect -64 308 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 9, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 9; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom10; + close self; + } + exp text getplayerdata("customClasses", 9, "name"); + } + itemDef + { + name "class_custom_11" + group "mw2_button" + rect -64 328 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 10, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 10; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom11; + close self; + } + exp text getplayerdata("customClasses", 10, "name"); + } + itemDef + { + name "class_custom_12" + group "mw2_button" + rect -64 348 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 11, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 11; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom12; + close self; + } + exp text getplayerdata("customClasses", 11, "name"); + } + itemDef + { + name "class_custom_13" + group "mw2_button" + rect -64 368 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 12, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 12; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom13; + close self; + } + exp text getplayerdata("customClasses", 12, "name"); + } + itemDef + { + name "class_custom_14" + group "mw2_button" + rect -64 388 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 13, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 13; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom14; + close self; + } + exp text getplayerdata("customClasses", 13, "name"); + } + itemDef + { + name "class_custom_15" + group "mw2_button" + rect -64 408 336 20 1 1 + style 1 + type 1 + visible when(getplayerdata("customClasses", 14, "inUse")); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarInt classIndex 14; + setLocalVarString loadoutPrimary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "weapon"); + setLocalVarString loadoutPrimaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 0); + setLocalVarString loadoutPrimaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "attachment", 1); + if (localvarstring("loadoutPrimaryAttachment2") == "") + { + setLocalVarString loadoutPrimaryAttachment2 none; + } + setLocalVarString loadoutPrimaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 0, "camo"); + setLocalVarString loadoutSecondary getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "weapon"); + setLocalVarString loadoutSecondaryAttachment getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 0); + setLocalVarString loadoutSecondaryAttachment2 getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "attachment", 1); + if (localvarstring("loadoutSecondaryAttachment2") == "") + { + setLocalVarString loadoutSecondaryAttachment2 none; + } + setLocalVarString loadoutSecondaryCamo getplayerdata("customClasses", localvarint("classIndex"), "weaponSetups", 1, "camo"); + setLocalVarString loadoutEquipment getplayerdata("customClasses", localvarint("classIndex"), "perks", 0); + setLocalVarString loadoutPerk1 getplayerdata("customClasses", localvarint("classIndex"), "perks", 1); + setLocalVarString loadoutPerk2 getplayerdata("customClasses", localvarint("classIndex"), "perks", 2); + setLocalVarString loadoutPerk3 getplayerdata("customClasses", localvarint("classIndex"), "perks", 3); + setLocalVarString loadoutStreak1 getplayerdata("killstreaks", 0); + setLocalVarString loadoutStreak2 getplayerdata("killstreaks", 1); + setLocalVarString loadoutStreak3 getplayerdata("killstreaks", 2); + setLocalVarString loadoutDeathStreak getplayerdata("customClasses", localvarint("classIndex"), "perks", 4); + setLocalVarString loadoutOffhandSecondary getplayerdata("customClasses", localvarint("classIndex"), "specialGrenade"); + setLocalVarString loadoutClassName getplayerdata("customClasses", localvarint("classIndex"), "name"); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse custom15; + close self; + } + exp text getplayerdata("customClasses", 14, "name"); + } + itemDef + { + rect -272 28 -272 20 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 1 1 1 0.25 + background "gradient_fadein" + exp text localvarstring("loadoutClassName"); + } + itemDef + { + rect -272 268 -272 4 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "gradient_fadein" + } + itemDef + { + rect -272 48 -272 100 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -272 48 272 100 3 1 + style 3 + decoration + visible when(localvarstring("loadoutPrimaryCamo") != "none"); + textscale 0.55 + forecolor 1 1 1 0.5 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutPrimaryCamo"), 4); + } + itemDef + { + rect -272 48 272 18 3 1 + style 3 + decoration + visible when(localvarstring("loadoutPrimaryCamo") != "none"); + textscale 0.55 + forecolor 0 0 0 0.25 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutPrimaryCamo"), 4); + } + itemDef + { + rect -272 48 -272 18 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.35 + background "gradient_fadein" + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 3); + } + itemDef + { + rect -200 48 200 101.333 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 6); + } + itemDef + { + rect -268 66 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 6); + } + itemDef + { + rect -268 106 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 6); + } + itemDef + { + rect -224 106 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 6); + } + itemDef + { + rect -272 48 272 100 3 1 + decoration + visible when((localvarstring("loadoutPrimaryAttachment") != "none") || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 11) != ""))); + textalign 12 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutPrimaryAttachment") == "none"); + } + itemDef + { + rect -272 48 272 100 3 1 + decoration + visible when(((isitemunlocked("specialty_secondarybling") || (0 == 0)) && (localvarstring("loadoutPrimaryAttachment2") != "none")) || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutPrimary"), 11 + 1) != ""))); + textalign 12 + textalignx 4 + textaligny -40 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutPrimaryAttachment2"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutPrimaryAttachment2") == "none"); + } + itemDef + { + rect -272 148 -272 100 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -272 148 272 100 3 1 + style 3 + decoration + visible when(localvarstring("loadoutSecondaryCamo") != "none"); + textscale 0.55 + forecolor 1 1 1 0.5 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutSecondaryCamo"), 4); + } + itemDef + { + rect -272 148 272 18 3 1 + style 3 + decoration + visible when(localvarstring("loadoutSecondaryCamo") != "none"); + textscale 0.55 + forecolor 0 0 0 0.25 + exp material tablelookup("mp/camoTable.csv", 1, localvarstring("loadoutSecondaryCamo"), 4); + } + itemDef + { + rect -272 148 -272 18 3 1 + style 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.35 + background "gradient_fadein" + exp text "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 3); + } + itemDef + { + rect -200 148 200 101.333 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 6); + } + itemDef + { + rect -268 166 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 6); + } + itemDef + { + rect -268 206 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 6); + } + itemDef + { + rect -224 206 40 40 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 6); + } + itemDef + { + rect -272 148 272 100 3 1 + decoration + visible when((localvarstring("loadoutSecondaryAttachment") != "none") || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != ""))); + textalign 12 + textalignx 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutSecondaryAttachment") == "none"); + } + itemDef + { + rect -272 148 272 100 3 1 + decoration + visible when(((isitemunlocked("specialty_secondarybling") || (1 == 0)) && (localvarstring("loadoutSecondaryAttachment2") != "none")) || ((localvarstring("loadoutPerk1") == "specialty_bling") && (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11 + 1) != ""))); + textalign 12 + textalignx 4 + textaligny -40 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0 + glowcolor 0.5 0 0 1 + exp text locstring("@MENU_PLUS", "@" + tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 3)); + exp glowcolor a (localvarstring("loadoutPerk1") == "specialty_bling") && (localvarstring("loadoutSecondaryAttachment2") == "none"); + } + itemDef + { + rect -272 268 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 268 36 36 3 1 + style 3 + decoration + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)))); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 3); + } + itemDef + { + rect -268 268 36 36 3 1 + style 3 + decoration + visible when(((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8))) && (localvarstring("loadoutPerk1") != "")); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 3) + "_upgrade"; + } + itemDef + { + rect -232 268 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)) * (9 - 2)))); + } + itemDef + { + rect -228 284 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8)))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 4); + } + itemDef + { + rect -228 284 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk1"), 8), 9); + } + itemDef + { + rect -272 304 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 304 36 36 3 1 + style 3 + decoration + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)))); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 3); + } + itemDef + { + rect -268 304 36 36 3 1 + style 3 + decoration + visible when(((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8))) && (localvarstring("loadoutPerk2") != "")); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 3) + "_upgrade"; + } + itemDef + { + rect -232 304 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)) * (9 - 2)))); + } + itemDef + { + rect -228 320 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8)))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 4); + } + itemDef + { + rect -228 320 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk2"), 8), 9); + } + itemDef + { + rect -272 340 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 340 36 36 3 1 + style 3 + decoration + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)))); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 3); + } + itemDef + { + rect -268 340 36 36 3 1 + style 3 + decoration + visible when(((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8))) && (localvarstring("loadoutPerk3") != "")); + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 3) + "_upgrade"; + } + itemDef + { + rect -232 340 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), int(2 + (isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)) * (9 - 2)))); + } + itemDef + { + rect -228 356 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) == "specialty_null") || (!isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8)))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 4); + } + itemDef + { + rect -228 356 228 18 3 1 + decoration + autowrapped + type 21 + visible when((tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8) != "specialty_null") && isitemunlocked(tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8))); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + tablelookup("mp/perkTable.csv", 1, tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutPerk3"), 8), 9); + } + itemDef + { + rect -272 376 -272 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -268 376 36 36 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutDeathStreak"), 3); + } + itemDef + { + rect -232 376 272 36 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutDeathStreak"), 2); + } + itemDef + { + rect -272 376 -272 1 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.5 + background "gradient_fadein" + } + itemDef + { + rect -272 248 -272 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.1 + background "gradient_fadein" + } + itemDef + { + rect -272 248 -272 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.35 + background "gradient_fadein" + } + itemDef + { + rect -268 248 20 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutEquipment"), 3); + } + itemDef + { + rect -248 248 272 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text "@" + tablelookup("mp/perkTable.csv", 1, localvarstring("loadoutEquipment"), 2); + } + itemDef + { + rect -136 248 20 20 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + exp material tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutOffhandSecondary"), 6); + } + itemDef + { + rect -116 248 272 20 3 1 + decoration + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + exp text locstring("@MPUI_N_XN", "@" + tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutOffhandSecondary"), 3), int(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutOffhandSecondary"), 5))); + } + itemDef + { + rect -272 268 -272 1 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.5 + background "gradient_fadein" + } + } +} diff --git a/ui_mp/scriptmenus/quickcommands.menu b/ui_mp/scriptmenus/quickcommands.menu new file mode 100644 index 0000000..f892198 --- /dev/null +++ b/ui_mp/scriptmenus/quickcommands.menu @@ -0,0 +1,218 @@ +{ + menuDef + { + name "quickcommands" + rect -52 234 194 208 1 1 + style 1 + border 1 + borderSize 2 + focuscolor 1 1 1 1 + popup + onOpen + { + setDvar cl_bypassMouseInput 1; + } + onClose + { + setDvar cl_bypassMouseInput 0; + } + onESC + { + play mouse_click; + close self; + } + execKey "1" + { + scriptMenuResponse 1; + close self; + } + execKey "2" + { + scriptMenuResponse 2; + close self; + } + execKey "3" + { + scriptMenuResponse 3; + close self; + } + execKey "4" + { + scriptMenuResponse 4; + close self; + } + execKey "5" + { + scriptMenuResponse 5; + close self; + } + execKey "6" + { + scriptMenuResponse 6; + close self; + } + execKey "7" + { + scriptMenuResponse 7; + close self; + } + execKey "8" + { + scriptMenuResponse 8; + close self; + } + itemDef + { + rect 0 0 194 208 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 0.2 0.2 0.22 0.65 + bordercolor 0.4 0.4 0.42 1 + exp material "white"; + } + itemDef + { + rect 0 0 194 208 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 1 1 1 0.7 + bordercolor 0.4 0.4 0.42 1 + exp material "gradient_bottom"; + } + itemDef + { + rect 97 2 0 0 1 1 + decoration + type 1 + visible 1 + textalign 5 + textscale 0.4583 + textstyle 6 + textfont 1 + forecolor 0.69 0.69 0.69 1 + exp text "@QUICKMESSAGE_QUICK_MESSAGE"; + } + itemDef + { + name "window" + text "@QUICKMESSAGE_1_FOLLOW_ME" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_2_MOVE_IN" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_3_FALL_BACK" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_4_SUPPRESSING_FIRE" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_5_ATTACK_LEFT_FLANK" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_6_ATTACK_RIGHT_FLANK" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_7_HOLD_THIS_POSITION" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_8_REGROUP" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_ESC_EXIT" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + } +} diff --git a/ui_mp/scriptmenus/quickresponses.menu b/ui_mp/scriptmenus/quickresponses.menu new file mode 100644 index 0000000..916bee3 --- /dev/null +++ b/ui_mp/scriptmenus/quickresponses.menu @@ -0,0 +1,182 @@ +{ + menuDef + { + name "quickresponses" + rect -52 234 194 208 1 1 + style 1 + border 1 + borderSize 2 + focuscolor 1 1 1 1 + popup + onOpen + { + setDvar cl_bypassMouseInput 1; + } + onClose + { + setDvar cl_bypassMouseInput 0; + } + onESC + { + play mouse_click; + close self; + } + execKey "1" + { + scriptMenuResponse 1; + close quickresponses; + } + execKey "2" + { + scriptMenuResponse 2; + close quickresponses; + } + execKey "3" + { + scriptMenuResponse 3; + close quickresponses; + } + execKey "4" + { + scriptMenuResponse 4; + close quickresponses; + } + execKey "5" + { + scriptMenuResponse 5; + close quickresponses; + } + execKey "6" + { + scriptMenuResponse 6; + close quickresponses; + } + itemDef + { + rect 0 0 194 208 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 0.2 0.2 0.22 0.65 + bordercolor 0.4 0.4 0.42 1 + exp material "white"; + } + itemDef + { + rect 0 0 194 208 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 1 1 1 0.7 + bordercolor 0.4 0.4 0.42 1 + exp material "gradient_bottom"; + } + itemDef + { + rect 97 2 0 0 1 1 + decoration + type 1 + visible 1 + textalign 5 + textscale 0.4583 + textstyle 6 + textfont 1 + forecolor 0.69 0.69 0.69 1 + exp text "@QUICKMESSAGE_QUICK_MESSAGE"; + } + itemDef + { + name "window" + text "@QUICKMESSAGE_1_YES_SIR" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_2_NO_SIR" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_3_IM_ON_MY_WAY" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_4_SORRY" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_5_GREAT_SHOT" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_6_TOOK_LONG_ENOUGH" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_ESC_EXIT" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + } +} diff --git a/ui_mp/scriptmenus/quickstatements.menu b/ui_mp/scriptmenus/quickstatements.menu new file mode 100644 index 0000000..4040166 --- /dev/null +++ b/ui_mp/scriptmenus/quickstatements.menu @@ -0,0 +1,200 @@ +{ + menuDef + { + name "quickstatements" + rect -52 234 194 208 1 1 + style 1 + border 1 + borderSize 2 + focuscolor 1 1 1 1 + popup + onOpen + { + setDvar cl_bypassMouseInput 1; + } + onClose + { + setDvar cl_bypassMouseInput 0; + } + onESC + { + play mouse_click; + close self; + } + execKey "1" + { + scriptMenuResponse 1; + close quickstatements; + } + execKey "2" + { + scriptMenuResponse 2; + close quickstatements; + } + execKey "3" + { + scriptMenuResponse 3; + close quickstatements; + } + execKey "4" + { + scriptMenuResponse 4; + close quickstatements; + } + execKey "5" + { + scriptMenuResponse 5; + close quickstatements; + } + execKey "6" + { + scriptMenuResponse 6; + close quickstatements; + } + execKey "7" + { + scriptMenuResponse 7; + close quickstatements; + } + itemDef + { + rect 0 0 194 208 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 0.2 0.2 0.22 0.65 + bordercolor 0.4 0.4 0.42 1 + exp material "white"; + } + itemDef + { + rect 0 0 194 208 0 0 + style 3 + decoration + border 1 + borderSize 2 + visible 1 + forecolor 1 1 1 0.7 + bordercolor 0.4 0.4 0.42 1 + exp material "gradient_bottom"; + } + itemDef + { + rect 97 2 0 0 1 1 + decoration + type 1 + visible 1 + textalign 5 + textscale 0.4583 + textstyle 6 + textfont 1 + forecolor 0.69 0.69 0.69 1 + exp text "@QUICKMESSAGE_QUICK_MESSAGE"; + } + itemDef + { + name "window" + text "@QUICKMESSAGE_1_ENEMY_SPOTTED" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_2_MULTIPLE_CONTACTS" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_3_IM_IN_POSITION" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_4_AREA_SECURE" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_5_WATCH_SIX" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_6_SNIPER" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_7_NEED_REINFORCEMENTS" + group "ingamebox" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + itemDef + { + name "window" + text "@QUICKMESSAGE_ESC_EXIT" + rect 0 16 0 0 0 0 + decoration + visible 1 + textaligny 8 + textscale 0.375 + textstyle 3 + textfont 1 + } + } +} diff --git a/ui_mp/scriptmenus/team_marinesopfor.menu b/ui_mp/scriptmenus/team_marinesopfor.menu new file mode 100644 index 0000000..eaf80df --- /dev/null +++ b/ui_mp/scriptmenus/team_marinesopfor.menu @@ -0,0 +1,689 @@ +{ + menuDef + { + name "team_marinesopfor" + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + blurWorld 7 + legacySplitScreenScale + onOpen + { + setfocus team_choose_auto; + } + onESC + { + scriptmenuresponse back; + } + execKey "f" + { + play mouse_click; + open popup_friends; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect -64 0 280 480 1 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.25 + background "gradient_fadein_fadebottom" + } + itemDef + { + text "@MPUI_CHOOSE_TEAM" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + name "fullmap_border" + rect -260 135 240 240 3 1 + decoration + border 1 + borderSize 0.666667 + visible when(!isempjammed()); + textscale 0.55 + bordercolor 1 1 1 0.35 + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + forecolor 0.89 0.98 0.95 0.05 + background "minimap_scanlines" + } + itemDef + { + name "fullmap_map" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 181 + textscale 0.55 + background "compass_map_default" + } + itemDef + { + name "fullmap_friendlies" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 185 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "fullmap_enemies" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 188 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "fullmap_objectives" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 182 + textscale 0.55 + background "objective_line" + } + itemDef + { + name "fullmap_sentries" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 189 + textscale 0.55 + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + name "fullmap_player" + rect -260 135 240 240 3 1 + decoration + type 8 + visible when(!isempjammed()); + ownerdraw 183 + textscale 0.55 + background "compassping_player" + exp forecolor a 1 - radarjamintensity(); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(radarisjammed() && (!isempjammed())); + textscale 0.55 + forecolor 0.64 0.74 0.71 1 + background "white" + exp forecolor a radarjamintensity(); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(radarisjammed() && (!isempjammed())); + textscale 0.55 + forecolor 0.89 0.98 0.95 1 + background "ac130_overlay_grain" + exp forecolor a radarjamintensity(); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + background "stencil_base" + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + background "scanlines_stencil" + exp rect y (135 - 240) + ((240 * 2) * (1 - ((milliseconds() % 4000) / 4000))); + } + itemDef + { + rect -260 135 240 240 3 1 + style 3 + decoration + visible when(!isempjammed()); + textscale 0.55 + forecolor 0.89 0.98 0.95 1 + background "stencil_fill" + } + itemDef + { + rect -260 115 -136 20 3 1 + style 1 + decoration + visible when(!isempjammed()); + textalign 4 + textalignx 4 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.35 + background "gradient_fadein" + exp text getmapname(); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when(localvarstring("ui_team") == "marines"); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Allies); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when(localvarstring("ui_team") == "opfor"); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Axis); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "marines")); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Allies); + } + itemDef + { + rect 10 58 128 128 1 1 + style 3 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "opfor")); + textscale 0.55 + forecolor 1 1 1 0.275 + exp material dvarstring(g_TeamIcon_Axis); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when(team("name") == "TEAM_ALLIES"); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Allies); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "marines")); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Allies); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when(team("name") == "TEAM_AXIS"); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Axis); + } + itemDef + { + rect 10 196 128 128 1 1 + decoration + visible when((team("name") == "TEAM_FREE") && (localvarstring("ui_team") == "opfor")); + textalign 1 + textaligny 10 + textscale 0.4583 + textstyle 6 + textfont 6 + forecolor 1 1 1 0.2 + exp text "@" + dvarstring(g_TeamName_Axis); + } + itemDef + { + name "team_choose_spectator" + text "@MPUI_SPECTATOR" + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + visible when(team("name") != "TEAM_SPECTATOR"); + disabled when((team("name") == "TEAM_SPECTATOR") || (!dvarbool(scr_game_spectatetype))); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse spectator; + } + } + itemDef + { + name "team_choose_axis" + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(team("name") == "TEAM_AXIS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse axis; + } + exp text "@" + dvarstring(g_TeamName_Axis); + } + itemDef + { + name "team_choose_allies" + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + visible 1 + disabled when(team("name") == "TEAM_ALLIES"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse allies; + } + exp text "@" + dvarstring(g_TeamName_Allies); + } + itemDef + { + rect 0 88 216 1 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "team_choose_auto" + text "@MPUI_AUTOASSIGN" + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + scriptmenuresponse autoassign; + } + } + itemDef + { + rect 0 108 216 1 1 1 + style 3 + decoration + visible when(team("name") == "TEAM_SPECTATOR"); + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + name "team_choose_endgame" + text "@MPUI_END_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible when((team("name") == "TEAM_SPECTATOR") && (dvarbool(onlineunrankedgameandhost) || dvarbool(sv_running))); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + open popup_endgame; + } + } + itemDef + { + name "team_choose_leavegame" + text "@MPUI_LEAVE_GAME" + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + visible when((team("name") == "TEAM_SPECTATOR") && ((!dvarbool(onlineunrankedgameandhost)) && (!dvarbool(sv_running)))); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if ((inprivateparty() && (!privatepartyhost())) && privatepartyhostinlobby()) + { + open popup_leavegameandparty; + } + else + { + open popup_leavegame; + } + } + } + itemDef + { + text "@PLATFORM_FRIENDS_CAPS" + group "mw2_button" + rect -64 -40 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + open popup_friends; + } + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + escape self; + } + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + open popup_summary; + } + } + } +} diff --git a/ui_mp/security_increase_popmenu.menu b/ui_mp/security_increase_popmenu.menu new file mode 100644 index 0000000..df61718 --- /dev/null +++ b/ui_mp/security_increase_popmenu.menu @@ -0,0 +1,315 @@ +{ + menuDef + { + name "security_increase_popmenu" + rect -150 -84 300 116 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + uiScript security_increase_cancel; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 992 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 992 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 116 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 32 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -512 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 56 + (3 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (32 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -63 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 56 + (3 * 20); + } + itemDef + { + text "@MPUI_SECURITY_INCREASE_MESSAGE" + rect 0 15 300 40 2 2 + decoration + autowrapped + type 1 + visible 1 + textalign 5 + textaligny 10 + textscale 0.4 + } + itemDef + { + text "@MPUI_PLEASE_WAIT" + rect 0 60 300 40 2 2 + decoration + type 1 + visible 1 + textalign 6 + textalignx -120 + textaligny 10 + textscale 0.4 + } + itemDef + { + rect 0 60 300 40 2 2 + decoration + type 1 + visible when((((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.25) && (((sin(milliseconds() * 0.005) + 1) * 0.5) <= 0.5)); + textalign 5 + textalignx 38 + textaligny 10 + textscale 0.4 + exp text "."; + } + itemDef + { + rect 0 60 300 40 2 2 + decoration + type 1 + visible when((((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.5) && (((sin(milliseconds() * 0.005) + 1) * 0.5) <= 0.75)); + textalign 5 + textalignx 38 + textaligny 10 + textscale 0.4 + exp text ".."; + } + itemDef + { + rect 0 60 300 40 2 2 + decoration + type 1 + visible when(((sin(milliseconds() * 0.005) + 1) * 0.5) > 0.75); + textalign 5 + textalignx 38 + textaligny 10 + textscale 0.4 + exp text "..."; + } + itemDef + { + text "@MENU_SECURITY_INCREASE" + rect 0 0 300 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textalignx -4 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + name "cancel" + text "@MENU_CANCEL" + group "mw2_popup_button" + rect 6 96 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/serverinfo_popmenu.menu b/ui_mp/serverinfo_popmenu.menu new file mode 100644 index 0000000..856a4cc --- /dev/null +++ b/ui_mp/serverinfo_popmenu.menu @@ -0,0 +1,575 @@ +{ + menuDef + { + name "serverinfo_popmenu" + rect -250 -204 520 370 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + uiScript ServerStatus; + setLocalVarInt ui_centerPopup 1; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + execKeyInt 171 + { + play mouse_click; + uiScript ServerStatus; + } + itemDef + { + rect 0 0 520 370 2 2 + style 1 + decoration + visible 1 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + visible 1 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 520 370 2 2 + style 1 + decoration + visible 1 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 520 370 2 2 + style 3 + decoration + visible 1 + background "mockup_popup_bg_stencilfill" + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -110 -1708 -480 2 2 + style 3 + decoration + visible 1 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 520 0 1 1 + style 3 + decoration + visible 1 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 520 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 520 -64 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 520 0 64 370 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 520 370 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 370 520 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -64 370 64 64 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -64 0 64 370 2 2 + style 3 + decoration + visible 1 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + rect 0 0 520 18 2 2 + style 1 + decoration + visible 1 + textalign 1 + textaligny 18 + textscale 0.375 + textfont 9 + backcolor 0 0 0 0.7 + background "gradient_fadein" + exp text dvarstring(uiSi_ServerName); + } + itemDef + { + rect 12 20 310 20 0 0 + style 1 + decoration + visible 1 + textaligny 18 + textscale 0.35 + textfont 1 + backcolor 0 0 0 0.8 + background "menu_setting_selection_bar" + exp text "@MPUI_MAX_CLIENTS"; + } + itemDef + { + rect 12 20 310 20 0 0 + decoration + visible 1 + textalign 2 + textalignx -40 + textaligny 18 + textscale 0.35 + textfont 1 + exp text dvarstring(uiSi_MaxClients); + } + itemDef + { + rect 12 40 310 20 0 0 + style 1 + decoration + visible 1 + textaligny 18 + textscale 0.35 + textfont 1 + backcolor 0 0 0 0.8 + background "menu_setting_selection_bar" + exp text "@MPUI_IS_PRIVATE"; + } + itemDef + { + rect 12 40 310 20 0 0 + decoration + visible 1 + textalign 2 + textalignx -40 + textaligny 18 + textscale 0.35 + textfont 1 + exp text dvarstring(uiSi_isPrivate); + } + itemDef + { + rect 12 60 310 20 0 0 + style 1 + decoration + visible 1 + textaligny 18 + textscale 0.35 + textfont 1 + backcolor 0 0 0 0.8 + background "menu_setting_selection_bar" + exp text "@MPUI_RULES_HARDCORE"; + } + itemDef + { + rect 12 60 310 20 0 0 + decoration + visible 1 + textalign 2 + textalignx -40 + textaligny 18 + textscale 0.35 + textfont 1 + exp text dvarstring(uiSi_Hardcore); + } + itemDef + { + rect 12 80 310 20 0 0 + style 1 + decoration + visible 1 + textaligny 18 + textscale 0.35 + textfont 1 + backcolor 0 0 0 0.8 + background "menu_setting_selection_bar" + exp text "@MPUI_RULES_AIMASSIST"; + } + itemDef + { + rect 12 80 310 20 0 0 + decoration + visible 1 + textalign 2 + textalignx -40 + textaligny 18 + textscale 0.35 + textfont 1 + exp text dvarstring(uiSi_aimAssist); + } + itemDef + { + rect 12 100 310 20 0 0 + style 1 + decoration + visible 1 + textaligny 18 + textscale 0.35 + textfont 1 + backcolor 0 0 0 0.8 + background "menu_setting_selection_bar" + exp text "@MPUI_RULES_VOICECHAT"; + } + itemDef + { + rect 12 100 310 20 0 0 + decoration + visible 1 + textalign 2 + textalignx -40 + textaligny 18 + textscale 0.35 + textfont 1 + exp text dvarstring(uiSi_voiceChat); + } + itemDef + { + rect 12 120 310 20 0 0 + style 1 + decoration + visible 1 + textaligny 18 + textscale 0.35 + textfont 1 + backcolor 0 0 0 0.8 + background "menu_setting_selection_bar" + exp text "@MPUI_MOD"; + } + itemDef + { + rect 12 120 310 20 0 0 + decoration + visible 1 + textalign 2 + textalignx -40 + textaligny 18 + textscale 0.35 + textfont 1 + exp text dvarstring(uiSi_ModName); + } + itemDef + { + name "mappreview" + rect 332 22 176 100 0 0 + style 3 + visible when(dvarstring(uiSi_MapName) == ""); + exp material "loadscreen_mp_bonusmaps"; + } + itemDef + { + rect 332 22 176 14 0 0 + style 1 + decoration + visible when(dvarstring(uiSi_MapName) == ""); + textalign 2 + textalignx -4 + textaligny 13 + textscale 0.3 + backcolor 0 0 0 0.4 + exp text dvarstring(uiSi_MapNameLoc); + } + itemDef + { + rect 332 108 176 14 0 0 + style 1 + decoration + visible when(dvarstring(uiSi_MapName) == ""); + textalign 2 + textalignx -4 + textaligny 14 + textscale 0.3 + backcolor 0 0 0 0.4 + exp text dvarstring(uiSi_GameType); + } + itemDef + { + name "mappreview" + rect 332 22 176 100 0 0 + style 3 + visible when(dvarstring(uiSi_MapName) != ""); + exp material "preview_" + dvarstring(uiSi_MapName); + } + itemDef + { + rect 332 22 176 14 0 0 + style 1 + decoration + visible when(dvarstring(uiSi_MapName) != ""); + textalign 2 + textalignx -4 + textaligny 13 + textscale 0.3 + backcolor 0 0 0 0.4 + exp text dvarstring(uiSi_MapNameLoc); + } + itemDef + { + rect 332 108 176 14 0 0 + style 1 + decoration + visible when(dvarstring(uiSi_MapName) != ""); + textalign 2 + textalignx -4 + textaligny 14 + textscale 0.3 + backcolor 0 0 0 0.4 + exp text dvarstring(uiSi_GameType); + } + itemDef + { + rect 332 121 176 20 0 0 + style 1 + decoration + visible 1 + textaligny 18 + textscale 0.35 + textfont 1 + backcolor 0 0 0 0.8 + background "menu_setting_selection_bar" + exp text "@MPUI_SECURITY_LEVEL"; + } + itemDef + { + rect 332 121 176 20 0 0 + decoration + visible 1 + textalign 2 + textalignx -20 + textaligny 18 + textscale 0.35 + textfont 1 + exp text dvarstring(uiSi_SecurityLevel); + } + itemDef + { + name "num" + text "#" + rect 16 162 30 18 0 0 + visible 1 + textalignx 4 + textscale 0.3 + textfont 1 + } + itemDef + { + name "name" + text "@MENU_NAME" + rect 88 162 30 18 0 0 + visible 1 + textalignx 4 + textscale 0.3 + textfont 1 + } + itemDef + { + name "score" + text "@MPUI_SCORE" + rect 353 162 30 18 0 0 + visible 1 + textalignx 4 + textscale 0.3 + textfont 1 + } + itemDef + { + name "ping" + text "@MENU_PING" + rect 455 162 30 18 0 0 + visible 1 + textalignx 4 + textscale 0.3 + textfont 1 + } + itemDef + { + rect 12 164 496 160 0 0 + style 1 + type 6 + border 1 + borderSize 1 + visible 1 + textscale 0.25 + textfont 1 + backcolor 0 0 0 0.5 + bordercolor 1 1 1 0.1 + notselectable + elementwidth 120 + elementheight 16 + feeder 13 + columns 4 + 8 2 2 0 + 80 16 16 0 + 345 4 4 0 + 447 4 4 0 + } + itemDef + { + text "@PLATFORM_REFRESH" + group "mw2_popup_button" + rect 6 330 512 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + uiScript ServerStatus; + } + } + itemDef + { + text "@MENU_CLOSE" + group "mw2_popup_button" + rect 6 350 512 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + onFocus + { + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_popupAButton 1; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_popupAButton 0; + } + mouseEnter + { + play mouse_over; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/settings_bonus_map.menu b/ui_mp/settings_bonus_map.menu new file mode 100644 index 0000000..30450cb --- /dev/null +++ b/ui_mp/settings_bonus_map.menu @@ -0,0 +1,875 @@ +{ + menuDef + { + name "settings_bonus_map" + fullscreen 1 + rect 0 0 640 480 0 0 + style 1 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + onOpen + { + focusFirst; + setfocusbydvar ui_mapname; + } + onESC + { + close self; + close settings_map; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((- 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 28 640 356 4 1 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.15 + background "white" + } + itemDef + { + rect -32 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -4 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 640 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 640 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 640 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 384 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -32 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -32 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + text "@MENU_CHOOSE_MAP_CAP" + rect 0 0 272 28 1 1 + decoration + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + group "mw2_button" + rect -64 28 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_COMPLEX; + setLocalVarString ui_info_desc PATCH_DESC_MAP_COMPLEX; + setLocalVarString ui_info_icon preview_mp_complex; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!4) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_complex; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_complex" } + exp text "@" + "PATCH_COMPLEX"; + exp forecolor a 0.45 + (0.55 * 4); + } + itemDef + { + group "mw2_button" + rect -64 48 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name MPUI_CRASH; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CRASH; + setLocalVarString ui_info_icon preview_mp_crash; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!4) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_crash; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_crash" } + exp text "@" + "MPUI_CRASH"; + exp forecolor a 0.45 + (0.55 * 4); + } + itemDef + { + group "mw2_button" + rect -64 68 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name MPUI_OVERGROWN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_OVERGROWN; + setLocalVarString ui_info_icon preview_mp_overgrown; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!4) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_overgrown; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_overgrown" } + exp text "@" + "MPUI_OVERGROWN"; + exp forecolor a 0.45 + (0.55 * 4); + } + itemDef + { + group "mw2_button" + rect -64 88 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_COMPACT; + setLocalVarString ui_info_desc PATCH_DESC_MAP_COMPACT; + setLocalVarString ui_info_icon preview_mp_compact; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!4) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_compact; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_compact" } + exp text "@" + "PATCH_COMPACT"; + exp forecolor a 0.45 + (0.55 * 4); + } + itemDef + { + group "mw2_button" + rect -64 108 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_STORM; + setLocalVarString ui_info_desc PATCH_DESC_MAP_STORM; + setLocalVarString ui_info_icon preview_mp_storm; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!4) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_storm; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_storm" } + exp text "@" + "PATCH_STORM"; + exp forecolor a 0.45 + (0.55 * 4); + } + itemDef + { + rect 0 128 216 1 1 1 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.65 + background "gradient_fadein" + } + itemDef + { + group "mw2_button" + rect -64 128 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_ABANDON; + setLocalVarString ui_info_desc PATCH_DESC_MAP_ABANDON; + setLocalVarString ui_info_icon preview_mp_abandon; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!8) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_abandon; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_abandon" } + exp text "@" + "PATCH_ABANDON"; + exp forecolor a 0.45 + (0.55 * 8); + } + itemDef + { + group "mw2_button" + rect -64 148 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_FUEL2; + setLocalVarString ui_info_desc PATCH_DESC_MAP_FUEL2; + setLocalVarString ui_info_icon preview_mp_fuel2; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!8) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_fuel2; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_fuel2" } + exp text "@" + "PATCH_FUEL2"; + exp forecolor a 0.45 + (0.55 * 8); + } + itemDef + { + group "mw2_button" + rect -64 168 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_STRIKE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_STRIKE; + setLocalVarString ui_info_icon preview_mp_strike; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!8) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_strike; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_strike" } + exp text "@" + "PATCH_STRIKE"; + exp forecolor a 0.45 + (0.55 * 8); + } + itemDef + { + group "mw2_button" + rect -64 188 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_TRAILERPARK; + setLocalVarString ui_info_desc PATCH_DESC_MAP_TRAILERPARK; + setLocalVarString ui_info_icon preview_mp_trailerpark; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!8) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_trailerpark; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_trailerpark" } + exp text "@" + "PATCH_TRAILERPARK"; + exp forecolor a 0.45 + (0.55 * 8); + } + itemDef + { + group "mw2_button" + rect -64 208 336 20 1 1 + style 1 + type 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + if (dvarstring(gameMode) != "mp") + { + setItemColor mw2_button backcolor 0 0 0 0; + } + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + setLocalVarString ui_info_name PATCH_VACANT; + setLocalVarString ui_info_desc PATCH_DESC_MAP_VACANT; + setLocalVarString ui_info_icon preview_mp_vacant; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + if (!8) + { + exec xshowmarketplace; + } + else + { + setdvar ui_mapname mp_vacant; + close settings_map; + close self; + } + } + dvarTest "ui_mapname" + focusDvar { "mp_vacant" } + exp text "@" + "PATCH_VACANT"; + exp forecolor a 0.45 + (0.55 * 8); + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + escape self; + } + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + open popup_summary; + } + } + itemDef + { + rect -292 28 292 356 3 1 + style 3 + decoration + textscale 0.55 + forecolor 0 0 0 0.7 + background "black" + } + itemDef + { + name "mapimage" + rect -282 50 272 153 3 1 + style 3 + decoration + textscale 0.55 + exp material localvarstring("ui_info_icon"); + } + itemDef + { + name "longname" + rect -282 28 272 22 3 1 + decoration + textalign 4 + textscale 0.375 + textfont 9 + exp text "@" + localvarstring("ui_info_name"); + } + itemDef + { + name "description" + rect -282 203 272 20 3 1 + decoration + autowrapped + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + localvarstring("ui_info_desc"); + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_BACK_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + escape self; + } + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible when("@PLATFORM_BACK_CAPS" == "@PLATFORM_GAME_SUMMARY_CAPS"); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + play mouse_click; + open popup_summary; + } + } + } +} diff --git a/ui_mp/settings_gametype.menu b/ui_mp/settings_gametype.menu new file mode 100644 index 0000000..b8dcc0a --- /dev/null +++ b/ui_mp/settings_gametype.menu @@ -0,0 +1,739 @@ +{ + menuDef + { + name "settings_gametype" + fullscreen 1 + rect 0 0 640 480 0 0 + style 1 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + focusfirst; + setfocusbydvar ui_gametype; + setLocalVarBool ui_more_gametypes 0; + } + onClose + { + execNow xupdatepartystate; + } + onESC + { + close settings_gametype; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((- 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + text "@MENU_CHOOSE_GAME_MODE_CAP" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.44 + textfont 9 + } + itemDef + { + rect 0 28 640 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.15 + background "white" + } + itemDef + { + rect -32 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -4 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 640 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 640 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 640 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 384 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -32 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -32 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + group "mw2_button" + rect -64 28 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "dm", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "dm", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "dm", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "dm", 3); + } + action + { + play mouse_click; + setDvar ui_gametype dm; + setDvar g_gametype dm; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "dm", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 48 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "war", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "war", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "war", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "war", 3); + } + action + { + play mouse_click; + setDvar ui_gametype war; + setDvar g_gametype war; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "war", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 68 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "sd", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "sd", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "sd", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "sd", 3); + } + action + { + play mouse_click; + setDvar ui_gametype sd; + setDvar g_gametype sd; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "sd", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 88 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "sab", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "sab", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "sab", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "sab", 3); + } + action + { + play mouse_click; + setDvar ui_gametype sab; + setDvar g_gametype sab; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "sab", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 108 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "dom", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "dom", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "dom", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "dom", 3); + } + action + { + play mouse_click; + setDvar ui_gametype dom; + setDvar g_gametype dom; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "dom", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 128 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "koth", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "koth", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "koth", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "koth", 3); + } + action + { + play mouse_click; + setDvar ui_gametype koth; + setDvar g_gametype koth; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "koth", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 148 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "ctf", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "ctf", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "ctf", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "ctf", 3); + } + action + { + play mouse_click; + setDvar ui_gametype ctf; + setDvar g_gametype ctf; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "ctf", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 168 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "dd", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "dd", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "dd", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "dd", 3); + } + action + { + play mouse_click; + setDvar ui_gametype dd; + setDvar g_gametype dd; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "dd", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 188 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "vip", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "vip", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "vip", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "vip", 3); + } + action + { + play mouse_click; + setDvar ui_gametype vip; + setDvar g_gametype vip; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "vip", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 208 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "gtnw", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "gtnw", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "gtnw", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "gtnw", 3); + } + action + { + play mouse_click; + setDvar ui_gametype gtnw; + setDvar g_gametype gtnw; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "gtnw", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 228 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "oneflag", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "oneflag", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "oneflag", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "oneflag", 3); + } + action + { + play mouse_click; + setDvar ui_gametype oneflag; + setDvar g_gametype oneflag; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "oneflag", 1)) + "_CAPS"; + } + itemDef + { + group "mw2_button" + rect -64 248 316 20 1 1 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarString ui_info_name "@" + tablelookup("mp/gameTypesTable.csv", 0, "arena", 1); + setLocalVarString ui_info_desc "@" + tablelookup("mp/gameTypesTable.csv", 0, "arena", 2); + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "arena", 3); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + setLocalVarString ui_info_name "@NULL_EMPTY"; + setLocalVarString ui_info_desc "@NULL_EMPTY"; + setLocalVarString ui_info_icon tablelookup("mp/gameTypesTable.csv", 0, "arena", 3); + } + action + { + play mouse_click; + setDvar ui_gametype arena; + setDvar g_gametype arena; + execOnDvarIntValue splitscreen 1 "exec default_splitscreen.cfg"; + execOnDvarIntValue systemlink 1 "exec default_systemlink.cfg"; + execOnDvarIntValue xblive_privatematch 1 "exec default_xboxlive.cfg"; + close self; + } + exp text ("@" + tablelookup("mp/gameTypesTable.csv", 0, "arena", 1)) + "_CAPS"; + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect 0 0 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarBool ui_menuAButton 1; + } + action + { + play mouse_click; + close self; + } + } + itemDef + { + rect -272 28 272 356 3 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 0.7 + background "black" + } + itemDef + { + rect -272 28 264 200 3 1 + decoration + visible 1 + textalign 4 + textalignx 8 + textscale 0.375 + textfont 9 + exp text localvarstring("ui_info_name"); + } + itemDef + { + rect -272 28 264 200 3 1 + decoration + autowrapped + visible 1 + textalign 4 + textalignx 8 + textaligny 20 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text localvarstring("ui_info_desc"); + } + } +} diff --git a/ui_mp/settings_map.menu b/ui_mp/settings_map.menu new file mode 100644 index 0000000..ba5ff23 --- /dev/null +++ b/ui_mp/settings_map.menu @@ -0,0 +1,2996 @@ +{ + menuDef + { + name "settings_map" + fullscreen 1 + rect 0 0 640 480 0 0 + focuscolor 1 1 1 1 + soundLoop "music_mainmenu_mp" + fadeClamp 1 + fadeCycle 1 + fadeAmount 0.1 + onOpen + { + focusFirst; + uiScript ApplyInitialMap; + } + onClose + { + execNow xupdatepartystate; + } + onESC + { + close self; + } + itemDef + { + rect -427 -240 854 480 2 2 + style 3 + decoration + visible when(dvarbool(cl_ingame) || dvarbool(sv_running)); + textscale 0.55 + forecolor 0 0 0 0.4 + background "white" + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when((dvarstring(fs_game) == "") && (!(dvarbool(cl_ingame) || dvarbool(sv_running)))); + textscale 0.55 + background "mw2_main_background" + } + itemDef + { + rect 0 0 1708 480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x (0 - 107) - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 0 0 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.5 + background "mw2_main_cloud_overlay" + exp rect x ((0 - 107) + 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.523696 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 1500) + 1) * 0.25) + 0.25; + } + itemDef + { + rect 0 0 640 480 4 4 + style 3 + decoration + visible when(!(dvarbool(cl_ingame) || dvarbool(sv_running))); + textscale 0.55 + forecolor 1 1 1 0.476023 + background "mockup_bg_glow" + exp forecolor a ((sin(milliseconds() / 480) + 1) * 0.25) + 0.25; + } + itemDef + { + text "@MPUI_MOD" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + } + itemDef + { + name "mod" + rect -40 0 300 20 0 1 + decoration + visible when((dvarstring(fs_game) != "") && (dvarint(cl_ingame) == 0)); + textalignx 16 + textaligny -4 + textscale 0.2 + forecolor 1 1 1 0.8 + exp text dvarstring(fs_game); + } + itemDef + { + rect 0 28 640 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.15 + background "white" + } + itemDef + { + rect -32 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -4 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 640 -4 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 640 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + } + itemDef + { + rect 640 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + } + itemDef + { + rect 0 384 640 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + } + itemDef + { + rect -32 384 32 32 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + } + itemDef + { + rect -32 28 32 356 4 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + } + itemDef + { + text "@MENU_CHOOSE_MAP_CAP" + rect 0 0 272 28 1 1 + decoration + visible 1 + textalign 6 + textalignx -60 + textscale 0.5 + textfont 9 + } + itemDef + { + text "@PLATFORM_BACK_CAPS" + group "mw2_button" + rect -64 -20 336 20 1 3 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + escape self; + close self; + } + } + itemDef + { + rect -64 28 336 20 1 1 + style 3 + decoration + visible when(getfocuseditemname() == "dlc_list_1"); + forecolor 0 0 0 1 + background "menu_button_selection_bar" + } + itemDef + { + name "dlc_list_1" + group "mw2_button" + rect -64 28 280 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 124 + textscale 0.375 + textfont 1 + forecolor 0.5 1 0.5 1 + disablecolor 1 1 1 0.5 + onFocus + { + setLocalVarString ui_info_name MP_ORIGINAL_MAPS; + setLocalVarString ui_info_desc NULL_EMPTY; + setLocalVarString ui_info_icon loadscreen_mp_bonusmaps; + play mouse_over; + setLocalVarInt ui_menuAButton 0; + setLocalVarString ui_choicegroup settings_map; + } + leaveFocus + { + setItemColor dlc_list_1 backcolor 0 0 0 0; + setLocalVarInt ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar iw4x_maps_dlc 0; + } + exp text "@MP_ORIGINAL_MAPS"; + } + itemDef + { + rect -64 48 336 20 1 1 + style 3 + decoration + visible when(getfocuseditemname() == "dlc_list_2"); + forecolor 0 0 0 1 + background "menu_button_selection_bar" + } + itemDef + { + name "dlc_list_2" + group "mw2_button" + rect -64 48 280 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 124 + textscale 0.375 + textfont 1 + forecolor 0.5 1 0.5 1 + disablecolor 1 1 1 0.5 + onFocus + { + setLocalVarString ui_info_name PATCH_DLC1; + setLocalVarString ui_info_desc PATCH_DESC_DLC1; + setLocalVarString ui_info_icon preview_stimulus_dlc; + play mouse_over; + setLocalVarInt ui_menuAButton 1; + setLocalVarString ui_choicegroup settings_map; + } + leaveFocus + { + 1 setItemColor dlc_list_2 backcolor 0 0 0 0; + setLocalVarInt ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar iw4x_maps_dlc 1; + } + exp text "@PATCH_DLC1"; + } + itemDef + { + rect -64 68 336 20 1 1 + style 3 + decoration + visible when(getfocuseditemname() == "dlc_list_3"); + forecolor 0 0 0 1 + background "menu_button_selection_bar" + } + itemDef + { + name "dlc_list_3" + group "mw2_button" + rect -64 68 280 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 124 + textscale 0.375 + textfont 1 + forecolor 0.5 1 0.5 1 + disablecolor 1 1 1 0.5 + onFocus + { + setLocalVarString ui_info_name PATCH_DLC2; + setLocalVarString ui_info_desc PATCH_DESC_DLC2; + setLocalVarString ui_info_icon preview_resurgence_dlc; + play mouse_over; + setLocalVarInt ui_menuAButton 2; + setLocalVarString ui_choicegroup settings_map; + } + leaveFocus + { + 1 setItemColor dlc_list_3 backcolor 0 0 0 0; + setLocalVarInt ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar iw4x_maps_dlc 2; + } + exp text "@PATCH_DLC2"; + } + itemDef + { + rect -64 88 336 20 1 1 + style 3 + decoration + visible when(getfocuseditemname() == "dlc_list_4"); + forecolor 0 0 0 1 + background "menu_button_selection_bar" + } + itemDef + { + name "dlc_list_4" + group "mw2_button" + rect -64 88 280 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 124 + textscale 0.375 + textfont 1 + forecolor 0.5 1 0.5 1 + disablecolor 1 1 1 0.5 + onFocus + { + setLocalVarString ui_info_name PATCH_IW4X_DLC; + setLocalVarString ui_info_desc PATCH_DESC_IW4X_DLC; + setLocalVarString ui_info_icon preview_codo_dlc; + play mouse_over; + setLocalVarInt ui_menuAButton 3; + setLocalVarString ui_choicegroup settings_map; + } + leaveFocus + { + 1 setItemColor dlc_list_4 backcolor 0 0 0 0; + setLocalVarInt ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar iw4x_maps_dlc 3; + } + exp text "@PATCH_IW4X_DLC"; + } + itemDef + { + rect -64 108 336 20 1 1 + style 3 + decoration + visible when(getfocuseditemname() == "dlc_list_5"); + forecolor 0 0 0 1 + background "menu_button_selection_bar" + } + itemDef + { + name "dlc_list_5" + group "mw2_button" + rect -64 108 280 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 124 + textscale 0.375 + textfont 1 + forecolor 0.5 1 0.5 1 + disablecolor 1 1 1 0.5 + onFocus + { + setLocalVarString ui_info_name PATCH_COD4_DLC; + setLocalVarString ui_info_desc PATCH_DESC_COD4_DLC; + setLocalVarString ui_info_icon preview_cod4_dlc; + play mouse_over; + setLocalVarInt ui_menuAButton 4; + setLocalVarString ui_choicegroup settings_map; + } + leaveFocus + { + 1 setItemColor dlc_list_5 backcolor 0 0 0 0; + setLocalVarInt ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar iw4x_maps_dlc 4; + } + exp text "@PATCH_COD4_DLC"; + } + itemDef + { + rect -64 128 336 20 1 1 + style 3 + decoration + visible when(getfocuseditemname() == "dlc_list_6"); + forecolor 0 0 0 1 + background "menu_button_selection_bar" + } + itemDef + { + name "dlc_list_6" + group "mw2_button" + rect -64 128 280 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 124 + textscale 0.375 + textfont 1 + forecolor 0.5 1 0.5 1 + disablecolor 1 1 1 0.5 + onFocus + { + setLocalVarString ui_info_name PATCH_MW3_DLC; + setLocalVarString ui_info_desc PATCH_DESC_MW3_DLC; + setLocalVarString ui_info_icon preview_mw3_dlc; + play mouse_over; + setLocalVarInt ui_menuAButton 5; + setLocalVarString ui_choicegroup settings_map; + } + leaveFocus + { + 1 setItemColor dlc_list_6 backcolor 0 0 0 0; + setLocalVarInt ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar iw4x_maps_dlc 5; + } + exp text "@PATCH_MW3_DLC"; + } + itemDef + { + rect -64 148 336 20 1 1 + style 3 + decoration + visible when(getfocuseditemname() == "dlc_list_custom"); + forecolor 0 0 0 1 + background "menu_button_selection_bar" + } + itemDef + { + name "dlc_list_custom" + group "mw2_button" + rect -64 148 280 20 1 1 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 124 + textscale 0.375 + textfont 1 + forecolor 0.5 1 0.5 1 + disablecolor 1 1 1 0.5 + onFocus + { + setLocalVarString ui_info_name CUSTOM_MAPS_DLC; + setLocalVarString ui_info_desc DESC_CUSTOM_MAPS_DLC; + setLocalVarString ui_info_icon preview_custom_maps; + play mouse_over; + setLocalVarInt ui_menuAButton 6; + setLocalVarString ui_choicegroup settings_map; + } + leaveFocus + { + 1 setItemColor dlc_list_custom backcolor 0 0 0 0; + setLocalVarInt ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar iw4x_maps_dlc 99; + } + exp text "@CUSTOM_MAPS_DLC"; + } + itemDef + { + group "mw2_button" + rect 220 30 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_AFGHAN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_AFGHAN; + setLocalVarString ui_info_icon preview_mp_afghan; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_afghan; + close settings_map; + close self; + } + exp text "@" + "MPUI_AFGHAN"; + } + itemDef + { + group "mw2_button" + rect 220 50 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_DERAIL; + setLocalVarString ui_info_desc MPUI_DESC_MAP_DERAIL; + setLocalVarString ui_info_icon preview_mp_derail; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_derail; + close settings_map; + close self; + } + exp text "@" + "MPUI_DERAIL"; + } + itemDef + { + group "mw2_button" + rect 220 70 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_ESTATE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_ESTATE; + setLocalVarString ui_info_icon preview_mp_estate; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_estate; + close settings_map; + close self; + } + exp text "@" + "MPUI_ESTATE"; + } + itemDef + { + group "mw2_button" + rect 220 90 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_FAVELA; + setLocalVarString ui_info_desc MPUI_DESC_MAP_FAVELA; + setLocalVarString ui_info_icon preview_mp_favela; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_favela; + close settings_map; + close self; + } + exp text "@" + "MPUI_FAVELA"; + } + itemDef + { + group "mw2_button" + rect 220 110 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_HIGHRISE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_HIGHRISE; + setLocalVarString ui_info_icon preview_mp_highrise; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_highrise; + close settings_map; + close self; + } + exp text "@" + "MPUI_HIGHRISE"; + } + itemDef + { + group "mw2_button" + rect 220 130 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_INVASION; + setLocalVarString ui_info_desc MPUI_DESC_MAP_INVASION; + setLocalVarString ui_info_icon preview_mp_invasion; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_invasion; + close settings_map; + close self; + } + exp text "@" + "MPUI_INVASION"; + } + itemDef + { + group "mw2_button" + rect 220 150 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CHECKPOINT; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CHECKPOINT; + setLocalVarString ui_info_icon preview_mp_checkpoint; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_checkpoint; + close settings_map; + close self; + } + exp text "@" + "MPUI_CHECKPOINT"; + } + itemDef + { + group "mw2_button" + rect 220 170 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_QUARRY; + setLocalVarString ui_info_desc MPUI_DESC_MAP_QUARRY; + setLocalVarString ui_info_icon preview_mp_quarry; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_quarry; + close settings_map; + close self; + } + exp text "@" + "MPUI_QUARRY"; + } + itemDef + { + group "mw2_button" + rect 220 190 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_RUNDOWN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_RUNDOWN; + setLocalVarString ui_info_icon preview_mp_rundown; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_rundown; + close settings_map; + close self; + } + exp text "@" + "MPUI_RUNDOWN"; + } + itemDef + { + group "mw2_button" + rect 220 210 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_RUST; + setLocalVarString ui_info_desc MPUI_DESC_MAP_RUST; + setLocalVarString ui_info_icon preview_mp_rust; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_rust; + close settings_map; + close self; + } + exp text "@" + "MPUI_RUST"; + } + itemDef + { + group "mw2_button" + rect 220 230 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_BONEYARD; + setLocalVarString ui_info_desc MPUI_DESC_MAP_BONEYARD; + setLocalVarString ui_info_icon preview_mp_boneyard; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_boneyard; + close settings_map; + close self; + } + exp text "@" + "MPUI_BONEYARD"; + } + itemDef + { + group "mw2_button" + rect 220 250 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_RAID; + setLocalVarString ui_info_desc MPUI_DESC_MAP_NIGHTSHIFT; + setLocalVarString ui_info_icon preview_mp_nightshift; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_nightshift; + close settings_map; + close self; + } + exp text "@" + "MPUI_RAID"; + } + itemDef + { + group "mw2_button" + rect 220 270 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_SUBBASE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_SUBBASE; + setLocalVarString ui_info_icon preview_mp_subbase; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_subbase; + close settings_map; + close self; + } + exp text "@" + "MPUI_SUBBASE"; + } + itemDef + { + group "mw2_button" + rect 220 290 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_TERMINAL; + setLocalVarString ui_info_desc MPUI_DESC_MAP_TERMINAL; + setLocalVarString ui_info_icon preview_mp_terminal; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_terminal; + close settings_map; + close self; + } + exp text "@" + "MPUI_TERMINAL"; + } + itemDef + { + group "mw2_button" + rect 220 310 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_UNDERPASS; + setLocalVarString ui_info_desc MPUI_DESC_MAP_UNDERPASS; + setLocalVarString ui_info_icon preview_mp_underpass; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_underpass; + close settings_map; + close self; + } + exp text "@" + "MPUI_UNDERPASS"; + } + itemDef + { + group "mw2_button" + rect 220 330 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 0); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_WASTELAND; + setLocalVarString ui_info_desc MPUI_DESC_MAP_BRECOURT; + setLocalVarString ui_info_icon preview_mp_brecourt; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_brecourt; + close settings_map; + close self; + } + exp text "@" + "MPUI_WASTELAND"; + } + itemDef + { + group "mw2_button" + rect 220 30 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 1); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_COMPLEX; + setLocalVarString ui_info_desc PATCH_DESC_MAP_COMPLEX; + setLocalVarString ui_info_icon preview_mp_complex; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_complex; + close settings_map; + close self; + } + exp text "@" + "PATCH_COMPLEX"; + } + itemDef + { + group "mw2_button" + rect 220 50 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 1); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CRASH; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CRASH; + setLocalVarString ui_info_icon preview_mp_crash; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_crash; + close settings_map; + close self; + } + exp text "@" + "MPUI_CRASH"; + } + itemDef + { + group "mw2_button" + rect 220 70 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 1); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_OVERGROWN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_OVERGROWN; + setLocalVarString ui_info_icon preview_mp_overgrown; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_overgrown; + close settings_map; + close self; + } + exp text "@" + "MPUI_OVERGROWN"; + } + itemDef + { + group "mw2_button" + rect 220 90 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 1); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_COMPACT; + setLocalVarString ui_info_desc PATCH_DESC_MAP_COMPACT; + setLocalVarString ui_info_icon preview_mp_compact; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_compact; + close settings_map; + close self; + } + exp text "@" + "PATCH_COMPACT"; + } + itemDef + { + group "mw2_button" + rect 220 110 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 1); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_STORM; + setLocalVarString ui_info_desc PATCH_DESC_MAP_STORM; + setLocalVarString ui_info_icon preview_mp_storm; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_storm; + close settings_map; + close self; + } + exp text "@" + "PATCH_STORM"; + } + itemDef + { + group "mw2_button" + rect 220 30 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 2); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_ABANDON; + setLocalVarString ui_info_desc PATCH_DESC_MAP_ABANDON; + setLocalVarString ui_info_icon preview_mp_abandon; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_abandon; + close settings_map; + close self; + } + exp text "@" + "PATCH_ABANDON"; + } + itemDef + { + group "mw2_button" + rect 220 50 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 2); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_FUEL2; + setLocalVarString ui_info_desc PATCH_DESC_MAP_FUEL2; + setLocalVarString ui_info_icon preview_mp_fuel2; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_fuel2; + close settings_map; + close self; + } + exp text "@" + "PATCH_FUEL2"; + } + itemDef + { + group "mw2_button" + rect 220 70 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 2); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_STRIKE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_STRIKE; + setLocalVarString ui_info_icon preview_mp_strike; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_strike; + close settings_map; + close self; + } + exp text "@" + "PATCH_STRIKE"; + } + itemDef + { + group "mw2_button" + rect 220 90 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 2); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_TRAILERPARK; + setLocalVarString ui_info_desc PATCH_DESC_MAP_TRAILERPARK; + setLocalVarString ui_info_icon preview_mp_trailerpark; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_trailerpark; + close settings_map; + close self; + } + exp text "@" + "PATCH_TRAILERPARK"; + } + itemDef + { + group "mw2_button" + rect 220 110 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 2); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name PATCH_VACANT; + setLocalVarString ui_info_desc MPUI_DESC_MAP_VACANT; + setLocalVarString ui_info_icon preview_mp_vacant; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_vacant; + close settings_map; + close self; + } + exp text "@" + "PATCH_VACANT"; + } + itemDef + { + group "mw2_button" + rect 220 30 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_NUKED; + setLocalVarString ui_info_desc MPUI_DESC_MAP_NUKED; + setLocalVarString ui_info_icon preview_mp_nuked; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_nuked; + close settings_map; + close self; + } + exp text "@" + "MPUI_NUKED"; + } + itemDef + { + group "mw2_button" + rect 220 50 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CROSSFIRE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CROSSFIRE; + setLocalVarString ui_info_icon preview_mp_cross_fire; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_cross_fire; + close settings_map; + close self; + } + exp text "@" + "MPUI_CROSSFIRE"; + } + itemDef + { + group "mw2_button" + rect 220 70 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CARGOSHIP; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CARGOSHIP; + setLocalVarString ui_info_icon preview_mp_cargoship; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_cargoship; + close settings_map; + close self; + } + exp text "@" + "MPUI_CARGOSHIP"; + } + itemDef + { + group "mw2_button" + rect 220 90 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_BLOC_SH; + setLocalVarString ui_info_desc MPUI_DESC_MAP_BLOC_SH; + setLocalVarString ui_info_icon preview_mp_bloc_sh; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_bloc_sh; + close settings_map; + close self; + } + exp text "@" + "MPUI_BLOC_SH"; + } + itemDef + { + group "mw2_button" + rect 220 110 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_KILLHOUSE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_KILLHOUSE; + setLocalVarString ui_info_icon preview_mp_killhouse; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_killhouse; + close settings_map; + close self; + } + exp text "@" + "MPUI_KILLHOUSE"; + } + itemDef + { + group "mw2_button" + rect 220 130 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_BOG_SH; + setLocalVarString ui_info_desc MPUI_DESC_MAP_BOG; + setLocalVarString ui_info_icon preview_mp_bog_sh; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_bog_sh; + close settings_map; + close self; + } + exp text "@" + "MPUI_BOG_SH"; + } + itemDef + { + group "mw2_button" + rect 220 150 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CARGOSHIP_SH; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CARGOSHIP_SH; + setLocalVarString ui_info_icon preview_mp_cargoship_sh; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_cargoship_sh; + close settings_map; + close self; + } + exp text "@" + "MPUI_CARGOSHIP_SH"; + } + itemDef + { + group "mw2_button" + rect 220 170 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_SHIPMENT; + setLocalVarString ui_info_desc MPUI_DESC_MAP_SHIPMENT; + setLocalVarString ui_info_icon preview_mp_shipment; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_shipment; + close settings_map; + close self; + } + exp text "@" + "MPUI_SHIPMENT"; + } + itemDef + { + group "mw2_button" + rect 220 190 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_SHIPMENT_LONG; + setLocalVarString ui_info_desc MPUI_DESC_MAP_SHIPMENT_LONG; + setLocalVarString ui_info_icon preview_mp_shipment_long; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_shipment_long; + close settings_map; + close self; + } + exp text "@" + "MPUI_SHIPMENT_LONG"; + } + itemDef + { + group "mw2_button" + rect 220 210 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_RUST_LONG; + setLocalVarString ui_info_desc MPUI_DESC_MAP_RUST_LONG; + setLocalVarString ui_info_icon preview_mp_rust_long; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_rust_long; + close settings_map; + close self; + } + exp text "@" + "MPUI_RUST_LONG"; + } + itemDef + { + group "mw2_button" + rect 220 230 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_FIRINGRANGE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_FIRINGRANGE; + setLocalVarString ui_info_icon preview_mp_firingrange; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_firingrange; + close settings_map; + close self; + } + exp text "@" + "MPUI_FIRINGRANGE"; + } + itemDef + { + group "mw2_button" + rect 220 250 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_BLOC; + setLocalVarString ui_info_desc MPUI_DESC_MAP_BLOC; + setLocalVarString ui_info_icon preview_mp_bloc; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_bloc; + close settings_map; + close self; + } + exp text "@" + "MPUI_BLOC"; + } + itemDef + { + group "mw2_button" + rect 220 270 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CRASH_TROPICAL; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CRASH_TROPICAL; + setLocalVarString ui_info_icon preview_mp_crash_tropical; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_crash_tropical; + close settings_map; + close self; + } + exp text "@" + "MPUI_CRASH_TROPICAL"; + } + itemDef + { + group "mw2_button" + rect 220 290 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_ESTATE_TROPICAL; + setLocalVarString ui_info_desc MPUI_DESC_MAP_ESTATE_TROPICAL; + setLocalVarString ui_info_icon preview_mp_estate_tropical; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_estate_tropical; + close settings_map; + close self; + } + exp text "@" + "MPUI_ESTATE_TROPICAL"; + } + itemDef + { + group "mw2_button" + rect 220 310 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_FAV_TROPICAL; + setLocalVarString ui_info_desc MPUI_DESC_MAP_FAV_TROPICAL; + setLocalVarString ui_info_icon preview_mp_fav_tropical; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_fav_tropical; + close settings_map; + close self; + } + exp text "@" + "MPUI_FAV_TROPICAL"; + } + itemDef + { + group "mw2_button" + rect 220 330 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 3); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_STORM_SPRING; + setLocalVarString ui_info_desc MPUI_DESC_MAP_STORM_SPRING; + setLocalVarString ui_info_icon preview_mp_storm_spring; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_storm_spring; + close settings_map; + close self; + } + exp text "@" + "MPUI_STORM_SPRING"; + } + itemDef + { + group "mw2_button" + rect 220 30 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_FARM; + setLocalVarString ui_info_desc MPUI_DESC_MAP_FARM; + setLocalVarString ui_info_icon preview_mp_farm; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_farm; + close settings_map; + close self; + } + exp text "@" + "MPUI_FARM"; + } + itemDef + { + group "mw2_button" + rect 220 50 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_BACKLOT; + setLocalVarString ui_info_desc MPUI_DESC_MAP_BACKLOT; + setLocalVarString ui_info_icon preview_mp_backlot; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_backlot; + close settings_map; + close self; + } + exp text "@" + "MPUI_BACKLOT"; + } + itemDef + { + group "mw2_button" + rect 220 70 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_PIPELINE; + setLocalVarString ui_info_desc MPUI_DESC_PIPELINE; + setLocalVarString ui_info_icon preview_mp_pipeline; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_pipeline; + close settings_map; + close self; + } + exp text "@" + "MPUI_PIPELINE"; + } + itemDef + { + group "mw2_button" + rect 220 90 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_COUNTDOWN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_COUNTDOWN; + setLocalVarString ui_info_icon preview_mp_countdown; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_countdown; + close settings_map; + close self; + } + exp text "@" + "MPUI_COUNTDOWN"; + } + itemDef + { + group "mw2_button" + rect 220 110 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CRASH_SNOW; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CRASH_SNOW; + setLocalVarString ui_info_icon preview_mp_crash_snow; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_crash_snow; + close settings_map; + close self; + } + exp text "@" + "MPUI_CRASH_SNOW"; + } + itemDef + { + group "mw2_button" + rect 220 130 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CARENTAN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CARENTAN; + setLocalVarString ui_info_icon preview_mp_carentan; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_carentan; + close settings_map; + close self; + } + exp text "@" + "MPUI_CARENTAN"; + } + itemDef + { + group "mw2_button" + rect 220 150 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_BROADCAST; + setLocalVarString ui_info_desc MPUI_DESC_MAP_BROADCAST; + setLocalVarString ui_info_icon preview_mp_broadcast; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_broadcast; + close settings_map; + close self; + } + exp text "@" + "MPUI_BROADCAST"; + } + itemDef + { + group "mw2_button" + rect 220 170 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_SHOWDOWN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_SHOWDOWN; + setLocalVarString ui_info_icon preview_mp_showdown; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_showdown; + close settings_map; + close self; + } + exp text "@" + "MPUI_SHOWDOWN"; + } + itemDef + { + group "mw2_button" + rect 220 190 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CONVOY; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CONVOY; + setLocalVarString ui_info_icon preview_mp_convoy; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_convoy; + close settings_map; + close self; + } + exp text "@" + "MPUI_CONVOY"; + } + itemDef + { + group "mw2_button" + rect 220 210 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 4); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_CITYSTREETS; + setLocalVarString ui_info_desc MPUI_DESC_MAP_CITYSTREETS; + setLocalVarString ui_info_icon preview_mp_citystreets; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_citystreets; + close settings_map; + close self; + } + exp text "@" + "MPUI_CITYSTREETS"; + } + itemDef + { + group "mw2_button" + rect 220 30 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_LOCKDOWN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_LOCKDOWN; + setLocalVarString ui_info_icon preview_mp_alpha; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_alpha; + close settings_map; + close self; + } + exp text "@" + "MPUI_LOCKDOWN"; + } + itemDef + { + group "mw2_button" + rect 220 50 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_MISSION; + setLocalVarString ui_info_desc MPUI_DESC_MAP_MISSION; + setLocalVarString ui_info_icon preview_mp_bravo; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_bravo; + close settings_map; + close self; + } + exp text "@" + "MPUI_MISSION"; + } + itemDef + { + group "mw2_button" + rect 220 70 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_DOME; + setLocalVarString ui_info_desc MPUI_DESC_MAP_DOME; + setLocalVarString ui_info_icon preview_mp_dome; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_dome; + close settings_map; + close self; + } + exp text "@" + "MPUI_DOME"; + } + itemDef + { + group "mw2_button" + rect 220 90 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_HARDHAT; + setLocalVarString ui_info_desc MPUI_DESC_MAP_HARDHAT; + setLocalVarString ui_info_icon preview_mp_hardhat; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_hardhat; + close settings_map; + close self; + } + exp text "@" + "MPUI_HARDHAT"; + } + itemDef + { + group "mw2_button" + rect 220 110 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_RESISTANCE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_RESISTANCE; + setLocalVarString ui_info_icon preview_mp_paris; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_paris; + close settings_map; + close self; + } + exp text "@" + "MPUI_RESISTANCE"; + } + itemDef + { + group "mw2_button" + rect 220 130 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_ARKADEN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_ARKADEN; + setLocalVarString ui_info_icon preview_mp_plaza2; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_plaza2; + close settings_map; + close self; + } + exp text "@" + "MPUI_ARKADEN"; + } + itemDef + { + group "mw2_button" + rect 220 150 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_SEATOWN; + setLocalVarString ui_info_desc MPUI_DESC_MAP_SEATOWN; + setLocalVarString ui_info_icon preview_mp_seatown; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_seatown; + close settings_map; + close self; + } + exp text "@" + "MPUI_SEATOWN"; + } + itemDef + { + group "mw2_button" + rect 220 170 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_UNDERGROUND; + setLocalVarString ui_info_desc MPUI_DESC_MAP_UNDERGROUND; + setLocalVarString ui_info_icon preview_mp_underground; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_underground; + close settings_map; + close self; + } + exp text "@" + "MPUI_UNDERGROUND"; + } + itemDef + { + group "mw2_button" + rect 220 190 148 18 1 1 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 5); + textalign 6 + textalignx -34 + textaligny -1 + textscale 0.375 + textfont 1 + background "menu_rules_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backColor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos 0; + setLocalVarString ui_info_name MPUI_VILLAGE; + setLocalVarString ui_info_desc MPUI_DESC_MAP_VILLAGE; + setLocalVarString ui_info_icon preview_mp_village; + } + leaveFocus + { + setItemColor self backColor 0 0 0 0; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + setdvar ui_mapname mp_village; + close settings_map; + close self; + } + exp text "@" + "MPUI_VILLAGE"; + } + itemDef + { + name "select_custom_map" + text "@MPUI_DONE_SELECTING" + group "mw2_button" + rect 250 -20 96 20 1 3 + style 1 + type 1 + visible when(dvarint(iw4x_maps_dlc) == 99); + textalign 6 + textalignx -60 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "black" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + } + leaveFocus + { + setItemColor self backcolor 0 0 0 0; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + escape self; + uiScript ApplyMap; + close settings_map; + close self; + } + } + itemDef + { + name "maplist_hd" + rect -478 28 185 356 3 1 + style 1 + type 6 + border 1 + borderSize 1 + visible when(dvarbool(widescreen) && (dvarint(iw4x_maps_dlc) == 99)); + textalignx 6 + textscale 0.4 + textfont 1 + backcolor 0 0 0 0.7 + bordercolor 1 1 1 0.15 + outlinecolor 1 1 1 0.2 + onFocus + { + play mouse_over; + setItemColor maplist bordercolor 1 1 1 1; + setLocalVarString ui_info_name localvarstring("ui_info_name"); + setLocalVarString ui_info_desc "Custom usermaps"; + setLocalVarString ui_info_icon loadscreen_mp_bonusmaps; + } + leaveFocus + { + setItemColor maplist bordercolor 1 1 1 "0.15"; + } + elementwidth 120 + elementheight 22 + feeder 60 + } + itemDef + { + rect -292 28 292 356 3 1 + style 3 + decoration + visible when(dvarbool(widescreen)); + textscale 0.55 + forecolor 0 0 0 0.7 + background "black" + } + itemDef + { + name "mapimage" + rect -282 50 272 153 3 1 + style 3 + decoration + visible when(((localvarstring("ui_info_icon") != "") && dvarbool(widescreen)) && (dvarint(iw4x_maps_dlc) != 99)); + textscale 0.55 + exp material localvarstring("ui_info_icon"); + } + itemDef + { + name "longname" + rect -282 28 272 22 3 1 + decoration + visible when(dvarbool(widescreen)); + textalign 4 + textscale 0.375 + textfont 9 + exp text "@" + localvarstring("ui_info_name"); + } + itemDef + { + name "description" + rect -282 203 272 20 3 1 + decoration + autowrapped + visible when(dvarbool(widescreen)); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + localvarstring("ui_info_desc"); + } + itemDef + { + name "maplist_sd" + rect -292 28 120 356 3 1 + style 1 + type 6 + border 1 + borderSize 1 + visible when((!dvarbool(widescreen)) && (dvarint(iw4x_maps_dlc) == 99)); + textalignx 6 + textscale 0.4 + textfont 1 + backcolor 0 0 0 0.7 + bordercolor 1 1 1 0.15 + outlinecolor 1 1 1 0.2 + onFocus + { + play mouse_over; + setItemColor maplist bordercolor 1 1 1 1; + setLocalVarString ui_info_name "Custom Maps"; + setLocalVarString ui_info_desc "Custom usermaps"; + setLocalVarString ui_info_icon loadscreen_mp_bonusmaps; + } + leaveFocus + { + setItemColor maplist bordercolor 1 1 1 "0.15"; + } + elementwidth 120 + elementheight 22 + feeder 60 + } + itemDef + { + rect -172 28 210 356 3 1 + style 3 + decoration + visible when(!dvarbool(widescreen)); + textscale 0.55 + forecolor 0 0 0 0.7 + background "black" + } + itemDef + { + name "mapimage" + rect -162 50 190 133 3 1 + style 3 + decoration + visible when(((localvarstring("ui_info_icon") != "") && (!dvarbool(widescreen))) && (dvarint(iw4x_maps_dlc) != 99)); + textscale 0.55 + exp material localvarstring("ui_info_icon"); + } + itemDef + { + name "longname" + rect -162 28 200 22 3 1 + decoration + visible when(!dvarbool(widescreen)); + textalign 4 + textscale 0.375 + textfont 9 + exp text "@" + localvarstring("ui_info_name"); + } + itemDef + { + name "description" + rect -162 186 200 20 3 1 + decoration + autowrapped + visible when(!dvarbool(widescreen)); + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + exp text "@" + localvarstring("ui_info_desc"); + } + } +} diff --git a/ui_mp/startup_messages.menu b/ui_mp/startup_messages.menu new file mode 100644 index 0000000..6e74844 --- /dev/null +++ b/ui_mp/startup_messages.menu @@ -0,0 +1,273 @@ +{ + menuDef + { + name "startup_messages" + rect -150 -124 300 124 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + visible 1 + onOpen + { + focusfirst; + } + onESC + { + close self; + } + itemDef + { + rect -854 -480 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -854 -480 1708 960 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 300 124 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect 0 0 1708 480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 300 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (5 * 20); + } + itemDef + { + rect 0 0 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect 0 0 300 0 1 1 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (5 * 20); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 300 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 300 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (5 * 20); + } + itemDef + { + rect 300 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (5 * 20)); + } + itemDef + { + rect 0 0 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (5 * 20)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (5 * 20)); + } + itemDef + { + rect -64 0 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (5 * 20); + } + itemDef + { + rect 0 0 300 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + exp text dvarstring(ui_startupMessageTitle); + } + itemDef + { + group "mw2_button" + rect 4 24 292 20 2 2 + style 1 + decoration + autowrapped + type 1 + visible 1 + textalign 5 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + disablecolor 0.6 0.55 0.55 1 + action + { + play mouse_click; + } + exp text dvarstring(ui_startupMessage); + } + itemDef + { + group "mw2_popup_button" + rect 4 104 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + uiScript nextStartupMessage; + if (dvarstring(ui_startupNextButtonText) == "Close") + { + close self; + } + } + exp text dvarstring(ui_startupNextButtonText); + } + } +} diff --git a/ui_mp/stats_reset.menu b/ui_mp/stats_reset.menu new file mode 100644 index 0000000..7c3a335 --- /dev/null +++ b/ui_mp/stats_reset.menu @@ -0,0 +1,282 @@ +{ + menuDef + { + name "stats_reset" + rect -430 -102 860 204 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setfocus passwordEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -582 3416 1920 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 860 204 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 860 0 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 84 + (2 * 60); + } + itemDef + { + rect -150 -44 -1708 -480 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 860 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 860 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 860 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (84 + (2 * 60)); + } + itemDef + { + rect 0 0 860 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (84 + (2 * 60)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (84 + (2 * 60)); + } + itemDef + { + text "@MENU_RESET_STATS" + rect 0 0 860 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textalignx -4 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + group "mw2_button" + rect 286 22 292 20 2 2 + decoration + autowrapped + type 1 + visible 1 + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + } + exp text "@MPUI_RESET_STATS_WARNING"; + } + itemDef + { + name "reset_button" + text "@MENU_RESET" + group "mw2_popup_button" + rect 286 164 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_flipped" + 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; + } + action + { + play mouse_click; + exec resetStats; + close self; + } + } + itemDef + { + name "cancel_button" + text "@MENU_CANCEL" + group "mw2_popup_button" + rect 286 184 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_flipped" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/stats_unlock.menu b/ui_mp/stats_unlock.menu new file mode 100644 index 0000000..6dc0acc --- /dev/null +++ b/ui_mp/stats_unlock.menu @@ -0,0 +1,282 @@ +{ + menuDef + { + name "stats_unlock" + rect -430 -102 860 204 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + setfocus passwordEntry; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -582 3416 1920 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect 0 0 860 204 2 2 + style 1 + decoration + visible 1 + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -44 1708 480 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect 0 0 860 0 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 84 + (2 * 60); + } + itemDef + { + rect -150 -44 -1708 -480 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -44 -1708 -480 2 9 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (0 - 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -64 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect 0 -64 860 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 860 -64 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 860 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (84 + (2 * 60)); + } + itemDef + { + rect 0 0 860 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (84 + (2 * 60)); + } + itemDef + { + rect -64 0 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (84 + (2 * 60)); + } + itemDef + { + text "@MENU_UNLOCK_STATS" + rect 0 0 860 24 2 2 + style 1 + decoration + visible 1 + textalign 5 + textalignx -4 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + group "mw2_button" + rect 286 22 292 20 2 2 + decoration + autowrapped + type 1 + visible 1 + textalign 4 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + onFocus + { + play mouse_over; + setItemColor self backcolor 0 0 0 1; + setLocalVarBool ui_menuAButton 1; + setLocalVarFloat ui_popupYPos getfocuseditemy(); + } + leaveFocus + { + setItemColor self backcolor 0 0 0 "0.0"; + setLocalVarString ui_hint_text "@NULL_EMPTY"; + setLocalVarBool ui_menuAButton 0; + } + action + { + play mouse_click; + } + exp text "@MPUI_UNLOCK_STATS_WARNING"; + } + itemDef + { + name "reset_button" + text "@MENU_UNLOCK" + group "mw2_popup_button" + rect 286 164 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_flipped" + 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; + } + action + { + play mouse_click; + exec unlockStats; + close self; + } + } + itemDef + { + name "cancel_button" + text "@MENU_CANCEL" + group "mw2_popup_button" + rect 286 184 292 20 2 2 + style 1 + type 1 + visible 1 + textalign 4 + textalignx 4 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar_flipped" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/ui_mp/youarehost.menu b/ui_mp/youarehost.menu new file mode 100644 index 0000000..85ad1b7 --- /dev/null +++ b/ui_mp/youarehost.menu @@ -0,0 +1,278 @@ +{ + menuDef + { + name "youarehost" + rect -150 -84 300 84 2 2 + style 1 + backcolor 1 1 1 1 + focuscolor 1 1 1 1 + background "white" + popup + legacySplitScreenScale + onOpen + { + setLocalVarInt ui_centerPopup 1; + focusFirst; + } + onClose + { + setLocalVarInt ui_centerPopup 0; + } + onESC + { + close self; + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0 0 0 0.35 + background "white" + } + itemDef + { + rect -1004 -564 1708 960 2 2 + style 1 + decoration + textscale 0.55 + backcolor 1 1 1 1 + background "xpbar_stencilbase" + } + itemDef + { + rect -150 -84 300 84 2 2 + style 1 + decoration + textscale 0.55 + backcolor 0.5 0.5 0.5 1 + background "white" + } + itemDef + { + rect -150 -84 1708 480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x 0 - ((float(milliseconds() % 60000) / 60000) * 854); + } + itemDef + { + rect -150 -84 300 0 2 2 + style 3 + decoration + textscale 0.55 + background "mockup_popup_bg_stencilfill" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0.75 + background "mw2_popup_bg_fogstencil" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 -1708 -480 2 2 + style 3 + decoration + textscale 0.55 + forecolor 0.85 0.85 0.85 1 + background "mw2_popup_bg_fogscroll" + exp rect x (- 854) + ((float(milliseconds() % 50000) / 50000) * 854); + } + itemDef + { + rect -150 -84 300 0 1 1 + style 3 + decoration + textscale 0.55 + forecolor 1 1 1 0 + background "small_box_lightfx" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect -214 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tl" + } + itemDef + { + rect -150 -148 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_t" + } + itemDef + { + rect 150 -148 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_tr" + } + itemDef + { + rect 150 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_r" + exp rect h 24 + (3 * 20); + } + itemDef + { + rect 150 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_br" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -150 -84 300 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_b" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 64 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_bl" + exp rect y (0 - 0) + (24 + (3 * 20)); + } + itemDef + { + rect -214 -84 64 0 2 2 + style 3 + decoration + visible 1 + textscale 0.55 + forecolor 0 0 0 1 + background "drop_shadow_l" + exp rect h 24 + (3 * 20); + } + itemDef + { + text "@MENU_NOTICE" + rect -150 -84 300 24 2 2 + style 1 + decoration + textalign 5 + textscale 0.375 + textfont 9 + background "gradient_fadein" + } + itemDef + { + text "@PATCH_YOUAREHOST" + group "mw2_popup_button" + rect -146 -60 292 20 2 2 + style 1 + decoration + autowrapped + type 1 + textalign 5 + textscale 0.375 + textfont 3 + forecolor 1 1 1 0.65 + disablecolor 0.6 0.55 0.55 1 + background "menu_button_selection_bar" + 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; + } + action + { + play mouse_click; + } + } + itemDef + { + name "ok_button" + text "@MENU_OK" + group "mw2_popup_button" + rect -146 -20 292 20 2 2 + style 1 + type 1 + textalign 6 + textalignx -24 + textscale 0.375 + textfont 3 + disablecolor 0.6 0.55 0.55 1 + background "popup_button_selection_bar" + 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; + } + action + { + play mouse_click; + close self; + } + } + } +} diff --git a/zone_source/iw4x_code_post_gfx_mp.zone b/zone_source/iw4x_code_post_gfx_mp.zone new file mode 100644 index 0000000..7184989 --- /dev/null +++ b/zone_source/iw4x_code_post_gfx_mp.zone @@ -0,0 +1,151 @@ +// Call Of Duty: Modern Warfare 2 +>game,IW4 + +localize,iw4x_code_post_gfx_mp +structureddatadef,mp/playerdata.def +material,,white +material,,black +material,,mockup_bg_glow +material,,gradient_fadein_fadebottom +material,,xpbar_stencilbase +material,,mw2_main_background +material,,mw2_popup_bg_fogstencil +material,,mw2_popup_bg_fogscroll +material,,mockup_popup_bg_stencilfill +material,,mw2_main_cloud_overlay +material,,menu_button_selection_bar +material,,minimap_scanlines +material,,gradient_fadein +material,,compass_map_default +material,,objective_line +material,,compassping_player +material,,ac130_overlay_grain +material,,stencil_base +material,,scanlines_stencil +material,,stencil_fill +material,,small_box_lightfx +material,,drop_shadow_tl +material,,drop_shadow_l +material,,drop_shadow_t +material,,drop_shadow_tr +material,,drop_shadow_r +material,,drop_shadow_br +material,,drop_shadow_b +material,,drop_shadow_bl +material,,popup_button_selection_bar +material,,popup_button_selection_bar_flipped +material,,menu_setting_selection_bar +material,,splatter_alt +material,,menu_rules_selection_bar +material,,$levelbriefing +material,,animbg_blur_front +material,,ballistic_overlay +material,,mw2_main_sp_image +material,,gradient_bottom +material,,line_horizontal +material,,shadow_inset +material,,logo_cod2 +material,,gradient_center +material,,gradient_slow_fadein +material,,specialty_new +material,,cardtitle_248x48 +material,,hud_dpad_xbox360 +material,,hud_dpad_ps3 +material,,playercard_short_bg +material,,hud_dpad_arrow_left +material,,playercard_bg +material,,hud_dpad_arrow_right +material,,gradient +material,,cardicon_locked +material,,server_hardware_header +material,,cardicon_headshot +material,,talkingicon +material,,popup_button_selection_bar_short +material,,specialty_locked +menu,player_popup_party +menu,player_popup_publiclobby +menu,player_popup_privatematch +menu,hostchangewarning +menu,youarehost +menu,popup_serverpassword +menu,popup_joinpassword +menu,settings_map +menu,settings_bonus_map +menu,auconfirm +menu,cac_popup +menu,changelog +menu,connect +menu,controls_multi +menu,createfavorite_popmenu +menu,createserver +menu,dpad_hd +menu,filter_popmenu +menu,hud_fullscreen +menu,iw4x_credits +menu,leavelobbywarning +menu,main_text +menu,menu_first_launch +menu,menu_online_barracks +menu,menu_xboxlive_lobby +menu,menu_xboxlive_privatelobby +menu,minimap_fullscreen +menu,mods_menu +menu,mod_download_popmenu +menu,onlineupdate +menu,pc_join_unranked +menu,pc_options_actions +menu,pc_options_advanced_video +menu,pc_options_audio +menu,pc_options_controls +menu,pc_options_game +menu,pc_options_gamepad +menu,pc_options_look +menu,pc_options_movement +menu,pc_options_multi +menu,pc_options_video +menu,playerdataread +menu,popup_cac_assault_primary +menu,popup_cac_handgun_secondary +menu,popup_cac_primary_camo +menu,popup_cac_smg_primary +menu,popup_cac_sniper_primary +menu,popup_cac_weapon_primary +menu,popup_customclan +menu,popup_customtitle +menu,popup_friends +menu,popup_gamesetup +menu,popup_playername +menu,popup_ready +menu,quickmessage +menu,resetclass +menu,security_increase_popmenu +menu,serverinfo_popmenu +menu,settings_gametype +menu,startup_messages +menu,stats_reset +menu,stats_unlock +menu,pc_theater_menu +menulist,ui_mp/patch_mp_menus.txt +menu,callvote +menulist,ui_mp/scriptmenus/callvote.menu +menu,changeclass +menulist,ui_mp/scriptmenus/changeclass.menu +menu,changegametype +menulist,ui_mp/scriptmenus/changegametype.menu +menu,changemap +menulist,ui_mp/scriptmenus/changemap.menu +menu,class +menulist,ui_mp/scriptmenus/class.menu +menu,kickplayer +menulist,ui_mp/scriptmenus/kickplayer.menu +menu,onemanarmy +menulist,ui_mp/scriptmenus/onemanarmy.menu +menu,quickcommands +menulist,ui_mp/scriptmenus/quickcommands.menu +menu,quickresponses +menulist,ui_mp/scriptmenus/quickresponses.menu +menu,quickstatements +menulist,ui_mp/scriptmenus/quickstatements.menu +menu,team_marinesopfor +menulist,ui_mp/scriptmenus/team_marinesopfor.menu +rawfile,iw4x_code_post_gfx_mp