{
    menuDef
    {
        name                        "challenges_detail_periodic"
        fullscreen                  1
        rect                        0 0 640 480 0 0
        focuscolor                  1 1 1 1
        soundLoop                   "music_mainmenu_mp"
        onOpen
        {
            exec challengeFilterCacheDirty;
            if (0)
            {
                setLocalVarFloat ui_shelfTime milliseconds();
                setLocalVarBool ui_shelfTimeInvert 0;
                setLocalVarBool ui_shelfEnabled 1;
                setLocalVarInt ui_shelfCounter (localvarint("ui_shelfCounter") + 1);
            }
            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;
        }
        onClose
        {
            exec challengeFilterCacheDirty;
            if (0)
            {
                setLocalVarInt ui_shelfCounter (max(0, localvarint("ui_shelfCounter") - 1));
                if (localvarint("ui_shelfCounter") == 0)
                {
                    setLocalVarBool ui_shelfTimeInvert 1;
                    setLocalVarFloat ui_shelfTime milliseconds();
                }
                if ((!dvarbool(widescreen)))
                {
                    setLocalVarFloat ui_shelfTime (milliseconds() - 500);
                }
            }
            setLocalVarString ui_info_filter localvarstring("ui_info_filter_backup");
            setLocalVarString ui_hint_text localvarstring("ui_hint_text_backup");
        }
        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) * select((!dvarbool(widescreen)), 98.775, 219.5)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, select((!dvarbool(widescreen)), 98.775, 219.5), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * select((!dvarbool(widescreen)), 98.775, 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) * select((!dvarbool(widescreen)), 98.775, 219.5)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, select((!dvarbool(widescreen)), 98.775, 219.5), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * select((!dvarbool(widescreen)), 98.775, 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                        288.667 39.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 38 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 39.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 39.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 59.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 58 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 59.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 59.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 79.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 78 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 79.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 79.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 99.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 98 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 99.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 99.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 119.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 118 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 119.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 119.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 139.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 138 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 139.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 139.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 159.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 158 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 159.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 159.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 179.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 178 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 179.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 179.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 199.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 198 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 199.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 199.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 219.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 218 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 219.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 219.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 239.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 238 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 239.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 239.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 259.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 258 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 259.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 259.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 279.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 278 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 279.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 279.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 299.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 298 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 299.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 299.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 319.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 318 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 319.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 319.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 339.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 338 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 339.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 339.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 359.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 358 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 359.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 359.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 379.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        287.334 378 133.333 12 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 379.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  122 * (select((!dvarbool(widescreen)), 0.45, 1)) * (((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) - 0) / (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)), 1)))) - 0)));
        }
        itemDef
        {
            rect                        288.667 379.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + (((288 + 0.667))) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 39.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 59.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 79.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 99.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 119.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 139.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 159.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 179.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 199.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 219.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 239.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 259.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 279.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 299.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 319.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 339.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 359.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 379.333 122 9.333 1 1
            style                       3
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)), 1)))) == "")));
            textscale                   0.55
            background                  "challenge_gradient_green"
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 33.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 53.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 73.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 93.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 113.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 133.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 153.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 173.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 193.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 213.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 233.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 253.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 273.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 293.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 313.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 333.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 353.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        288.667 373.333 122 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")) && (int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    "@MPUI_DONE_CAPS";
            exp rect x                  (((!dvarbool(widescreen)) * (0 - 26.81)) + select(localvarbool("ui_shelfTimeInvert"), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, (0 - 242), ((milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)), select((milliseconds() - localvarfloat("ui_shelfTime")) > 100, 0, (1 - (milliseconds() - localvarfloat("ui_shelfTime")) / 100) * (0 - 242)))) + ((288 + 0.667)) + (0);
            exp rect w                  (122) * (select((!dvarbool(widescreen)), 0.45, 1));
        }
        itemDef
        {
            rect                        133.433 6 186.667 34.733 2 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when((localvarstring("ui_selected_ref") != "" && !(int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "")));
            textalign                   5
            textscale                   0.366667
            textfont                    9
            exp text                    select("challenges_detail_periodic" == "challenges_detail_periodic", getchallengedata(localvarstring("ui_selected_ref"), "name") + locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "label")), getchallengedata(localvarstring("ui_selected_ref"), "name") + locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "label") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1))));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((130.2 + 3.233)) + (0);
            exp forecolor r             1;
            exp forecolor g             1;
            exp forecolor b             1;
        }
        itemDef
        {
            rect                        133.433 6 186.667 34.733 2 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when((localvarstring("ui_selected_ref") != "" && (int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "")));
            textalign                   5
            textscale                   0.366667
            textfont                    9
            exp text                    select("challenges_detail_periodic" == "challenges_detail_periodic", getchallengedata(localvarstring("ui_selected_ref"), "name") + locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "label")), getchallengedata(localvarstring("ui_selected_ref"), "name") + locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "label") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) - 1));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((130.2 + 3.233)) + (0);
            exp forecolor r             0.2;
            exp forecolor g             0.5;
            exp forecolor b             0.2;
        }
        itemDef
        {
            rect                        155.3 42.933 143.333 72.6 2 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != ""));
            textscale                   0.55
            exp material                tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6);
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((130.2 + 25.1)) + (0);
        }
        itemDef
        {
            rect                        190.667 42.933 72.6 72.6 2 1
            style                       3
            decoration                  
            visible                     when((tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != ""));
            textscale                   0.55
            exp material                tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3);
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((130.2 + 60.467)) + (0);
        }
        itemDef
        {
            rect                        190.667 42.933 72.6 72.6 2 1
            style                       3
            decoration                  
            visible                     when(((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != ""));
            textscale                   0.55
            exp material                (select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", ""));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((130.2 + 60.467)) + (0);
        }
        itemDef
        {
            rect                        133.333 116.7 186.667 92.5 2 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(("@" + getchallengedata(localvarstring("ui_selected_ref"), "label") != "@CHALLENGE_BLANK" && !(int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "")));
            textalign                   5
            textscale                   0.375
            textfont                    3
            exp text                    select(FUNC_157(), FUNC_158(), select(FUNC_159(), locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "desc"), int((int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) - 0) / 5280)), locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "desc"), int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) - 0)));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 3.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7))) + (0);
        }
        itemDef
        {
            rect                        133.333 116.7 186.667 92.5 2 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(("@" + getchallengedata(localvarstring("ui_selected_ref"), "label") != "@CHALLENGE_BLANK" && (int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "")));
            textalign                   5
            textscale                   0.375
            textfont                    3
            exp text                    select(FUNC_159(), locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "desc"), int(int(getchallengedata(localvarstring("ui_selected_ref"), "target", (int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) - 1))) / 5280)), locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "desc"), int(getchallengedata(localvarstring("ui_selected_ref"), "target", (int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) - 1)))));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 3.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7))) + (0);
        }
        itemDef
        {
            rect                        133.333 116.7 186.667 92.5 2 1
            style                       1
            decoration                  
            autowrapped                 
            visible                     when(("@" + getchallengedata(localvarstring("ui_selected_ref"), "label") == "@CHALLENGE_BLANK"));
            textalign                   5
            textscale                   0.375
            textfont                    3
            exp text                    select(FUNC_157(), FUNC_158(), locstring("@" + getchallengedata(localvarstring("ui_selected_ref"), "desc")));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 3.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7))) + (0);
        }
        itemDef
        {
            rect                        145.333 203.367 162.667 19.567 2 1
            style                       1
            decoration                  
            visible                     when((!FUNC_157() && !(int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textfont                    3
            exp text                    select(FUNC_159(), locstring("@CHALLENGE_PROGRESS_X_OF_Y", int((getplayerdata("challengeProgress", localvarstring("ui_selected_ref")) - 0) / 5280), int((int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) - 0) / 5280)), locstring("@CHALLENGE_PROGRESS_X_OF_Y", getplayerdata("challengeProgress", localvarstring("ui_selected_ref")) - 0, int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) - 0));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 15.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 86.667)) + (0);
            exp forecolor r             1;
            exp forecolor g             1;
            exp forecolor b             1;
        }
        itemDef
        {
            rect                        145.333 203.367 162.667 19.567 2 1
            style                       1
            decoration                  
            visible                     when(((int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "")));
            textalign                   9
            textscale                   0.375
            textfont                    3
            exp text                    "@CHALLENGE_COMPLETE";
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 15.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 86.667)) + (0);
            exp forecolor r             0.2;
            exp forecolor g             0.5;
            exp forecolor b             0.2;
        }
        itemDef
        {
            rect                        130.2 226.933 200 1.333 2 1
            style                       3
            decoration                  
            visible                     when((((!(int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "") || localvarstring("ui_selected_unlockTitle") != "" || localvarstring("ui_selected_unlockIcon") != "" && localvarstring("ui_selected_unlockTitle") == "")) || ("SORT_1_VIS")));
            textscale                   0.55
            background                  "linedoublesided"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2))) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 110.233)) + (0);
        }
        itemDef
        {
            rect                        145.333 229.367 162.667 22.2 2 1
            style                       1
            decoration                  
            visible                     when(((!(int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "") || localvarstring("ui_selected_unlockTitle") != "" || localvarstring("ui_selected_unlockIcon") != "" && localvarstring("ui_selected_unlockTitle") == "")));
            textalign                   9
            textscale                   0.466667
            textfont                    9
            exp text                    "@MPUI_REWARDS_CAP";
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 15.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 112.667)) + (0);
        }
        itemDef
        {
            rect                        145.333 249.033 162.667 21.1 2 1
            style                       1
            decoration                  
            visible                     when((!(int(getchallengedata(localvarstring("ui_selected_ref"), "target", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))) == "")));
            textalign                   9
            textscale                   0.4
            textfont                    3
            forecolor                   0.941 0.769 0.357 1
            exp text                    locstring("@MPUI_REWARD_XP", int(getchallengedata(localvarstring("ui_selected_ref"), "reward", int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)))));
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 15.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 132.333)) + (0);
        }
        itemDef
        {
            rect                        141.333 268.033 170.667 42.667 2 1
            style                       3
            decoration                  
            visible                     when((localvarstring("ui_selected_unlockTitle") != ""));
            textscale                   0.55
            background                  "challenge_title_locked"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 11.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 151.333)) + (0);
        }
        itemDef
        {
            rect                        205.333 268.7 42.667 42.667 2 1
            style                       3
            decoration                  
            visible                     when((localvarstring("ui_selected_unlockIcon") != "" && localvarstring("ui_selected_unlockTitle") == ""));
            textscale                   0.55
            background                  "challenge_emblem_locked"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 75.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 152)) + (0);
        }
        itemDef
        {
            rect                        205.333 307.333 42.667 42.667 2 1
            style                       3
            decoration                  
            visible                     when((localvarstring("ui_selected_unlockIcon") != "" && localvarstring("ui_selected_unlockTitle") != ""));
            textscale                   0.55
            background                  "challenge_emblem_locked"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 75.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 190.633)) + (0);
        }
        itemDef
        {
            rect                        205.333 268.7 42.667 42.667 2 1
            style                       3
            decoration                  
            visible                     when((localvarstring("ui_selected_unlockPerk") != "" && localvarstring("ui_selected_unlockTitle") == "" && localvarstring("ui_selected_unlockIcon") == ""));
            textscale                   0.55
            background                  "challenge_perk_locked"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 75.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 152)) + (0);
        }
        itemDef
        {
            rect                        205.333 307.333 42.667 42.667 2 1
            style                       3
            decoration                  
            visible                     when((localvarstring("ui_selected_unlockPerk") != "" && ((localvarstring("ui_selected_unlockTitle") == "") != (localvarstring("ui_selected_unlockIcon") == ""))));
            textscale                   0.55
            background                  "challenge_perk_locked"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 75.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 190.633)) + (0);
        }
        itemDef
        {
            rect                        205.333 345.967 42.667 42.667 2 1
            style                       3
            decoration                  
            visible                     when((localvarstring("ui_selected_unlockPerk") != "" && localvarstring("ui_selected_unlockTitle") != "" && localvarstring("ui_selected_unlockIcon") != ""));
            textscale                   0.55
            background                  "challenge_perk_locked"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((130.2) + 75.133)) + (0);
            exp rect y                  (select(((tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 6) != "") || (tablelookup("mp/perkTable.csv", 1, localvarstring("ui_selected_perk_ref"), 3) != "") || ((select(tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) != "", tablelookup("mp/killstreakTable.csv", 1, localvarstring("ui_selected_ks_ref"), 14) + "_frontend", "")) != "")), 0, (0 - 58))) + (((6 + 110.7) + 229.267)) + (0);
        }
        itemDef
        {
            rect                        165 270.9 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333 + 35.667)) + (0);
            exp rect w                  (122) * (1);
        }
        itemDef
        {
            rect                        163.667 269.567 133.333 12 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333 + 35.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (1);
        }
        itemDef
        {
            rect                        165 270.9 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((129.333 + 35.667))) + (0);
            exp rect w                  122 * (1) * (0);
        }
        itemDef
        {
            rect                        165 270.9 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((129.333 + 35.667))) + (0);
            exp rect w                  (122) * (1);
        }
        itemDef
        {
            rect                        165 309.567 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333 + 35.667)) + (0);
            exp rect w                  (122) * (1);
        }
        itemDef
        {
            rect                        163.667 308.234 133.333 12 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333 + 35.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (1);
        }
        itemDef
        {
            rect                        165 309.567 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((129.333 + 35.667))) + (0);
            exp rect w                  122 * (1) * (0);
        }
        itemDef
        {
            rect                        165 309.567 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((129.333 + 35.667))) + (0);
            exp rect w                  (122) * (1);
        }
        itemDef
        {
            rect                        165 348.234 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "black_gradient_2"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333 + 35.667)) + (0);
            exp rect w                  (122) * (1);
        }
        itemDef
        {
            rect                        163.667 346.901 133.333 12 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "dest_alpha_zero"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333 + 35.667)) + ((0 - 1.333));
            exp rect w                  (133.333) * (1);
        }
        itemDef
        {
            rect                        165 348.234 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "dest_alpha_one"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((129.333 + 35.667))) + (0);
            exp rect w                  122 * (1) * (0);
        }
        itemDef
        {
            rect                        165 348.234 122 9.333 2 1
            style                       3
            decoration                  
            visible                     when((0));
            textscale                   0.55
            background                  "challenge_gradient_white_custom"
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + (((129.333 + 35.667))) + (0);
            exp rect w                  (122) * (1);
        }
        itemDef
        {
            rect                        129.333 250.367 194.667 19.567 2 1
            style                       1
            decoration                  
            visible                     when((0));
            textalign                   9
            textscale                   0.375
            textfont                    3
            exp text                    "";
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333)) + (0);
            exp rect w                  (194.667) * (1);
        }
        itemDef
        {
            rect                        129.333 289.034 194.667 19.567 2 1
            style                       1
            decoration                  
            visible                     when((0));
            textalign                   9
            textscale                   0.375
            textfont                    3
            exp text                    "";
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333)) + (0);
            exp rect w                  (194.667) * (1);
        }
        itemDef
        {
            rect                        129.333 327.7 194.667 19.567 2 1
            style                       1
            decoration                  
            visible                     when((0));
            textalign                   9
            textscale                   0.375
            textfont                    3
            exp text                    "";
            exp rect x                  ((!dvarbool(widescreen)) * (0 - 50)) + ((129.333)) + (0);
            exp rect w                  (194.667) * (1);
        }
        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
        {
            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("@" + tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 1));
            exp forecolor a             select((getTextWidth(locstring("@" + tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 1)), 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("@" + tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 1));
            exp forecolor a             select(((getTextWidth(locstring("@" + tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 1)), 9, 0.5) > 200) && (getTextWidth(locstring("@" + tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 1)), 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("@" + tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 1));
            exp forecolor a             select((getTextWidth(locstring("@" + tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 1)), 9, 0.4) > 200), 1, 0);
        }
        itemDef
        {
            rect                        -88 34.667 325.333 17.333 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_swfSelectionBarVis") && (localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            background                  "navbar_selection_bar"
            exp rect y                  ((localvarint("ui_buttonNavGroupCurrent") - localvarint("ui_buttonNavGroupOffset")) * 20) + (34.667) + 0.667;
        }
        itemDef
        {
            rect                        213 34.667 21.333 16.5 1 1
            style                       1
            decoration                  
            visible                     when(localvarbool("ui_swfSelectionButtonVis") && (localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textalign                   10
            textscale                   0.30625
            textfont                    3
            exp text                    "@PLATFORM_NAVBAR_BUTTON_FOCUSED_SELECTBUTTON";
            exp rect y                  ((localvarint("ui_buttonNavGroupCurrent") - localvarint("ui_buttonNavGroupOffset")) * 20) + (34.667) + (0.667);
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_0"
            rect                        -68 34.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_0";
                setLocalVarInt ui_buttonNavGroupCurrent 0;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 0))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 37 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 0)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 37 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 0)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 33.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select("challenges_detail_periodic" == "challenges_detail_periodic", select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "label"))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "label")))), select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)), 1))))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 0))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 0, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_0" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_1"
            rect                        -68 54.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_1";
                setLocalVarInt ui_buttonNavGroupCurrent 1;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 1))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 57 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 1)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 57 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 1)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 53.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select("challenges_detail_periodic" == "challenges_detail_periodic", select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "label"))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "label")))), select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)), 1))))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 1))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 1, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_1" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_2"
            rect                        -68 74.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_2";
                setLocalVarInt ui_buttonNavGroupCurrent 2;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 2))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 77 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 2)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 77 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 2)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 73.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select("challenges_detail_periodic" == "challenges_detail_periodic", select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "label"))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "label")))), select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)), 1))))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 2))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 2, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_2" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_3"
            rect                        -68 94.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_3";
                setLocalVarInt ui_buttonNavGroupCurrent 3;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 3))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 97 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 3)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 97 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 3)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 93.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 3))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 3, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_3" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_4"
            rect                        -68 114.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_4";
                setLocalVarInt ui_buttonNavGroupCurrent 4;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 4))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 117 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 4)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 117 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 4)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 113.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 4))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 4, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_4" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_5"
            rect                        -68 134.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_5";
                setLocalVarInt ui_buttonNavGroupCurrent 5;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 5))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 137 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 5)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 137 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 5)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 133.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 5))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 5, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_5" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_6"
            rect                        -68 154.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_6";
                setLocalVarInt ui_buttonNavGroupCurrent 6;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 6))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 157 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 6)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 157 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 6)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 153.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 6))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 6, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_6" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_7"
            rect                        -68 174.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_7";
                setLocalVarInt ui_buttonNavGroupCurrent 7;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 7))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 177 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 7)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 177 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 7)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 173.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 7))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 7, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_7" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_8"
            rect                        -68 194.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_8";
                setLocalVarInt ui_buttonNavGroupCurrent 8;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 8))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 197 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 8)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 197 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 8)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 193.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 8))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 8, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_8" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_9"
            rect                        -68 214.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_9";
                setLocalVarInt ui_buttonNavGroupCurrent 9;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 9))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 217 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 9)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 217 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 9)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 213.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 9))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 9, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_9" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_10"
            rect                        -68 234.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_10";
                setLocalVarInt ui_buttonNavGroupCurrent 10;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 10))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 237 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 10)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 237 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 10)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 233.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 10))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 10, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_10" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_11"
            rect                        -68 254.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_11";
                setLocalVarInt ui_buttonNavGroupCurrent 11;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 11))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 257 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 11)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 257 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 11)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 253.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 11))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 11, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_11" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_12"
            rect                        -68 274.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_12";
                setLocalVarInt ui_buttonNavGroupCurrent 12;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 12))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 277 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 12)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 277 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 12)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 273.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 12))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 12, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_12" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_13"
            rect                        -68 294.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_13";
                setLocalVarInt ui_buttonNavGroupCurrent 13;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 13))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 297 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 13)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 297 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 13)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 293.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 13))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 13, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_13" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_14"
            rect                        -68 314.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_14";
                setLocalVarInt ui_buttonNavGroupCurrent 14;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 14))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 317 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 14)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 317 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 14)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 313.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 14))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 14, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_14" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_15"
            rect                        -68 334.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_15";
                setLocalVarInt ui_buttonNavGroupCurrent 15;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 15))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 337 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 15)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 337 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 15)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 333.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 15))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 15, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_15" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_16"
            rect                        -68 354.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_16";
                setLocalVarInt ui_buttonNavGroupCurrent 16;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 16))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 357 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 16)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 357 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 16)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 353.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 16))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 16, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_16" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            name                        "CHALLENGE_BUTTON_LIST_17"
            rect                        -68 374.667 305.333 20 1 1
            style                       3
            type                        1
            visible                     when(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
            textscale                   0.55
            forecolor                   0 0 0 0
            background                  "white"
            onFocus
            {
                setLocalVarString ui_swf_selection "CHALLENGE_BUTTON_LIST_17";
                setLocalVarInt ui_buttonNavGroupCurrent 17;
                setLocalVarString ui_buttonNavGroupName "CHALLENGE_BUTTON_LIST";
                setLocalVarBool ui_swfSelectionButtonVis ((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))) && !(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1)))));
                setLocalVarBool ui_swfSelectionBarVis (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige")));
                setLocalVarBool ui_swfSelectionDisabled (getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1))));
                if ((18 - 1) + localvarint("ui_buttonNavGroupOffset") < localvarint("ui_buttonNavGroupCurrent"))
                {
                    setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent") - (18 - 1));
                }
                else
                {
                    if (localvarint("ui_buttonNavGroupCurrent") < localvarint("ui_buttonNavGroupOffset"))
                    {
                        setLocalVarInt ui_buttonNavGroupOffset (localvarint("ui_buttonNavGroupCurrent"));
                    }
                }
                play mouse_over;
                setLocalVarString ui_selected_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0);
                if (ischallengeperiodic(localvarstring("ui_selected_ref")))
                {
                    setLocalVarString ui_selected_periodic_ref getchallengedata(localvarstring("ui_selected_ref"), "ref");
                }
                else
                {
                    setLocalVarString ui_selected_periodic_ref "";
                }
                setLocalVarString ui_selected_attach_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2);
                setLocalVarString ui_selected_perk_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3);
                setLocalVarString ui_selected_ks_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4);
                setLocalVarString ui_selected_subtier_ref tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1);
                setLocalVarString ui_selected_unlockTitle "";
                setLocalVarString ui_selected_unlockIcon "";
                setLocalVarString ui_selected_unlockPerk "";
                if (!(int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)), 1)))) == ""))
                {
                    setLocalVarString ui_selected_unlockTitle select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardTitleTable.csv", 6, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockIcon select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref"), 0), tablelookup("mp/cardIconTable.csv", 2, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    setLocalVarString ui_selected_unlockType select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 1), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 1));
                    if (localvarstring("ui_selected_unlockType") == "perk" || localvarstring("ui_selected_unlockType") == "killstreak")
                    {
                        setLocalVarString ui_selected_unlockPerk select(int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)) < 2, tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref"), 0), tablelookup("mp/unlockTable.csv", 3, localvarstring("ui_selected_ref") + "_" + int(max(getplayerdata("challengeState", localvarstring("ui_selected_ref")), 1)), 0));
                    }
                }
                if (1)
                {
                    setLocalVarBool ui_swfSelectionButtonVis 0;
                }
            }
            leaveFocus
            {
                setLocalVarBool ui_swfSelectionButtonVis 0;
                setLocalVarBool ui_swfSelectionBarVis 0;
                setLocalVarBool ui_swfSelectionDisabled 0;
            }
            action
            {
                if (!(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1)))))
                {
                    play mouse_click;
                }
            }
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 17))) + ((0 - 1.333));
        }
        itemDef
        {
            rect                        219 377 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 17)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        219 377 14.333 14.333 1 1
            style                       3
            decoration                  
            visible                     when(((((getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1))))) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))))) && (1) && (!(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && FUNC_34() && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST")));
            textscale                   0.55
            background                  "icon_lock"
            exp rect y                  (((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + ((((34.667) + (20 * 17)) + 1.333)) - (0.667)) + 1.5;
        }
        itemDef
        {
            rect                        -64 373.334 276.667 19.567 1 1
            style                       1
            decoration                  
            visible                     when((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0) != "" && !((tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) == "tier_prestige") && !isitemunlocked("tier_prestige"))));
            textalign                   10
            textscale                   0.375
            textstyle                   9
            textfont                    3
            exp text                    select((int(getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "target", int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)), 1)))) == ""), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "label") + "_" + (int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)), 1)) - 1))), (getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "name") + locstring("@" + getchallengedata(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0), "label") + "_" + int(max(getplayerdata("challengeState", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)), 1)))));
            exp rect y                  ((0 - (localvarint("ui_buttonNavGroupOffset") * 20))) + (((34.667) + (20 * 17))) + ((0 - 1.333));
            exp forecolor r             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor g             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
            exp forecolor b             select(getplayerdata("challengeProgress", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 0)) == 0 && !dvarbool(unlockAllItems) && (tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2) != "" && !(areAllItemsUnlocked() || (getplayerdata("weaponRank", tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6)) >= tablelookup("mp/weaponRankTable.csv", (tablelookup("mp/weaponRankTable.csv", 0, tablelookup("mp/statsTable.csv", 4, tablelookup("mp/challengeTable.csv", 4, localvarstring("ui_challengeTierTable"), 6), 2), 2)), tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 2), 4)) || dvarbool(xblive_privatematch)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 3)) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4) != "" && !(isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4)) && ((localvarstring("ui_info_filter") == "killstreaks_specialist") || (getplayerdata("killstreakUnlocked", tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 4))))) || tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1) != "" && !isitemunlocked(tablelookupbyrow(localvarstring("ui_challengeTierTable"), 17, 1))), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", 0, 0.360784), select(localvarstring("ui_swf_selection") == "CHALLENGE_BUTTON_LIST_17" && select(localvarbool("ui_centerPopup"), localvarbool("ui_swfPopupSelectionBarVis"), localvarbool("ui_swfSelectionBarVis")) && localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST", select(isdemoplaying(), FUNC_36(), FUNC_35()), 1));
        }
        itemDef
        {
            rect                        -88 52 325.333 8.666 1 1
            style                       3
            decoration                  
            visible                     when(localvarbool("ui_swfSelectionBarVis") && (localvarstring("ui_buttonNavGroupName") == "CHALLENGE_BUTTON_LIST"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect y                  ((localvarint("ui_buttonNavGroupCurrent") - localvarint("ui_buttonNavGroupOffset")) * 20) + (34.667) + 0.667 + 17.333;
        }
        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 "challenges_detail_periodic";
                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") == "challenges_detail_periodic"));
            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") == "challenges_detail_periodic"));
            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") == "challenges_detail_periodic"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "challenges_detail_periodic"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "challenges_detail_periodic"), 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 "challenges_detail_periodic";
                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") == "challenges_detail_periodic"));
            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") == "challenges_detail_periodic"));
            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") == "challenges_detail_periodic"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "challenges_detail_periodic"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "challenges_detail_periodic"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
    }
}
