public void UpdateListUI() { SetLabelText((Enum)UI.STR_TITLE, base.sectionData.GetText("STR_TITLE")); SetLabelText((Enum)UI.STR_TITLE_REFLECT, base.sectionData.GetText("STR_TITLE")); SetText((Enum)UI.LBL_SORT, "STR_SORT_" + currentSortType.ToString()); if (inviteUsers == null || inviteUsers.Length == 0) { SetActive((Enum)UI.STR_NON_LIST, true); SetActive((Enum)UI.GRD_LIST, false); SetButtonEnabled((Enum)UI.BTN_PAGE_PREV, false); SetButtonEnabled((Enum)UI.BTN_PAGE_NEXT, false); SetLabelText((Enum)UI.LBL_NOW, "0"); SetLabelText((Enum)UI.LBL_MAX, "0"); } else { SetLabelText((Enum)UI.LBL_NOW, (nowPage + 1).ToString()); SetActive((Enum)UI.STR_NON_LIST, false); SetActive((Enum)UI.GRD_LIST, true); SetButtonEnabled((Enum)UI.BTN_PAGE_PREV, nowPage > 0); SetButtonEnabled((Enum)UI.BTN_PAGE_NEXT, nowPage + 1 < pageNumMax); SetDynamicList((Enum)UI.GRD_LIST, "QuestInviteeSelectListItem", inviteUsers.Length, false, (Func <int, bool>) null, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool is_recycle) { PartyInviteCharaInfo partyInviteCharaInfo = inviteUsers[i]; SetupListItem(partyInviteCharaInfo, i, t, is_recycle); SetFollowStatus(t, partyInviteCharaInfo.userId, partyInviteCharaInfo.following, partyInviteCharaInfo.follower); if (LoungeMatchingManager.IsValidInLounge()) { SetActive(t, UI.SPR_ICON_FIRST_MET, MonoBehaviourSingleton <LoungeMatchingManager> .I.CheckFirstMet(partyInviteCharaInfo.userId)); } }); } }
private void SetupListItem(PartyInviteCharaInfo info, int i, Transform t, bool is_recycle) { SetCharaInfo(info, i, t, is_recycle, false); SetActive(t, UI.OBJ_DISABLE_USER_MASK, !info.canEntry || info.invite || selectedUserIdList.Contains(info.userId)); SetActive(t, UI.OBJ_INVITED, info.invite); SetButtonEnabled(t, !info.invite && info.canEntry); SetActive(t, UI.OBJ_SELECTED, selectedUserIdList.Contains(info.userId)); SetActive(t, UI.OBJ_NOT_PROGRESSED, !info.canEntry); SetActive(t, UI.OBJ_ROOMCONDITION, false); if (MonoBehaviourSingleton <GameSceneManager> .I.GetCurrentSectionName() == "LoungeInviteFriend") { bool flag = (int)info.level < 15; SetActive(t, UI.OBJ_CANT_LOUNGE, flag); bool flag2 = false; LoungeModel.Lounge loungeData = MonoBehaviourSingleton <LoungeMatchingManager> .I.loungeData; for (int j = 0; j < loungeData.slotInfos.Count; j++) { if (loungeData.slotInfos[j].userInfo != null && loungeData.slotInfos[j].userInfo.userId == info.userId) { flag2 = true; break; } } SetActive(t, UI.OBJ_IN_LOUNGE, flag2); if (flag || flag2) { SetActive(t, UI.OBJ_INVITED, false); SetActive(t, UI.OBJ_NOT_PROGRESSED, false); SetActive(t, UI.OBJ_ROOMCONDITION, false); } SetButtonEnabled(t, !info.invite && info.canEntry && !flag2 && !flag); } }
public override void OnQuery_FOLLOW_INFO() { int num = (int)GameSection.GetEventData(); PartyInviteCharaInfo partyInviteCharaInfo = inviteUsers[num]; if (partyInviteCharaInfo.canEntry) { if (selectedUserIdList.Contains(partyInviteCharaInfo.userId)) { selectedUserIdList.Remove(partyInviteCharaInfo.userId); } else { selectedUserIdList.Add(partyInviteCharaInfo.userId); } RefreshUI(); } }