/// <summary> /// 생성한 길드멤버 리스트를 정렬한다. /// </summary> private void SortMemberList() { // 정렬변경 -> 1. 멤버상태(길드장->부길드장->길드원으로 정렬) -> 2. 오늘 로그인했나 -> 3. 기여도 m_MemberList = m_MemberList.OrderBy((data) => data.MemberInfo.kMemberState) .ThenByDescending((data) => UtilFunc.TodayLogon(data.MemberInfo.kLastLogonTime.GetDateTime())) .ThenByDescending((data) => data.MemberInfo.kUserTributeExp).ToList(); int iCount = m_MemberList.Count; for (int i = 0; i < iCount; ++i) { GuildInformationItem member = m_MemberList[i]; if (member == null) { continue; } member.name = i.ToString(); } m_GuildMemberGrid.sorting = UIGrid.Sorting.Custom; m_GuildMemberGrid.onCustomSort = UtilFunc.SortByNumber; //m_GuildMemberGrid.sorting = UIGrid.Sorting.Alphabetic; m_GuildMemberGrid.Reposition(); m_GuildMemberScrollView.ResetPosition(); }
/// <summary> /// 생성한 길드멤버 리스트를 정렬한다. /// </summary> private void SortMemberList() { // 정렬변경 -> 1. 멤버상태(길드장->부길드장->길드원으로 정렬) -> 2. 오늘 로그인했나 -> 3. 기여도 m_MemberList = m_MemberList.OrderBy((data) => data.MemberInfo.kMemberState) .ThenByDescending((data) => UtilFunc.TodayLogon(data.MemberInfo.kLastLogonTime.GetDateTime())) .ThenByDescending((data) => data.MemberInfo.kUserTributeExp).ToList(); int iCount = m_MemberList.Count; for (int i = 0; i < iCount; ++i) { GuildInformationItem member = m_MemberList[i]; if (member == null) { continue; } member.name = i.ToString(); } ResetPosition(); }