{
    menuDef
    {
        name                        "cac_weapon_customize_secondary"
        fullscreen                  1
        rect                        0 0 640 480 0 0
        focuscolor                  1 1 1 1
        soundLoop                   "music_mainmenu_mp"
        onOpen
        {
            setLocalVarInt ui_buttonNavGroupOffset 0;
            setLocalVarInt ui_buttonNavGroupCurrent 0;
            setLocalVarString ui_buttonNavGroupName "invalid";
            setLocalVarBool ui_swfSelectionButtonVis 0;
            setLocalVarBool ui_swfSelectionBarVis 0;
            setLocalVarBool ui_swfSelectionDisabled 0;
            setLocalVarBool ui_swfPopupSelectionButtonVis 0;
            setLocalVarBool ui_swfPopupSelectionBarVis 0;
            setLocalVarBool ui_swfPopupSelectionDisabled 0;
            setLocalVarString ui_swfPopupContext "invalid";
            focusfirst;
        }
        onESC
        {
            close self;
        }
        onFocusDueToClose
        {
            setLocalVarString ui_hint_text "";
            focusfirst;
        }
        itemDef
        {
            rect                        -426.667 -240 853.333 480 2 2
            style                       3
            decoration                  
            visible                     when((dvarbool(ui_multiplayer) || (dvarstring(gameMode) == "so" && !menuistopmost("main_specops"))));
            textscale                   0.55
            background                  "background_image_blur_less"
        }
        itemDef
        {
            rect                        -426.667 -240 853.333 480 2 2
            style                       3
            decoration                  
            visible                     when(!(dvarbool(ui_multiplayer) || (dvarstring(gameMode) == "so" && !menuistopmost("main_specops"))));
            textscale                   0.55
            background                  "background_image"
        }
        itemDef
        {
            rect                        0 0 1708 480 0 0
            style                       3
            decoration                  
            visible                     1
            textscale                   0.55
            forecolor                   0.35 0.35 0.35 1
            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                   0.35 0.35 0.35 1
            background                  "mw2_main_cloud_overlay"
            exp rect x                  (- 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854));
        }
        itemDef
        {
            rect                        237.5 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   0 0 0 0.4
            background                  "white"
            exp rect w                  localvarbool("ui_shelfEnabled") * select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 219.5, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5));
        }
        itemDef
        {
            rect                        237.5 -236 13 680 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   1 1 1 0.75
            background                  "navbar_edge"
            exp rect x                  ((0 - 64) + 301.5) + (localvarbool("ui_shelfEnabled") * (select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 219.5, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 219.5))));
            exp forecolor r             0.596078;
            exp forecolor g             0.654902;
            exp forecolor b             0.603922;
        }
        itemDef
        {
            rect                        237.5 -236 13 680 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   1 1 1 0.75
            background                  "navbar_edge"
            exp rect x                  (0 - 64) + 301.5;
            exp forecolor r             0.596078;
            exp forecolor g             0.654902;
            exp forecolor b             0.603922;
            exp forecolor a             localvarbool("ui_shelfEnabled") * (select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 0.75), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0.75, ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * 0.75)));
        }
        itemDef
        {
            rect                        -64 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "dest_alpha_one"
        }
        itemDef
        {
            rect                        237.5 -36 640 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "dest_alpha_zero"
        }
        itemDef
        {
            rect                        -426.667 -240 853.333 480 2 2
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "background_image_blur_less_dest_alpha_masked"
        }
        itemDef
        {
            rect                        0 0 1708 480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "mw2_main_cloud_overlay_write_dest_alpha"
            exp rect x                  (0 - 107) - ((float(milliseconds() % 60000) / 60000) * (854));
        }
        itemDef
        {
            rect                        0 0 1708 480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   0.35 0.35 0.35 1
            background                  "mw2_main_cloud_overlay_dest_alpha_masked"
            exp rect x                  (0 - 107) - ((float(milliseconds() % 60000) / 60000) * (854));
        }
        itemDef
        {
            rect                        -64 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "dest_alpha_one"
        }
        itemDef
        {
            rect                        0 0 -1708 -480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            background                  "mw2_main_cloud_overlay_write_dest_alpha"
            exp rect x                  (- 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854));
        }
        itemDef
        {
            rect                        0 0 -1708 -480 0 0
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_shelfEnabled"));
            textscale                   0.55
            forecolor                   0.35 0.35 0.35 1
            background                  "mw2_main_cloud_overlay_dest_alpha_masked"
            exp rect x                  (- 107 + 854) + ((float(milliseconds() % 50000) / 50000) * (854));
        }
        itemDef
        {
            rect                        -64 -36 301.5 480 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0 0 0 0.4
            background                  "white"
        }
        itemDef
        {
            rect                        -64 30 301.5 5.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "navbar_tick"
        }
        itemDef
        {
            name                        "navbar_button0"
            rect                        -64 34.667 276.667 22 1 1
            style                       3
            type                        1
            visible                     when(1);
            disabled                    when(!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != ""));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "navbar_button0";
                setLocalVarInt ui_buttonNavGroupCurrent 0;
                setLocalVarString ui_buttonNavGroupName "navbar_button";
                play mouse_over;
            }
            leaveFocus
            {
            }
            action
            {
                if (!(!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "")))
                {
                    play mouse_click;
                    if (1 == 0)
                    {
                        open cac_weapon_attachments_primary;
                    }
                    else
                    {
                        open cac_weapon_attachments_secondary;
                    }
                }
            }
            exp disabled                !(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "");
            exp rect y                  (0) + (36) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        -64 36 307.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((localvarstring("ui_swf_selection") == "navbar_button0")) && (1) && (1));
            textscale                   0.55
            background                  "navbar_selection_bar"
            exp rect y                  (0) + (36) + (0);
        }
        itemDef
        {
            rect                        219.333 36 21.333 21.333 1 1
            style                       1
            decoration                  
            visible                     when(((((localvarstring("ui_swf_selection") == "navbar_button0") && !(!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != ""))) && (1) && (1))) && (1));
            textalign                   10
            textscale                   0.30625
            textfont                    3
            exp text                    "@PLATFORM_NAVBAR_BUTTON_FOCUSED_SELECTBUTTON";
            exp rect y                  (0) + ((36)) + (0);
        }
        itemDef
        {
            rect                        221.5 37.5 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != ""))) && (1) && (1))) && (1) && (1));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (0) + ((36)) + (1.5);
        }
        itemDef
        {
            rect                        -64 34.667 276.667 22 1 1
            style                       1
            decoration                  
            visible                     when((1) && (1));
            textalign                   10
            textscale                   0.416667
            textfont                    3
            exp text                    "@MENU_ATTACHMENTS_CAPS";
            exp rect y                  (0) + (36) + ((0 - 1.333));
            exp forecolor r             select((!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "")), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button0"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.882, 1));
            exp forecolor g             select((!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "")), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button0"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.655, 1));
            exp forecolor b             select((!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 11) != "")), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button0"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.173, 1));
        }
        itemDef
        {
            name                        "navbar_button1"
            rect                        -64 57.334 276.667 22 1 1
            style                       3
            type                        1
            visible                     when(1);
            disabled                    when(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot");
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "navbar_button1";
                setLocalVarInt ui_buttonNavGroupCurrent 1;
                setLocalVarString ui_buttonNavGroupName "navbar_button";
                play mouse_over;
            }
            leaveFocus
            {
            }
            action
            {
                if (!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot"))
                {
                    play mouse_click;
                    if (1 == 0)
                    {
                        open cac_weapon_camo_primary;
                    }
                    else
                    {
                        open cac_weapon_camo_secondary;
                    }
                }
            }
            exp disabled                tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot";
            exp rect y                  (0) + (58.667) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        -64 58.667 307.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((localvarstring("ui_swf_selection") == "navbar_button1")) && (1) && (1));
            textscale                   0.55
            background                  "navbar_selection_bar"
            exp rect y                  (0) + (58.667) + (0);
        }
        itemDef
        {
            rect                        219.333 58.667 21.333 21.333 1 1
            style                       1
            decoration                  
            visible                     when(((((localvarstring("ui_swf_selection") == "navbar_button1") && !(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")) && (1) && (1))) && (1));
            textalign                   10
            textscale                   0.30625
            textfont                    3
            exp text                    "@PLATFORM_NAVBAR_BUTTON_FOCUSED_SELECTBUTTON";
            exp rect y                  (0) + ((58.667)) + (0);
        }
        itemDef
        {
            rect                        221.5 60.167 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")) && (1) && (1))) && (1) && (1));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (0) + ((58.667)) + (1.5);
        }
        itemDef
        {
            rect                        -64 57.334 276.667 22 1 1
            style                       1
            decoration                  
            visible                     when((1) && (1));
            textalign                   10
            textscale                   0.416667
            textfont                    3
            exp text                    "@MENU_CAMO_CAPS";
            exp rect y                  (0) + (58.667) + ((0 - 1.333));
            exp forecolor r             select((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot"), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button1"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.882, 1));
            exp forecolor g             select((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot"), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button1"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.655, 1));
            exp forecolor b             select((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot"), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button1"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.173, 1));
        }
        itemDef
        {
            name                        "navbar_button2"
            rect                        -64 80 276.667 22 1 1
            style                       3
            type                        1
            visible                     when(1);
            disabled                    when(1);
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "navbar_button2";
                setLocalVarInt ui_buttonNavGroupCurrent 2;
                setLocalVarString ui_buttonNavGroupName "navbar_button";
                play mouse_over;
            }
            leaveFocus
            {
            }
            action
            {
                if (!(1))
                {
                    play mouse_click;
                }
            }
            exp disabled                1;
            exp rect y                  (0) + (81.333) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        -64 81.333 307.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((localvarstring("ui_swf_selection") == "navbar_button2")) && (1) && (1));
            textscale                   0.55
            background                  "navbar_selection_bar"
            exp rect y                  (0) + (81.333) + (0);
        }
        itemDef
        {
            rect                        219.333 81.333 21.333 21.333 1 1
            style                       1
            decoration                  
            visible                     when(((((localvarstring("ui_swf_selection") == "navbar_button2") && !(1)) && (1) && (1))) && (1));
            textalign                   10
            textscale                   0.30625
            textfont                    3
            exp text                    "@PLATFORM_NAVBAR_BUTTON_FOCUSED_SELECTBUTTON";
            exp rect y                  (0) + ((81.333)) + (0);
        }
        itemDef
        {
            rect                        221.5 82.833 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((1)) && (1) && (1))) && (1) && (1));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (0) + ((81.333)) + (1.5);
        }
        itemDef
        {
            rect                        -64 80 276.667 22 1 1
            style                       1
            decoration                  
            visible                     when((1) && (1));
            textalign                   10
            textscale                   0.416667
            textfont                    3
            exp text                    "@MENU_RETICLE_CAPS";
            exp rect y                  (0) + (81.333) + ((0 - 1.333));
            exp forecolor r             select((1), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button2"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.882, 1));
            exp forecolor g             select((1), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button2"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.655, 1));
            exp forecolor b             select((1), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button2"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.173, 1));
        }
        itemDef
        {
            name                        "navbar_button3"
            rect                        -64 102.667 276.667 22 1 1
            style                       3
            type                        1
            visible                     when(1);
            disabled                    when(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun");
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "navbar_button3";
                setLocalVarInt ui_buttonNavGroupCurrent 3;
                setLocalVarString ui_buttonNavGroupName "navbar_button";
                play mouse_over;
            }
            leaveFocus
            {
            }
            action
            {
                if (!(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun"))
                {
                    play mouse_click;
                    if (1 == 0)
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault")
                        {
                            open cac_weapon_proficiency_primary_assault;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg")
                        {
                            open cac_weapon_proficiency_primary_smg;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg")
                        {
                            open cac_weapon_proficiency_primary_lmg;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper")
                        {
                            open cac_weapon_proficiency_primary_sniper;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun")
                        {
                            open cac_weapon_proficiency_primary_shotgun;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            open cac_weapon_proficiency_primary_riot;
                        }
                    }
                    else
                    {
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_assault")
                        {
                            open cac_weapon_proficiency_secondary_assault;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_smg")
                        {
                            open cac_weapon_proficiency_secondary_smg;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_lmg")
                        {
                            open cac_weapon_proficiency_secondary_lmg;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_sniper")
                        {
                            open cac_weapon_proficiency_secondary_sniper;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_shotgun")
                        {
                            open cac_weapon_proficiency_secondary_shotgun;
                        }
                        if (tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) == "weapon_riot")
                        {
                            open cac_weapon_proficiency_secondary_riot;
                        }
                    }
                }
            }
            exp disabled                tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun";
            exp rect y                  (0) + (104) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        -64 104 307.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((localvarstring("ui_swf_selection") == "navbar_button3")) && (1) && (1));
            textscale                   0.55
            background                  "navbar_selection_bar"
            exp rect y                  (0) + (104) + (0);
        }
        itemDef
        {
            rect                        219.333 104 21.333 21.333 1 1
            style                       1
            decoration                  
            visible                     when(((((localvarstring("ui_swf_selection") == "navbar_button3") && !(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun")) && (1) && (1))) && (1));
            textalign                   10
            textscale                   0.30625
            textfont                    3
            exp text                    "@PLATFORM_NAVBAR_BUTTON_FOCUSED_SELECTBUTTON";
            exp rect y                  (0) + ((104)) + (0);
        }
        itemDef
        {
            rect                        221.5 105.5 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun")) && (1) && (1))) && (1) && (1));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (0) + ((104)) + (1.5);
        }
        itemDef
        {
            rect                        -64 102.667 276.667 22 1 1
            style                       1
            decoration                  
            visible                     when((1) && (1));
            textalign                   10
            textscale                   0.416667
            textfont                    3
            exp text                    "@MENU_PROFICIENCY_CAPS";
            exp rect y                  (0) + (104) + ((0 - 1.333));
            exp forecolor r             select((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun"), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button3"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.882, 1));
            exp forecolor g             select((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun"), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button3"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.655, 1));
            exp forecolor b             select((tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_assault" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_smg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_lmg" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_sniper" && tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 2) != "weapon_shotgun"), 0.569, select((localvarstring("ui_swf_selection") == "navbar_button3"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1) * select((0), 0.173, 1));
        }
        itemDef
        {
            rect                        -64 3 276.667 24.233 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   14
            textscale                   0.5
            textstyle                   9
            textfont                    9
            exp text                    locstring("@MENU_CUSTOMIZE_CAPS");
            exp forecolor a             select((getTextWidth(locstring("@MENU_CUSTOMIZE_CAPS"), 9, 0.5) <= 200), 1, 0);
        }
        itemDef
        {
            rect                        -64 3 276.667 24.233 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   14
            textscale                   0.4
            textstyle                   9
            textfont                    9
            exp text                    locstring("@MENU_CUSTOMIZE_CAPS");
            exp forecolor a             select(((getTextWidth(locstring("@MENU_CUSTOMIZE_CAPS"), 9, 0.5) > 200) && (getTextWidth(locstring("@MENU_CUSTOMIZE_CAPS"), 9, 0.4) <= 200)), 1, 0);
        }
        itemDef
        {
            rect                        -64 1 276.667 24.233 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   14
            textscale                   0.3
            textstyle                   9
            textfont                    9
            exp text                    locstring("@MENU_CUSTOMIZE_CAPS");
            exp forecolor a             select((getTextWidth(locstring("@MENU_CUSTOMIZE_CAPS"), 9, 0.4) > 200), 1, 0);
        }
        itemDef
        {
            text                        "@MPUI_ACCURACY"
            rect                        381 237.166 108.667 18.033 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            text                        "@MPUI_DAMAGE"
            rect                        381 257.166 108.667 18.2 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            text                        "@MPUI_RANGE"
            rect                        381 277.166 108.667 18.2 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            text                        "@MPUI_FIRE_RATE"
            rect                        381 297.166 108.667 18.2 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            rect                        334 241.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 14)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 14)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)))));
        }
        itemDef
        {
            rect                        261 241.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 14)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 14))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 14)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 14))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 22)))));
        }
        itemDef
        {
            rect                        261 252.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 252.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 252.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            text                        "@MPUI_MOBILITY"
            rect                        381 317.166 108.667 18.033 1 1
            style                       1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp rect x                  (0) + ((261)) + (120);
        }
        itemDef
        {
            rect                        334 261.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 15)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 15)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)))));
        }
        itemDef
        {
            rect                        261 261.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 15)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 15))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 15)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 15))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 23)))));
        }
        itemDef
        {
            rect                        261 272.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 272.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 272.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        334 281.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 16)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 16)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)))));
        }
        itemDef
        {
            rect                        261 281.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 16)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 16))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 16)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 16))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 24)))));
        }
        itemDef
        {
            rect                        261 292.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 292.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 292.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        334 301.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 17)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 17)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)))));
        }
        itemDef
        {
            rect                        261 301.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 17)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 17))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 17)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 17))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 25)))));
        }
        itemDef
        {
            rect                        261 312.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 312.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 312.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        334 321.833 37 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "tiny_gradient"
            exp rect x                  (0) + (((261))) + ((110 - 37));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_gun_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.561 0.863 1 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)));
            exp rect w                  110 * min(max(0, (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 18)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 18)))), (1 - (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)))));
        }
        itemDef
        {
            rect                        261 321.833 110 10 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            forecolor                   0.647 0.192 0.192 1
            background                  "white"
            exp rect x                  (0) + (((261))) + 110 * (max(0, ((0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26))) + (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 18)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 18))))));
            exp rect w                  110 * max(0, min(0 - (0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment"), 18)) + 0.01 * float(tablelookup("mp/attachmentTable.csv", 4, localvarstring("loadoutSecondaryAttachment2"), 18))), (0.01 * float(tablelookup("mp/statsTable.csv", 4, localvarstring("loadoutSecondary"), 26)))));
        }
        itemDef
        {
            rect                        261 332.499 110 6.333 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        261 332.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (0) + (((261)));
            exp rect w                  110 * (0);
        }
        itemDef
        {
            rect                        261 332.499 110 5 1 1
            style                       3
            decoration                  
            visible                     when(1);
            textscale                   0.55
            background                  "bar_progress_white_custom"
            exp rect x                  (0) + (((261)));
        }
        itemDef
        {
            rect                        255.9 207.2 186.667 44.4 1 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   5
            textscale                   0.383333
            textstyle                   9
            textfont                    9
            exp text                    "@MENU_STATS";
            exp rect x                  (0) + (((261) + (0 - 5.1))) + (0);
        }
        itemDef
        {
            text                        "@MPUI_NEXT_UNLOCK"
            rect                        223.667 341.633 214.733 18.2 1 1
            style                       1
            decoration                  
            visible                     when(((0 && 1)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            forecolor                   0.839 0.839 0.839 1
            exp rect x                  (0) + ((261 + (0 - 37.333))) + (0);
        }
        itemDef
        {
            rect                        272.667 341.633 377.1 18.2 1 1
            style                       1
            decoration                  
            visible                     when(((0 && 1)));
            textalign                   8
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_CURRENTLY_EQUIPPED_WEAPON";
            exp rect x                  (0) + ((261)) + (11.667);
        }
        itemDef
        {
            rect                        261 346.133 9.667 9.667 1 1
            style                       3
            decoration                  
            visible                     when(((0 && 1)));
            textscale                   0.55
            background                  "white"
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        329.5 361.733 36.267 36.267 1 1
            style                       3
            decoration                  
            visible                     when(((0 && 1)));
            textscale                   0.55
            exp material                "";
            exp rect x                  (0) + ((261 + 68.5)) + (0);
        }
        itemDef
        {
            rect                        261 317.366 173.333 48 1 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when((("CAC_POPOUT_DESC2_VIS" && 0)));
            textalign                   5
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_DESC2";
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        267.667 242.166 144 72 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_IMG2_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_IMG2";
            exp rect x                  (0) + ((261 + 6.667)) + (1 * 36) + 8;
            exp rect w                  144 - (1 * 72);
            exp forecolor r             "CAC_POPOUT_IMG2_A_EXP";
            exp forecolor g             "CAC_POPOUT_IMG2_A_EXP";
            exp forecolor b             "CAC_POPOUT_IMG2_A_EXP";
        }
        itemDef
        {
            rect                        254.333 207 186.667 44.4 1 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when((("CAC_POPOUT_TITLE2_VIS" && (0 || 0))));
            textalign                   5
            textscale                   0.383333
            textstyle                   9
            textfont                    9
            exp text                    "CAC_POPOUT_TITLE2";
            exp rect x                  (0) + ((261 + (0 - 6.667))) + (0);
        }
        itemDef
        {
            rect                        266.033 236 42.667 42.667 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG1_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_IMG1";
            exp rect x                  (0) + ((261 + 5.033)) + (0);
        }
        itemDef
        {
            rect                        255.367 280.666 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG1_DESC_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_IMG1_DESC_TEXT";
            exp rect x                  (0) + ((261 + (0 - 5.633))) + (0);
        }
        itemDef
        {
            rect                        326.033 236 42.667 42.667 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG2_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_IMG2";
            exp rect x                  (0) + ((261 + 65.033)) + (0);
        }
        itemDef
        {
            rect                        315.367 280.666 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG2_DESC_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_IMG2_DESC_TEXT";
            exp rect x                  (0) + ((261 + 54.367)) + (0);
        }
        itemDef
        {
            rect                        386.033 236 42.667 42.667 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG3_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_IMG3";
            exp rect x                  (0) + ((261 + 125.033)) + (0);
        }
        itemDef
        {
            rect                        375.367 280.666 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_IMG3_DESC_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_IMG3_DESC_TEXT";
            exp rect x                  (0) + ((261 + 114.367)) + (0);
        }
        itemDef
        {
            rect                        245.667 246.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((0 && "CAC_POPOUT_T_ARROW1_VIS")));
            textscale                   0.55
            background                  "chain_arrow"
            exp rect x                  (0) + ((261 + (0 - 15.333))) + (0);
        }
        itemDef
        {
            rect                        305.667 246.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((0 && "CAC_POPOUT_T_ARROW2_VIS")));
            textscale                   0.55
            background                  "chain_arrow"
            exp rect x                  (0) + ((261 + 44.667)) + (0);
        }
        itemDef
        {
            rect                        365.667 246.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when(((0 && "CAC_POPOUT_T_ARROW3_VIS")));
            textscale                   0.55
            background                  "chain_arrow"
            exp rect x                  (0) + ((261 + 104.667)) + (0);
        }
        itemDef
        {
            rect                        315.667 364 60 18.667 1 1
            style                       1
            decoration                  
            visible                     when((("CAC_POPOUT_T_UNLOCKS_VIS" && 0)));
            textalign                   9
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_T_UNLOCKS_TEXT";
            exp rect x                  (0) + ((261 + 54.667)) + (0);
        }
        itemDef
        {
            rect                        335 342.666 21.333 21.333 1 1
            style                       3
            decoration                  
            visible                     when((("CAC_POPOUT_T_UNLOCKS_VIS" && 0)));
            textscale                   0.55
            exp material                "CAC_POPOUT_T_UNLOCKS_IMG";
            exp rect x                  (0) + ((261 + 74)) + (0);
        }
        itemDef
        {
            rect                        261 145.033 173.333 48 1 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when(("CURRENT_BUFF_DESC_VIS"));
            textalign                   5
            textscale                   0.340278
            textfont                    3
            exp text                    "CURRENT_BUFF_DESC";
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        267.667 69.833 144 72 1 1
            style                       3
            decoration                  
            visible                     when(("CURRENT_BUFF_VIS"));
            textscale                   0.55
            exp material                "CURRENT_BUFF_MATERIAL";
            exp rect x                  (0) + ((261 + 6.667)) + (1 * 36) + 8;
            exp rect w                  144 - (1 * 72);
            exp forecolor r             1;
            exp forecolor g             1;
            exp forecolor b             1;
        }
        itemDef
        {
            rect                        254.333 34.667 186.667 44.4 1 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   5
            textscale                   0.383333
            textstyle                   9
            textfont                    9
            exp text                    "CURRENT_BUFF_NAME";
            exp rect x                  (0) + ((261 + (0 - 6.667))) + (0);
        }
        itemDef
        {
            rect                        261 76.366 173.333 48 1 1
            style                       1
            decoration                  
            autowrapped                 
            type                        21
            visible                     when(("CAC_POPOUT_DESC3_VIS"));
            textalign                   5
            textscale                   0.340278
            textfont                    3
            exp text                    "CAC_POPOUT_DESC3";
            exp rect x                  (0) + ((261)) + (0);
        }
        itemDef
        {
            rect                        247.667 203.166 200 1.333 1 1
            style                       3
            decoration                  
            visible                     when(((1 || 0 || 0)));
            textscale                   0.55
            forecolor                   1 1 1 0.211
            background                  "linedoublesided"
            exp rect x                  (0) + ((261 + (0 - 13.333))) + (0);
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            type                        1
            visible                     when(((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running)))));
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 2;
                setLocalVarString ui_ralign_group "cac_weapon_customize_secondary";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiscript simulateKeyPress 102;
            }
            exp rect x                  (0) - (0 * 5) - 20 - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 3 3
            style                       3
            decoration                  
            visible                     when((((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running))))) && (!0) && (localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667)) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            style                       1
            decoration                  
            visible                     when((((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running))))) && (localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            decoration                  
            visible                     when(((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running)))));
            textalign                   8
            textscale                   0.375
            textfont                    3
            execKey "f"
            {
                if (((isprofilesignedin() || anysplitscreenprofilesaresignedin()) && (isusersignedintolive() || isanyusersignedintolive()) && ((dvarbool(onlinegame) && (dvarbool(sv_running) || dvarbool(cl_ingame))) || (!dvarbool(cl_ingame) && !dvarbool(sv_running)))))
                {
                    setLocalVarBool ui_vault_browse 0;
                    setLocalVarBool ui_vault_load 0;
                    execnow "incnosplitscreencontrol popup_friends";
                    if (isprofilesignedin() && isusersignedintolive())
                    {
                        open popup_friends;
                    }
                    else
                    {
                        execnow "decnosplitscreencontrol popup_friends";
                    }
                }
            }
            exp text                    "@PLATFORM_FRIENDS_SHORTCUT";
            exp rect x                  (0) - (0 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_FRIENDS_SHORTCUT"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            type                        1
            visible                     when(1);
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 1;
                setLocalVarString ui_ralign_group "cac_weapon_customize_secondary";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiscript simulateKeyPress 27;
            }
            exp rect x                  (0) - (0 * 5) - 20 - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 3 3
            style                       3
            decoration                  
            visible                     when((1) && (!0) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667)) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            style                       1
            decoration                  
            visible                     when((1) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (0) - (0 * 5) - (20) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 3 3
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.375
            textfont                    3
            exp text                    "@PLATFORM_BACK_SHORTCUT";
            exp rect x                  (0) - (0 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  ((0 - 20.667));
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "cac_weapon_customize_secondary"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
    }
}
