{
    menuDef
    {
        name                        "page_facebook"
        rect                        -266.667 20 533.333 370 2 1
        style                       1
        focuscolor                  1 1 1 1
        outOfBoundsClick            
        popup                       
        legacySplitScreenScale      
        visible                     when(isfacebookallowed(2));
        onOpen
        {
            setLocalVarString ui_currentPage "page_facebook";
            if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
            {
                if ("page_facebook" == "page_friends")
                {
                    setLocalVarInt ui_leftArrow 0;
                    setLocalVarString ui_leftPage "";
                    if (isfacebookallowed(2) || iseliteclanallowed())
                    {
                        if (isfacebookallowed(2))
                        {
                            setLocalVarInt ui_rightArrow 1;
                            setLocalVarString ui_rightPage "page_facebook";
                        }
                        else
                        {
                            setLocalVarInt ui_rightArrow 1;
                            setLocalVarString ui_rightPage "page_elite_clan";
                        }
                    }
                    else
                    {
                        setLocalVarInt ui_rightArrow 0;
                        setLocalVarString ui_rightPage "";
                    }
                }
                if ("page_facebook" == "page_facebook")
                {
                    setLocalVarInt ui_leftArrow 1;
                    setLocalVarString ui_leftPage "page_friends";
                    if (iseliteclanallowed())
                    {
                        setLocalVarInt ui_rightArrow 1;
                        setLocalVarString ui_rightPage "page_elite_clan";
                    }
                    else
                    {
                        setLocalVarInt ui_rightArrow 0;
                        setLocalVarString ui_rightPage "";
                    }
                }
                if ("page_facebook" == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        setLocalVarInt ui_leftArrow 1;
                        setLocalVarString ui_leftPage "page_facebook";
                    }
                    else
                    {
                        setLocalVarInt ui_leftArrow 1;
                        setLocalVarString ui_leftPage "page_friends";
                    }
                    setLocalVarInt ui_rightArrow 0;
                    setLocalVarString ui_rightPage "";
                }
            }
            else
            {
                if ("page_facebook" == "page_friends")
                {
                    setLocalVarInt ui_leftArrow 0;
                    setLocalVarString ui_leftPage "";
                    setLocalVarInt ui_rightArrow 1;
                    setLocalVarString ui_rightPage "page_recent";
                }
                if ("page_facebook" == "page_recent")
                {
                    setLocalVarInt ui_leftArrow 1;
                    setLocalVarString ui_leftPage "page_friends";
                    if (isfacebookallowed(2) || iseliteclanallowed())
                    {
                        if (isfacebookallowed(2))
                        {
                            setLocalVarInt ui_rightArrow 1;
                            setLocalVarString ui_rightPage "page_facebook";
                        }
                        else
                        {
                            setLocalVarInt ui_rightArrow 1;
                            setLocalVarString ui_rightPage "page_elite_clan";
                        }
                    }
                    else
                    {
                        setLocalVarInt ui_rightArrow 0;
                        setLocalVarString ui_rightPage "";
                    }
                }
                if ("page_facebook" == "page_facebook")
                {
                    setLocalVarInt ui_leftArrow 1;
                    setLocalVarString ui_leftPage "page_recent";
                    if (iseliteclanallowed())
                    {
                        setLocalVarInt ui_rightArrow 1;
                        setLocalVarString ui_rightPage "page_elite_clan";
                    }
                    else
                    {
                        setLocalVarInt ui_rightArrow 0;
                        setLocalVarString ui_rightPage "";
                    }
                }
                if ("page_facebook" == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        setLocalVarInt ui_leftArrow 1;
                        setLocalVarString ui_leftPage "page_facebook";
                    }
                    else
                    {
                        setLocalVarInt ui_leftArrow 1;
                        setLocalVarString ui_leftPage "page_recent";
                    }
                    setLocalVarInt ui_rightArrow 0;
                    setLocalVarString ui_rightPage "";
                }
            }
            focusfirst;
        }
        onRequestClose
        {
            setFocus facebookList;
        }
        onESC
        {
            close self;
            close popup_friends;
        }
        execKeyInt 185
        {
            uiScript FacebookPageLeft;
        }
        execKeyInt 186
        {
            uiScript FacebookPageRight;
        }
        execKeyInt 157
        {
            setLocalVarString ui_old_page ("page_facebook");
            if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
            {
                if (localvarstring("ui_old_page") == "page_friends")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                    else
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    if (iseliteclanallowed())
                    {
                        close self;
                        open page_elite_clan;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                }
            }
            else
            {
                if (localvarstring("ui_old_page") == "page_friends")
                {
                    close self;
                    open page_recent;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_recent")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                    else
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    if (iseliteclanallowed())
                    {
                        close self;
                        open page_elite_clan;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                }
            }
        }
        execKeyInt 23
        {
            setLocalVarString ui_old_page ("page_facebook");
            if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
            {
                if (localvarstring("ui_old_page") == "page_friends")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                    else
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    if (iseliteclanallowed())
                    {
                        close self;
                        open page_elite_clan;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                }
            }
            else
            {
                if (localvarstring("ui_old_page") == "page_friends")
                {
                    close self;
                    open page_recent;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_recent")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                    else
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    if (iseliteclanallowed())
                    {
                        close self;
                        open page_elite_clan;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                }
            }
        }
        execKeyInt 31
        {
            setLocalVarString ui_old_page ("page_facebook");
            if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
            {
                if (localvarstring("ui_old_page") == "page_friends")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                    else
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    if (iseliteclanallowed())
                    {
                        close self;
                        open page_elite_clan;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                }
            }
            else
            {
                if (localvarstring("ui_old_page") == "page_friends")
                {
                    close self;
                    open page_recent;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_recent")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                    else
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    if (iseliteclanallowed())
                    {
                        close self;
                        open page_elite_clan;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                }
            }
        }
        execKeyInt 156
        {
            setLocalVarString ui_old_page ("page_facebook");
            if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
            {
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    close self;
                    open page_friends;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    else
                    {
                        close self;
                        open page_friends;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                }
            }
            else
            {
                if (localvarstring("ui_old_page") == "page_recent")
                {
                    close self;
                    open page_friends;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    close self;
                    open page_recent;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    else
                    {
                        close self;
                        open page_recent;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                }
            }
        }
        execKeyInt 22
        {
            setLocalVarString ui_old_page ("page_facebook");
            if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
            {
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    close self;
                    open page_friends;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    else
                    {
                        close self;
                        open page_friends;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                }
            }
            else
            {
                if (localvarstring("ui_old_page") == "page_recent")
                {
                    close self;
                    open page_friends;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    close self;
                    open page_recent;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    else
                    {
                        close self;
                        open page_recent;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                }
            }
        }
        execKeyInt 30
        {
            setLocalVarString ui_old_page ("page_facebook");
            if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
            {
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    close self;
                    open page_friends;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    else
                    {
                        close self;
                        open page_friends;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                }
            }
            else
            {
                if (localvarstring("ui_old_page") == "page_recent")
                {
                    close self;
                    open page_friends;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_facebook")
                {
                    close self;
                    open page_recent;
                    play tabs_slide;
                    setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                }
                if (localvarstring("ui_old_page") == "page_elite_clan")
                {
                    if (isfacebookallowed(2))
                    {
                        close self;
                        open page_facebook;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    else
                    {
                        close self;
                        open page_recent;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                }
            }
        }
        itemDef
        {
            text                        "@MENU_FACEBOOK_FRIENDS_CAPS"
            rect                        0 0 533.333 24 0 0
            decoration                  
            visible                     1
            textalign                   9
            textscale                   0.5
            textstyle                   9
            textfont                    9
        }
        itemDef
        {
            name                        "facebookList"
            rect                        -2 22 537.333 324 2 1
            type                        6
            visible                     when(1);
            textscale                   0.375
            textstyle                   3
            backcolor                   0.5 0.5 0.5 0
            onFocus
            {
                if (uistarted())
                {
                    play mouse_over;
                }
            }
            mouseEnter
            {
                play mouse_over;
            }
            elementwidth                200
            elementheight               40
            feeder                      33
            columns                     5
                                        12 22 14 14 40 0
                                        12 5 14 14 40 0
                                        39 -3 200 0 40 0
                                        39 -19 200 0 40 0
                                        2364 -20 200 0 999 0
            doubleclick
            {
                if (getFeederData("facebookList", "count") > 0)
                {
                    play mouse_click;
                    if (localvarbool("ui_vault_browse"))
                    {
                        if (!canuseraccessonlinevault())
                        {
                            execWithResolve xrequirelivesigninforvault;
                        }
                        else
                        {
                            uiScript onlinevault open browse fb vault_friend_browser;
                        }
                    }
                    else
                    {
                        if (localvarbool("ui_vault_load"))
                        {
                            if (!canuseraccessonlinevault())
                            {
                                execWithResolve xrequirelivesigninforvault;
                            }
                            else
                            {
                                setLocalVarBool vault_loadfromslot_local 0;
                                uiScript onlinevault open load fb cgm vault_loadFromSlot;
                            }
                        }
                        else
                        {
                            open popup_facebook_list_actions;
                        }
                    }
                }
            }
            selectBorder                0.8 0.95 1 0
        }
        itemDef
        {
            rect                        239 24 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(0)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 25 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(0);
        }
        itemDef
        {
            rect                        239 64 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(1)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 65 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(1);
        }
        itemDef
        {
            rect                        239 104 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(2)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 105 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(2);
        }
        itemDef
        {
            rect                        239 144 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(3)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 145 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(3);
        }
        itemDef
        {
            rect                        239 184 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(4)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 185 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(4);
        }
        itemDef
        {
            rect                        239 224 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(5)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 225 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(5);
        }
        itemDef
        {
            rect                        239 264 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(6)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 265 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(6);
        }
        itemDef
        {
            rect                        239 304 294.333 40 0 0
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(7)));
            textscale                   0.55
            backcolor                   0 0 0 1
            exp rect w                  select(getFeederData("facebookList", "count") >= 8, (533.333 - 240 + 12 - 5), (533.333 - 240 + 12 - 13));
        }
        itemDef
        {
            rect                        252 305 250.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(1);
            textalign                   4
            textscale                   0.375
            textstyle                   3
            exp text                    getFriendPlayercardPresence(7);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(0)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(0)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(0)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(0) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24) - 1.1, (24) - 14.267);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24 + 40);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24 + 40) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24 + 40) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 40) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24 + 40) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24 + 40) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24 + 40) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 40) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(1)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 40) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(1)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 40) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(1)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 40) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24 + 40) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 40) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 40) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 40) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 40) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24 + 40) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(1) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24 + 40) - 1.1, (24 + 40) - 14.267);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24 + 80);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24 + 80) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24 + 80) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 80) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24 + 80) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24 + 80) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24 + 80) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 80) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(2)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 80) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(2)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 80) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(2)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 80) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24 + 80) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 80) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 80) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 80) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 80) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24 + 80) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(2) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24 + 80) - 1.1, (24 + 80) - 14.267);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24 + 120);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24 + 120) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24 + 120) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 120) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24 + 120) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24 + 120) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24 + 120) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 120) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(3)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 120) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(3)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 120) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(3)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 120) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24 + 120) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 120) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 120) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 120) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 120) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24 + 120) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(3) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24 + 120) - 1.1, (24 + 120) - 14.267);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24 + 160);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24 + 160) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24 + 160) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 160) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24 + 160) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24 + 160) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24 + 160) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 160) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(4)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 160) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(4)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 160) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(4)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 160) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24 + 160) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 160) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 160) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 160) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 160) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24 + 160) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(4) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24 + 160) - 1.1, (24 + 160) - 14.267);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24 + 200);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24 + 200) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24 + 200) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 200) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24 + 200) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24 + 200) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24 + 200) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 200) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(5)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 200) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(5)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 200) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(5)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 200) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24 + 200) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 200) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 200) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 200) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 200) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24 + 200) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(5) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24 + 200) - 1.1, (24 + 200) - 14.267);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24 + 240);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24 + 240) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24 + 240) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 240) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24 + 240) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24 + 240) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24 + 240) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 240) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(6)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 240) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(6)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 240) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(6)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 240) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24 + 240) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 240) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 240) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 240) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 240) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24 + 240) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(6) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24 + 240) - 1.1, (24 + 240) - 14.267);
        }
        itemDef
        {
            rect                        0 0 240 40 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            forecolor                   0 0 0 1
            background                  "white"
            exp rect x                  (- 1);
            exp rect y                  (24 + 280);
        }
        itemDef
        {
            rect                        0 0 237.333 37.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0));
            textscale                   0.55
            background                  "playercard_scanlines_512"
            exp rect x                  (- 1) + 1.333;
            exp rect y                  (24 + 280) + 1.333;
        }
        itemDef
        {
            rect                        0 0 35.3 35.3 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardIcon"));
            textscale                   0.55
            exp material                tablelookupbyrow("mp/cardIconTable.csv", getplayercardinfo(2, 9, 0), 1);
            exp rect x                  (- 1) + 2.533;
            exp rect y                  (24 + 280) + 2.567;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 2);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 280) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 28.8 28.8 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                "clanlvl_box";
            exp rect x                  (- 1) + 33.9 + ((156.667) - (28 * 0.9));
            exp rect y                  (24 + 280) + (0 - 4.1) - (11 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(22, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (25.5 * 0.9));
            exp rect y                  ((24 + 280) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 14.4 14.4 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle") && (getplayercardinfo(20, 9, 0) > 0));
            textscale                   0.55
            backcolor                   1 1 1 1
            exp material                getplayercardinfo(21, 9, 0);
            exp rect x                  (- 1) + 33.9 + ((156.667) - (13.5 * 0.9));
            exp rect y                  ((24 + 280) + (0 - 4.1)) - (3 * 0.9);
        }
        itemDef
        {
            rect                        0 0 156.667 31.333 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && !localvarbool("browsingCardTitle"));
            textalign                   9
            textscale                   0.375
            textstyle                   8
            textfont                    3
            exp text                    getplayercardinfo(14, 9, 0);
            exp rect x                  (- 1) + 33.9;
            exp rect y                  (24 + 280) + (0 - 4.1);
            exp forecolor r             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 3);
            exp forecolor g             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 4);
            exp forecolor b             tablelookupbyrow("mp/cardTitleTable.csv", getplayercardinfo(1, 9, 0), 5);
            exp backcolor a             0;
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(7)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.375
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 280) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 142), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(7)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.3
            textstyle                   8
            textfont                    9
            exp text                    getplayercardinfo(11, 9, 0);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 280) + 21.5;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 142 && getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) <= 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 146.7 16.6 2 1
            style                       1
            decoration                  
            visible                     when((showFriendPlayercard(7)) && (getplayercardinfo(0, 9, 0) != 0));
            textalign                   8
            textscale                   0.225
            textstyle                   8
            textfont                    9
            exp text                    truncateTextWithEllipsis(getplayercardinfo(11, 9, 0), 9, (0.375 * 0.6), 140);
            exp rect x                  (- 1) + 40;
            exp rect y                  (24 + 280) + 22;
            exp forecolor r             0.941;
            exp forecolor g             0.773;
            exp forecolor b             0.361;
            exp forecolor a             select((getTextWidth(getplayercardinfo(11, 9, 0), 9, 0.375) > 180), 1, 0);
        }
        itemDef
        {
            rect                        0 0 51.333 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(12, 9, 0) != "");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            forecolor                   0.941 0.773 0.361 1
            exp text                    "[" + getplayercardinfo(12, 9, 0) + "]";
            exp rect x                  (- 1) + 188;
            exp rect y                  (24 + 280) + 2.5;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textscale                   0.55
            exp material                tablelookup("mp/rankIconTable.csv", 0, getplayercardinfo(4, 9, 0), (getplayercardinfo(5, 9, 0) + 1));
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 280) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(4, 9, 0) >= 0) && dvarstring(gameMode) == "mp");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("mp/rankTable.csv", 0, getplayercardinfo(4, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 280) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 18.667 18.667 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textscale                   0.55
            exp material                tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 6);
            exp rect x                  (- 1) + 192;
            exp rect y                  (24 + 280) + 18.9;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 22 18.033 2 1
            style                       1
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && (getplayercardinfo(6, 9, 0) >= 0) && dvarstring(gameMode) == "so");
            textalign                   8
            textscale                   0.375
            textstyle                   7
            textfont                    3
            exp text                    tablelookup("sp/rankTable.csv", 0, getplayercardinfo(6, 9, 0), 14);
            exp rect x                  (- 1) + 212;
            exp rect y                  (24 + 280) + 19.167;
            exp forecolor a             1;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(10, 9, 0));
            textscale                   0.55
            exp material                "xp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  (24 + 280) - 14.267;
        }
        itemDef
        {
            rect                        0 0 29.333 29.333 2 1
            style                       3
            decoration                  
            visible                     when(showFriendPlayercard(7) && (getplayercardinfo(0, 9, 0) != 0) && getplayercardinfo(15, 9, 0));
            textscale                   0.55
            exp material                "gxp";
            exp rect x                  (- 1) + 228.667;
            exp rect y                  select(getplayercardinfo(10, 9, 0), (24 + 280) - 1.1, (24 + 280) - 14.267);
        }
        itemDef
        {
            rect                        -2000 -2000 10 10 0 0
            style                       3
            decoration                  
            textscale                   0.55
            background                  "facebook"
        }
        itemDef
        {
            rect                        10 64 507.333 40 0 0
            decoration                  
            autowrapped                 
            visible                     when(getFeederData("facebookList", "count") == 0);
            textalign                   5
            textscale                   0.375
            textfont                    3
            forecolor                   0.7 0.7 0.7 1
            exp text                    getfacebookhelptext();
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            type                        1
            visible                     when(facebook_friends_show_prev());
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 3;
                setLocalVarString ui_ralign_group "page_facebook";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiScript FacebookPageLeft;
            }
            exp rect x                  (533.333) - (1 * 5) - 20 - getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375) - select((facebook_friends_show_next()), (20 + getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) + 5), 0) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 2 1
            style                       3
            decoration                  
            visible                     when((facebook_friends_show_prev()) && (!1) && (localvarint("ui_ralign_index") == 3 && localvarstring("ui_ralign_group") == "page_facebook"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (533.333) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375) - select((facebook_friends_show_next()), (20 + getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) + 5), 0) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            style                       1
            decoration                  
            visible                     when((facebook_friends_show_prev()) && (localvarint("ui_ralign_index") == 3 && localvarstring("ui_ralign_group") == "page_facebook"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (533.333) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375) - select((facebook_friends_show_next()), (20 + getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) + 5), 0) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            decoration                  
            visible                     when(facebook_friends_show_prev());
            textalign                   8
            textscale                   0.375
            textfont                    3
            exp text                    "@PLATFORM_FB_PREV_PAGE";
            exp rect x                  (533.333) - (1 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375) - select((facebook_friends_show_next()), (20 + getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) + 5), 0) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_PREV_PAGE"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 3 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 3 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 3 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            type                        1
            visible                     when(facebook_friends_show_next());
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 2;
                setLocalVarString ui_ralign_group "page_facebook";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiScript FacebookPageRight;
            }
            exp rect x                  (533.333) - (1 * 5) - 20 - getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 2 1
            style                       3
            decoration                  
            visible                     when((facebook_friends_show_next()) && (!1) && (localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "page_facebook"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (533.333) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            style                       1
            decoration                  
            visible                     when((facebook_friends_show_next()) && (localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "page_facebook"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (533.333) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            decoration                  
            visible                     when(facebook_friends_show_next());
            textalign                   8
            textscale                   0.375
            textfont                    3
            exp text                    "@PLATFORM_FB_NEXT_PAGE";
            exp rect x                  (533.333) - (1 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375) - select((1), (20 + getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 5), 0);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_FB_NEXT_PAGE"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 2 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            type                        1
            visible                     when(1);
            textalign                   8
            textscale                   0.375
            textfont                    3
            onFocus
            {
                setLocalVarInt ui_ralign_index 1;
                setLocalVarString ui_ralign_group "page_facebook";
                play mouse_over;
            }
            leaveFocus
            {
                setLocalVarInt ui_ralign_index - 1;
                setLocalVarString ui_ralign_group "";
            }
            action
            {
                play mouse_click;
                uiscript simulateKeyPress 27;
            }
            exp rect x                  (533.333) - (1 * 5) - 20 - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 8.666 2 1
            style                       3
            decoration                  
            visible                     when((1) && (!1) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "page_facebook"));
            textscale                   0.55
            background                  "navbar_selection_bar_shadow"
            exp rect x                  (533.333) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  (370 - 22) + 20;
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            style                       1
            decoration                  
            visible                     when((1) && (localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "page_facebook"));
            textscale                   0.55
            backcolor                   0.6 0.6314 0.6 1
            exp rect x                  (533.333) - (1 * 5) - (20) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375) + 20;
        }
        itemDef
        {
            rect                        0 0 0 20 2 1
            decoration                  
            visible                     when(1);
            textalign                   8
            textscale                   0.375
            textfont                    3
            exp text                    "@PLATFORM_BACK_SHORTCUT";
            exp rect x                  (533.333) - (1 * 5) - (20 / 2) - getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp rect y                  (370 - 22);
            exp rect w                  getTextWidth(locstring("@PLATFORM_BACK_SHORTCUT"), 3, 0.375);
            exp forecolor r             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor g             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
            exp forecolor b             select((localvarint("ui_ralign_index") == 1 && localvarstring("ui_ralign_group") == "page_facebook"), select(isdemoplaying(), FUNC_36(), FUNC_35()), 1);
        }
        itemDef
        {
            group                       "left_arrow"
            rect                        1 0 24 24 2 1
            style                       3
            type                        1
            visible                     when((localvarint("ui_leftArrow")));
            textalign                   10
            textscale                   0.55
            background                  "arrow_left"
            onFocus
            {
                play mouse_over;
                setItemColor left_arrow forecolor 1 1 "0.5" 1;
            }
            leaveFocus
            {
                setItemColor left_arrow forecolor 1 1 1 1;
            }
            action
            {
                play mouse_click;
                setLocalVarString ui_old_page (localvarstring("ui_currentPage"));
                if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
                {
                    if (localvarstring("ui_old_page") == "page_facebook")
                    {
                        close self;
                        open page_friends;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    if (localvarstring("ui_old_page") == "page_elite_clan")
                    {
                        if (isfacebookallowed(2))
                        {
                            close self;
                            open page_facebook;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                        }
                        else
                        {
                            close self;
                            open page_friends;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                        }
                    }
                }
                else
                {
                    if (localvarstring("ui_old_page") == "page_recent")
                    {
                        close self;
                        open page_friends;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    if (localvarstring("ui_old_page") == "page_facebook")
                    {
                        close self;
                        open page_recent;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                    }
                    if (localvarstring("ui_old_page") == "page_elite_clan")
                    {
                        if (isfacebookallowed(2))
                        {
                            close self;
                            open page_facebook;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                        }
                        else
                        {
                            close self;
                            open page_recent;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_left_time milliseconds();
                        }
                    }
                }
                focusfirst;
            }
            exp forecolor a             (sin(milliseconds() / 100) * 0.5 + 0.5) * 0.5 + 0.5;
        }
        itemDef
        {
            group                       "right_arrow"
            rect                        508.333 0 24 24 2 1
            style                       3
            type                        1
            visible                     when((localvarint("ui_rightArrow")));
            textalign                   10
            textscale                   0.55
            background                  "arrow_right"
            onFocus
            {
                play mouse_over;
                setItemColor right_arrow forecolor 1 1 "0.5" 1;
            }
            leaveFocus
            {
                setItemColor right_arrow forecolor 1 1 1 1;
            }
            action
            {
                play mouse_click;
                setLocalVarString ui_old_page (localvarstring("ui_currentPage"));
                if (localvarbool("ui_vault_browse") || localvarbool("ui_vault_load"))
                {
                    if (localvarstring("ui_old_page") == "page_friends")
                    {
                        if (isfacebookallowed(2))
                        {
                            close self;
                            open page_facebook;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                        else
                        {
                            if (iseliteclanallowed())
                            {
                                close self;
                                open page_elite_clan;
                                play tabs_slide;
                                setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                            }
                        }
                    }
                    if (localvarstring("ui_old_page") == "page_facebook")
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                else
                {
                    if (localvarstring("ui_old_page") == "page_friends")
                    {
                        close self;
                        open page_recent;
                        play tabs_slide;
                        setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                    }
                    if (localvarstring("ui_old_page") == "page_recent")
                    {
                        if (isfacebookallowed(2))
                        {
                            close self;
                            open page_facebook;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                        else
                        {
                            if (iseliteclanallowed())
                            {
                                close self;
                                open page_elite_clan;
                                play tabs_slide;
                                setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                            }
                        }
                    }
                    if (localvarstring("ui_old_page") == "page_facebook")
                    {
                        if (iseliteclanallowed())
                        {
                            close self;
                            open page_elite_clan;
                            play tabs_slide;
                            setLocalVarFloat ui_arrow_flash_right_time milliseconds();
                        }
                    }
                }
                focusfirst;
            }
            exp forecolor a             (sin(milliseconds() / 100) * 0.5 + 0.5) * 0.5 + 0.5;
        }
    }
}
