Example #1
0
 public void SetSearchFriendItem(FriendBaseInfo friendBaseInfo)
 {
     _searchItem = friendBaseInfo;
     //_findfriendList.RefillCells();
     _findfriendList.totalCount     = 1;
     _findfriendList.UpdateCallback = ShowSearchItem;
     _findfriendList.RefreshCells();
 }
Example #2
0
    public void SetData(FriendBaseInfo info, int state)
    {
        _recommenttran.gameObject.SetActive(state == 0);
        _applytran.gameObject.SetActive(state == 1);

        friendId    = info.UserId;
        _level.text = info.DepartmentLevel.ToString();
        _playersupportername.text = info.UserName;
        _playername.text          = info.UserName;
        //_headIcon.texture = null; //info.UserHead
        _collectedNum.text = I18NManager.Get("Friend_CardCollecter2", info.CardNum);//"星缘收集:"+info.CardNum;
        //Debug.LogError(info.LastLoginTime);
//        Debug.LogError(DateUtil.GetDataTime(info.LastLoginTime));
        _lastloginTime.text = DateUtil.GetTimeFormatMinute(ClientTimer.Instance.GetCurrentTimeStamp() - info.LastLoginTime) + I18NManager.Get("Friend_LoginBefore");
    }
Example #3
0
        public void UpdateApplyList(int friendId)
        {
            FriendBaseInfo target = null;

            foreach (var v in FriendApplyList)
            {
                if (v.UserId == friendId)
                {
                    target = v;
                }
            }

            FriendApplyList.Remove(target);

            GlobalData.DepartmentData.CanGetFriendsPower = FriendApplyList.Count > 0;
        }
Example #4
0
        //申请后的操作,删掉一个item
        public void UpdateCommentList(int friendId)
        {
            FriendBaseInfo target = null;

            foreach (var v in FriendCommentList)
            {
                if (v.UserId == friendId)
                {
                    Debug.LogError(v);
                    target = v;
                }
            }

            if (target != null)
            {
                FriendCommentList.Remove(target);
            }
        }