public override void SetComponent() { this.m_ListBox = (base.GetControl("NewListBox_friend") as NewListBox); this.m_btnConfirm = (base.GetControl("Button_confirm") as Button); this.m_btnConfirm.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickConfirm)); foreach (USER_FRIEND_INFO userFriendInfo in NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_kFriendInfo.GetFriendInfoValues()) { COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = new COMMUNITY_USER_INFO(); cOMMUNITY_USER_INFO.Set(userFriendInfo); this.m_CommunityUserList.Add(cOMMUNITY_USER_INFO); } }
public void UpdateFriendList(USER_FRIEND_INFO info) { COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = new COMMUNITY_USER_INFO(); cOMMUNITY_USER_INFO.Set(info); foreach (COMMUNITY_USER_INFO current in this.m_CommunityUserList) { if (current.i64PersonID == info.nPersonID) { current.Update(info); break; } } if (cOMMUNITY_USER_INFO != null) { COMMUNITY_USER_INFO cOMMUNITY_USER_INFO2 = new COMMUNITY_USER_INFO(); cOMMUNITY_USER_INFO2.Set(info); this.m_CommunityUserList.Add(cOMMUNITY_USER_INFO2); } int a = this.m_CommunityUserList.Count / 14 + 1; this.LOADED_PAGE = Mathf.Max(a, this.LOADED_PAGE); }
public void SetList() { this.m_RecentBabelPlayerList.Clear(); for (int i = 0; i < 4; i++) { string s = string.Empty; s = PlayerPrefs.GetString("Babel JoinPlayer" + i, "0"); long num = long.Parse(s); if (num > 0L) { this.m_RecentBabelPlayerList.Add(num); } } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); this.m_dicCommunityList.Clear(); foreach (USER_FRIEND_INFO uSER_FRIEND_INFO in kMyCharInfo.m_kFriendInfo.GetFriendInfoValues()) { if (!this.m_dicCommunityList.ContainsKey(uSER_FRIEND_INFO.nPersonID)) { if (0 >= SoldierBatch.BABELTOWER_INFO.BountHuntUnique || (int)uSER_FRIEND_INFO.i16Level >= COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BOUNTY_INVITE_LEVEL)) { COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = new COMMUNITY_USER_INFO(); cOMMUNITY_USER_INFO.Set(uSER_FRIEND_INFO); this.m_dicCommunityList.Add(uSER_FRIEND_INFO.nPersonID, cOMMUNITY_USER_INFO); } } } for (int j = 0; j < NrTSingleton <NewGuildManager> .Instance.GetMemberCount(); j++) { NewGuildMember memberInfoFromIndex = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromIndex(j); if (memberInfoFromIndex != null) { if (memberInfoFromIndex.GetPersonID() != charPersonInfo.GetPersonID()) { if (!this.m_dicCommunityList.ContainsKey(memberInfoFromIndex.GetPersonID())) { if (0 >= SoldierBatch.BABELTOWER_INFO.BountHuntUnique || (int)memberInfoFromIndex.GetLevel() >= COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BOUNTY_INVITE_LEVEL)) { COMMUNITY_USER_INFO cOMMUNITY_USER_INFO2 = new COMMUNITY_USER_INFO(); cOMMUNITY_USER_INFO2.Set(memberInfoFromIndex); this.m_dicCommunityList.Add(memberInfoFromIndex.GetPersonID(), cOMMUNITY_USER_INFO2); } } } } } foreach (BABEL_RNDINVITE_PERSON current in SoldierBatch.BABELTOWER_INFO.m_Babel_RndInvitePersonList) { if (!this.m_dicCommunityList.ContainsKey(current.i64PersonID)) { if (0 >= SoldierBatch.BABELTOWER_INFO.BountHuntUnique || (int)current.i16Level >= COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_BOUNTY_INVITE_LEVEL)) { USER_FRIEND_INFO uSER_FRIEND_INFO2 = new USER_FRIEND_INFO(); uSER_FRIEND_INFO2.nPersonID = current.i64PersonID; uSER_FRIEND_INFO2.szName = current.szCharName; uSER_FRIEND_INFO2.i16Level = current.i16Level; uSER_FRIEND_INFO2.i32WorldID_Connect = current.i32WorldID; uSER_FRIEND_INFO2.i32MapUnique = 1; COMMUNITY_USER_INFO cOMMUNITY_USER_INFO3 = new COMMUNITY_USER_INFO(); cOMMUNITY_USER_INFO3.Set(uSER_FRIEND_INFO2); this.m_dicCommunityList.Add(cOMMUNITY_USER_INFO3.i64PersonID, cOMMUNITY_USER_INFO3); } } } }