コード例 #1
0
 //보여질 스크롤 리스트오브젝트 활성화하기
 void Active_ScrollListObject(Invite_Type inviteType)
 {
     for (int i = 0; i < Lst_ScrollListObj.Count; i++)
     {
         Lst_ScrollListObj[i].SetActive(i == (int)inviteType);
     }
 }
コード例 #2
0
    public void ResponseToggle_Tap(int tapIdx)
    {
        if (nowTapType != (Invite_Type)tapIdx)
        {
            nowTapType = (Invite_Type)tapIdx;

            Set_InviteList();
        }
    }
コード例 #3
0
 public InviteInfo(uint _userID, string _name, ushort _clanMark, string _ctCd, byte _svIdx, Invite_Type _inviteType)
 {
     userID      = _userID;
     Name        = _name;
     ClanMark    = _clanMark;
     countryCode = _ctCd;
     SvIdx       = _svIdx;
     inviteType  = _inviteType;
 }
コード例 #4
0
    // 초대  element 생성 및 체크
    void Creat_InviteElement(Invite_Type inviteType)
    {
        User _user = UserDataManager.instance.user;

        if (inviteType == Invite_Type.Friend)
        {
            foreach (var fr in _user.User_Friends)
            {
                UIItem_GameInviteElement ele = UI_Manager.Getsingleton.CreatUI(UIITEM.ITEM_GAMEINVITEELEMENT,
                                                                               Lst_ContentTr[(int)Invite_Type.Friend]) as UIItem_GameInviteElement;

                ele.Set_inviteInfo(new InviteInfo(fr.Value.FrUserID, fr.Value.NkNm, fr.Value.ClanMark, "kr", fr.Value.SvIdx, inviteType));
                Lst_friendMember.Add(ele);
            }

            //친구목록 정렬
            Sort_Invitelist(Lst_friendMember);
        }
        else if (inviteType == Invite_Type.Clan)
        {
            //존재 하는 멤버만 추출
            var existMember = from mem in _user.Clan_members
                              where string.IsNullOrEmpty(mem.Value.NkNm) == false || mem.Value.UserID != 0                             //닉네임 없거나 아이디가 0이면 제외
                              select mem;

            foreach (var clanMember in existMember)
            {
                if (clanMember.Value.UserID == UserDataManager.instance.user.user_Users.UserID)
                {
                    continue;
                }

                UIItem_GameInviteElement ele = UI_Manager.Getsingleton.CreatUI(UIITEM.ITEM_GAMEINVITEELEMENT,
                                                                               Lst_ContentTr[(int)Invite_Type.Clan]) as UIItem_GameInviteElement;

                ele.Set_inviteInfo(new InviteInfo(clanMember.Value.UserID, clanMember.Value.NkNm, _user.clan_Clans.ClanMark, clanMember.Value.CtrCd, clanMember.Value.SvIdx, inviteType));
                Lst_clanMember.Add(ele);
            }

            //클랜목록 정렬
            Sort_Invitelist(Lst_clanMember);
        }
    }
コード例 #5
0
    void Chk_InviteInfo(Invite_Type inviteType)
    {
        User _user = UserDataManager.instance.user;

        if (inviteType == Invite_Type.Friend)
        {
            if (Lst_friendMember.Count <= 0)
            {
                webRequest.FriendList(() => Creat_InviteElement(inviteType));
            }
        }
        else if (inviteType == Invite_Type.Clan)
        {
            if (Lst_clanMember.Count <= 0)
            {
                if (_user.clan_Clans.ClanID != 0)
                {
                    webRequest.ClanInfo(() => Creat_InviteElement(inviteType));
                }
            }
        }
    }