/// <summary> /// フレンドリストの情報作成 /// </summary> void CreateFriendList() { MainMenuUtil.CreateFriendList(ref m_FriendList, FRIEND_STATE.FRIEND_STATE_SUCCESS, SelectIcon, SelectFriend); m_FriendList.SetUpSortData(LocalSaveManager.Instance.LoadFuncSortFilterFriendList()); m_FriendList.OnClickSortButtonAction = OnClockSortButton; m_FriendList.Init(); updateFriendCount(); }
/// <summary> /// フレンドリスト更新(フレンド申し込みリスト) /// </summary> private void updateFriendList() { MainMenuUtil.CreateFriendList(ref m_FriendList, FRIEND_STATE.FRIEND_STATE_WAIT_HIM, SelectIcon, SelectFriend); m_FriendList.SetUpSortData(LocalSaveManager.Instance.LoadFuncSortFilterFriendWaitHim()); m_FriendList.OnClickSortButtonAction = OnClockSortButton; m_FriendList.Init(); // updateCount(); }
private void Update() { if (SceneCommon.Instance.IsLoadingScene) { return; } if (!m_bInit) { m_bInit = true; PacketStructFriend[] helperList = UserDataAdmin.Instance.m_StructHelperList; if (helperList == null) { return; } for (int i = 0; i < helperList.Length; i++) { if (helperList[i] == null) { continue; } FriendDataSetting newFriend = new FriendDataSetting(); newFriend.FriendData = helperList[i]; newFriend.MasterData = MasterFinder <MasterDataParamChara> .Instance.Find((int)helperList[i].unit.id); newFriend.m_Flag = FriendDataItem.FlagType.NONE; newFriend.DidSelectIcon = OnSelectIcon; newFriend.DidSelectFriend = OnSelectFriend; newFriend.CharaOnce = MainMenuUtil.CreateFriendCharaOnce(newFriend.FriendData); newFriend.setSortParamFriend(newFriend.FriendData, newFriend.CharaOnce, newFriend.MasterData); friendList.FriendBaseList.Body.Add(newFriend); } friendList.Init(); } }
private void setupFriend() { List<FriendDataSetting> friendList = new List<FriendDataSetting>(); MasterDataQuest2 cQuestMasterData = MasterDataUtil.GetQuest2ParamFromID(MainMenuParam.m_QuestSelectMissionID); uint requirement_id = 0; if (cQuestMasterData != null) { requirement_id = cQuestMasterData.quest_requirement_id; } CreateFriendList(ref friendList, requirement_id); setupFriendList(ref friendList); m_FriendList.FriendBaseList.Body = friendList; m_FriendList.SetUpSortData(LocalSaveManager.Instance.LoadFuncSortFilterQuestFriend()); m_FriendList.OnClickSortButtonAction = OnClockSortButton; m_FriendList.OnClickReloadButtonAction = OnClickReloadButton; m_FriendList.Init(); }