private void ShowListBox()
    {
        this.m_ListBox.Clear();
        WhisperRoom room = NrTSingleton <WhisperManager> .Instance.GetRoom(this.m_RoomUnique);

        List <WhisperUser> users = room.GetUsers();
        List <long>        list  = new List <long>();

        foreach (WhisperUser current in users)
        {
            list.Add(current.PersonID);
        }
        for (int i = 0; i < this.m_CommunityUserList.Count; i++)
        {
            COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = this.m_CommunityUserList[i];
            if (cOMMUNITY_USER_INFO != null && !list.Contains(cOMMUNITY_USER_INFO.i64PersonID) && cOMMUNITY_USER_INFO.bConnect)
            {
                NewListItem newListItem = new NewListItem(this.m_ListBox.ColumnNum, true, string.Empty);
                newListItem.SetListItemData(0, cOMMUNITY_USER_INFO.strName, null, null, null);
                newListItem.SetListItemData(1, NrTSingleton <UIDataManager> .Instance.GetString("Lv ", cOMMUNITY_USER_INFO.i16Level.ToString()), null, null, null);
                newListItem.SetListItemData(2, CommunityUI_DLG.CommunityIcon(cOMMUNITY_USER_INFO), null, null, null);
                newListItem.Data = cOMMUNITY_USER_INFO;
                this.m_ListBox.Add(newListItem);
            }
        }
        this.m_ListBox.RepositionItems();
    }
 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);
     }
 }
Exemple #3
0
    public void BtnClickWhisper(IUIObject obj)
    {
        COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = obj.Data as COMMUNITY_USER_INFO;

        if (cOMMUNITY_USER_INFO != null)
        {
            GS_WHISPER_REQ gS_WHISPER_REQ = new GS_WHISPER_REQ();
            gS_WHISPER_REQ.RoomUnique = 0;
            TKString.StringChar(cOMMUNITY_USER_INFO.strName, ref gS_WHISPER_REQ.Name);
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_WHISPER_REQ, gS_WHISPER_REQ);
            NrTSingleton <WhisperManager> .Instance.MySendRequest = true;
        }
    }
    private void BtnClickListBox(IUIObject obj)
    {
        IUIListObject       selectItem          = this.m_lxList.GetSelectItem();
        COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = (COMMUNITY_USER_INFO)selectItem.Data;
        int num = this.m_lxList.SelectedItem.GetIndex();

        num = Mathf.Clamp(num, 0, this.m_CommunityUserList.Count);
        cOMMUNITY_USER_INFO = this.m_CommunityUserList[num];
        bool flag = false;

        if (cOMMUNITY_USER_INFO != null)
        {
            if (cOMMUNITY_USER_INFO.byLocation <= 0 || !cOMMUNITY_USER_INFO.bConnect)
            {
                flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(cOMMUNITY_USER_INFO.i64PersonID, 0, cOMMUNITY_USER_INFO.strName, CRightClickMenu.KIND.OTHER_FRIEND_LOGOFF, CRightClickMenu.TYPE.SIMPLE_SECTION_1, false);
            }
            else if (Client.m_MyWS != (long)cOMMUNITY_USER_INFO.i32WorldID || Client.m_MyCH != cOMMUNITY_USER_INFO.byLocation)
            {
                Debug.Log(string.Concat(new object[]
                {
                    Client.m_MyWS,
                    "!=",
                    cOMMUNITY_USER_INFO.i32WorldID,
                    ",",
                    Client.m_MyCH,
                    "!=",
                    cOMMUNITY_USER_INFO.byLocation
                }));
                flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(cOMMUNITY_USER_INFO.i64PersonID, 0, cOMMUNITY_USER_INFO.strName, CRightClickMenu.KIND.OTHER_FRIEND_DIFF_SV_CLICK, CRightClickMenu.TYPE.SIMPLE_SECTION_3, false);
            }
            else
            {
                flag = NrTSingleton <CRightClickMenu> .Instance.CreateUI(cOMMUNITY_USER_INFO.i64PersonID, 0, cOMMUNITY_USER_INFO.strName, CRightClickMenu.KIND.OTHER_FRIEND_SAME_SV_CLICK, CRightClickMenu.TYPE.SIMPLE_SECTION_3, false);
            }
        }
        else
        {
            NrTSingleton <CRightClickMenu> .Instance.CloseUI(CRightClickMenu.CLOSEOPTION.CLICK);
        }
        if (flag)
        {
            float x          = this.m_lxList.GetSize().x;
            float height     = 28f;
            float left       = base.GetLocation().x + this.m_lxList.GetLocation().x + this.m_lxList.GetSelectItem().gameObject.transform.localPosition.x;
            float top        = base.GetLocationY() + this.m_lxList.GetLocationY() + -this.m_lxList.GetSelectItem().gameObject.transform.localPosition.y;
            Rect  windowRect = new Rect(left, top, x, height);
            NrTSingleton <CRightClickMenu> .Instance.SetWindowRect(windowRect);
        }
    }
Exemple #5
0
    private NewListItem SetListItem(COMMUNITY_USER_INFO info)
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        NewListItem  newListItem = new NewListItem(this.m_lbCommunityList.ColumnNum, true, string.Empty);
        string       text        = string.Empty;
        string       text2       = string.Empty;

        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1030");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
        {
            text,
            "name",
            info.strName
        });

        newListItem.SetListItemData(0, text2, null, null, null);
        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1031");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
        {
            text,
            "count",
            info.i16Level
        });

        newListItem.SetListItemData(1, text2, null, null, null);
        text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("575");

        newListItem.SetListItemData(2, text2, info, new EZValueChangedDelegate(this.BtnClickWhisper), null);
        text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("542");

        newListItem.SetListItemData(3, text2, info, new EZValueChangedDelegate(this.BtnInvite), null);
        text2 = Client.GetInstance().Get_WorldServerName_InfoFromID(info.i32WorldID_Connect);
        newListItem.SetListItemData(4, text2, null, null, null);
        if (kMyCharInfo.m_kFriendInfo.IsFriend(info.i64PersonID) || NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(info.i64PersonID) != null)
        {
            newListItem.SetListItemData(5, true);
            newListItem.SetListItemData(6, true);
        }
        else
        {
            newListItem.SetListItemData(5, false);
            newListItem.SetListItemData(6, false);
        }
        newListItem.Data = info;
        return(newListItem);
    }
Exemple #6
0
 private int ListBox_Index(long _friend_personid)
 {
     for (int i = 0; i < this.m_lbCommunityList.Count; i++)
     {
         IUIListObject item = this.m_lbCommunityList.GetItem(i);
         if (item != null)
         {
             COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = (COMMUNITY_USER_INFO)item.Data;
             if (cOMMUNITY_USER_INFO != null && cOMMUNITY_USER_INFO.i64PersonID == _friend_personid)
             {
                 return(i);
             }
         }
     }
     return(-1);
 }
Exemple #7
0
    private static int RecentBabelPlayer(COMMUNITY_USER_INFO x, COMMUNITY_USER_INFO y)
    {
        BabelTowerInviteFriendListDlg babelTowerInviteFriendListDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.BABELTOWER_INVITEFRIENDLIST_DLG) as BabelTowerInviteFriendListDlg;

        if (babelTowerInviteFriendListDlg == null)
        {
            return(0);
        }
        for (int i = 0; i < babelTowerInviteFriendListDlg.m_RecentBabelPlayerList.Count; i++)
        {
            if (x.i64PersonID == babelTowerInviteFriendListDlg.m_RecentBabelPlayerList[i])
            {
                return(-1);
            }
        }
        return(1);
    }
Exemple #8
0
 public void ShowList()
 {
     this.SetList();
     this.m_lbCommunityList.Clear();
     for (int i = 0; i < this.m_RecentBabelPlayerList.Count; i++)
     {
         long key = this.m_RecentBabelPlayerList[i];
         if (this.m_dicCommunityList.ContainsKey(key))
         {
             COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = new COMMUNITY_USER_INFO();
             this.m_dicCommunityList.TryGetValue(key, out cOMMUNITY_USER_INFO);
             if (cOMMUNITY_USER_INFO.i32MapUnique > 0)
             {
                 if (SoldierBatch.SOLDIER_BATCH_MODE != eSOLDIER_BATCH_MODE.MODE_MYTHRAID || cOMMUNITY_USER_INFO.i16Level >= 50)
                 {
                     if (cOMMUNITY_USER_INFO.i16BattleMatch < 10000 || cOMMUNITY_USER_INFO.i16BattleMatch > 31000)
                     {
                         NewListItem item = this.SetListItem(cOMMUNITY_USER_INFO);
                         this.m_lbCommunityList.Add(item);
                     }
                 }
             }
         }
     }
     foreach (COMMUNITY_USER_INFO current in this.m_dicCommunityList.Values)
     {
         if (current.i32MapUnique > 0)
         {
             if (SoldierBatch.SOLDIER_BATCH_MODE != eSOLDIER_BATCH_MODE.MODE_MYTHRAID || current.i16Level >= 50)
             {
                 if (current.i16BattleMatch < 10000 || current.i16BattleMatch > 31000)
                 {
                     if (!this.m_RecentBabelPlayerList.Contains(current.i64PersonID))
                     {
                         NewListItem item2 = this.SetListItem(current);
                         this.m_lbCommunityList.Add(item2);
                     }
                 }
             }
         }
     }
     this.m_lbCommunityList.RepositionItems();
 }
 private void OnClickConfirm(IUIObject obj)
 {
     if (this.m_ListBox.SelectedItem != null)
     {
         COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = this.m_ListBox.SelectedItem.Data as COMMUNITY_USER_INFO;
         if (cOMMUNITY_USER_INFO != null)
         {
             GS_WHISPER_INVITE_REQ gS_WHISPER_INVITE_REQ = new GS_WHISPER_INVITE_REQ();
             gS_WHISPER_INVITE_REQ.RoomUnique = this.m_RoomUnique;
             TKString.StringChar(cOMMUNITY_USER_INFO.strName, ref gS_WHISPER_INVITE_REQ.Name);
             SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_WHISPER_INVITE_REQ, gS_WHISPER_INVITE_REQ);
             TsLog.LogWarning("GS_WHISPER_INVITE_REQ Room:{0} Name:{1}", new object[]
             {
                 this.m_RoomUnique,
                 cOMMUNITY_USER_INFO.strName
             });
         }
     }
     this.Close();
 }
    public void UpdateList()
    {
        this.m_lxList.Clear();
        string empty  = string.Empty;
        string empty2 = string.Empty;
        int    num    = (this.m_Page.CURRENT_PAGE - 1) * 14;
        int    num2   = Mathf.Min(num + 14, this.m_CommunityUserList.Count);

        for (int i = num; i < num2; i++)
        {
            COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = this.m_CommunityUserList[i];
            NewListItem         newListItem         = new NewListItem(this.m_lxList.ColumnNum, true, string.Empty);
            CommunityUI_DLG.CurrentLocationName(cOMMUNITY_USER_INFO, ref empty, ref empty2);
            newListItem.SetListItemData(0, this.GetLoaderImg(CommunityUI_DLG.CommunityIcon(cOMMUNITY_USER_INFO)), null, null, null);
            newListItem.SetListItemData(1, cOMMUNITY_USER_INFO.strName, null, null, null);
            newListItem.SetListItemData(2, cOMMUNITY_USER_INFO.i16Level.ToString(), null, null, null);
            newListItem.SetListItemData(3, NrTSingleton <CTextParser> .Instance.GetTextColor(empty2) + empty, null, null, null);
            newListItem.Data = cOMMUNITY_USER_INFO;
            this.m_lxList.Add(newListItem);
        }
        this.m_lxList.RepositionItems();
        this.m_bxCurrentPage.Text = string.Format("{0}/{1}", this.m_Page.CURRENT_PAGE, this.m_Page.MAX_PAGE);
    }
    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);
    }
Exemple #12
0
    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);
                }
            }
        }
    }
Exemple #13
0
    public void BtnInvite(IUIObject obj)
    {
        NrMyCharInfo        kMyCharInfo         = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
        COMMUNITY_USER_INFO cOMMUNITY_USER_INFO = obj.Data as COMMUNITY_USER_INFO;

        if (cOMMUNITY_USER_INFO != null && SoldierBatch.SOLDIER_BATCH_MODE == eSOLDIER_BATCH_MODE.MODE_MYTHRAID)
        {
            int         index       = this.ListBox_Index(cOMMUNITY_USER_INFO.i64PersonID);
            NewListItem newListItem = new NewListItem(this.m_lbCommunityList.ColumnNum, true, string.Empty);
            string      text        = string.Empty;
            string      text2       = string.Empty;
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1030");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
            {
                text,
                "name",
                cOMMUNITY_USER_INFO.strName
            });

            newListItem.SetListItemData(0, text2, null, null, null);
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1031");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
            {
                text,
                "count",
                cOMMUNITY_USER_INFO.i16Level
            });

            newListItem.SetListItemData(1, text2, null, null, null);
            text2 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("575");

            newListItem.SetListItemData(2, text2, cOMMUNITY_USER_INFO, new EZValueChangedDelegate(this.BtnClickWhisper), null);
            newListItem.SetListItemEnable(3, false);
            text2 = Client.GetInstance().Get_WorldServerName_InfoFromID(cOMMUNITY_USER_INFO.i32WorldID_Connect);
            newListItem.SetListItemData(4, text2, null, null, null);
            if (kMyCharInfo.m_kFriendInfo.IsFriend(cOMMUNITY_USER_INFO.i64PersonID))
            {
                newListItem.SetListItemData(5, true);
                newListItem.SetListItemData(6, true);
            }
            else
            {
                newListItem.SetListItemData(5, false);
                newListItem.SetListItemData(6, false);
            }
            this.m_lbCommunityList.RemoveAdd(index, newListItem);
            this.m_lbCommunityList.RepositionItems();
            GS_MYTHRAID_INVITE_FRIEND_REQ gS_MYTHRAID_INVITE_FRIEND_REQ = new GS_MYTHRAID_INVITE_FRIEND_REQ();
            gS_MYTHRAID_INVITE_FRIEND_REQ.InvitePersonID = cOMMUNITY_USER_INFO.i64PersonID;
            gS_MYTHRAID_INVITE_FRIEND_REQ.raidType       = (byte)NrTSingleton <MythRaidManager> .Instance.GetRaidType();

            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_MYTHRAID_INVITE_FRIEND_REQ, gS_MYTHRAID_INVITE_FRIEND_REQ);
        }
        else if (cOMMUNITY_USER_INFO != null && SoldierBatch.BABELTOWER_INFO != null)
        {
            int         index2       = this.ListBox_Index(cOMMUNITY_USER_INFO.i64PersonID);
            NewListItem newListItem2 = new NewListItem(this.m_lbCommunityList.ColumnNum, true, string.Empty);
            string      text3        = string.Empty;
            string      text4        = string.Empty;
            text3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1030");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text4, new object[]
            {
                text3,
                "name",
                cOMMUNITY_USER_INFO.strName
            });

            newListItem2.SetListItemData(0, text4, null, null, null);
            text3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1031");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text4, new object[]
            {
                text3,
                "count",
                cOMMUNITY_USER_INFO.i16Level
            });

            newListItem2.SetListItemData(1, text4, null, null, null);
            text4 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("575");

            newListItem2.SetListItemData(2, text4, cOMMUNITY_USER_INFO, new EZValueChangedDelegate(this.BtnClickWhisper), null);
            newListItem2.SetListItemEnable(3, false);
            text4 = Client.GetInstance().Get_WorldServerName_InfoFromID(cOMMUNITY_USER_INFO.i32WorldID_Connect);
            newListItem2.SetListItemData(4, text4, null, null, null);
            if (kMyCharInfo.m_kFriendInfo.IsFriend(cOMMUNITY_USER_INFO.i64PersonID))
            {
                newListItem2.SetListItemData(5, true);
                newListItem2.SetListItemData(6, true);
            }
            else
            {
                newListItem2.SetListItemData(5, false);
                newListItem2.SetListItemData(6, false);
            }
            this.m_lbCommunityList.RemoveAdd(index2, newListItem2);
            this.m_lbCommunityList.RepositionItems();
            GS_BABELTOWER_INVITE_FRIEND_REQ gS_BABELTOWER_INVITE_FRIEND_REQ = new GS_BABELTOWER_INVITE_FRIEND_REQ();
            gS_BABELTOWER_INVITE_FRIEND_REQ.InvitePersonID      = cOMMUNITY_USER_INFO.i64PersonID;
            gS_BABELTOWER_INVITE_FRIEND_REQ.floor               = SoldierBatch.BABELTOWER_INFO.m_nBabelFloor;
            gS_BABELTOWER_INVITE_FRIEND_REQ.sub_floor           = SoldierBatch.BABELTOWER_INFO.m_nBabelSubFloor;
            gS_BABELTOWER_INVITE_FRIEND_REQ.floortype           = SoldierBatch.BABELTOWER_INFO.m_nBabelFloorType;
            gS_BABELTOWER_INVITE_FRIEND_REQ.i16BountyHuntUnique = SoldierBatch.BABELTOWER_INFO.BountHuntUnique;
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_BABELTOWER_INVITE_FRIEND_REQ, gS_BABELTOWER_INVITE_FRIEND_REQ);
        }
    }
    public void UpsateSoldierList()
    {
        if (this.m_SolList != null)
        {
            for (int i = 0; i < 6; i++)
            {
                NkSoldierInfo soldierInfo = this.m_SolList.GetSoldierInfo(i);
                if (soldierInfo != null && soldierInfo.IsValid())
                {
                    EVENT_HERODATA eventHeroCharCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharCode(soldierInfo.GetCharKind(), soldierInfo.GetGrade());

                    if (i == 0)
                    {
                        CommunityUI_DLG communityUI_DLG = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.COMMUNITY_DLG) as CommunityUI_DLG;

                        if (communityUI_DLG != null)
                        {
                            COMMUNITY_USER_INFO community_User = communityUI_DLG.GetCommunity_User(this.m_PersonID);
                            if (community_User != null && community_User.UserPortrait != null)
                            {
                                this.m_dtSlot[this.Info_mode][i].SetTexture(community_User.UserPortrait);
                            }
                            else
                            {
                                this.SetSolierTexutre(eventHeroCharCode, i, soldierInfo);
                            }
                        }
                        else
                        {
                            this.SetSolierTexutre(eventHeroCharCode, i, soldierInfo);
                        }
                    }
                    else
                    {
                        this.SetSolierTexutre(eventHeroCharCode, i, soldierInfo);
                    }
                    string empty = string.Empty;
                    string charNameBySoldierInfo = this.GetCharNameBySoldierInfo(soldierInfo);
                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                    {
                        NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1639"),
                        "count",
                        soldierInfo.GetLevel(),
                        "targetname",
                        charNameBySoldierInfo
                    });

                    this.m_btSlot[this.Info_mode][i].ToolTip = empty;
                    Button expr_153 = this.m_btSlot[this.Info_mode][i];
                    expr_153.Click = (EZValueChangedDelegate)Delegate.Combine(expr_153.Click, new EZValueChangedDelegate(this.OnClickSol));
                    this.SOLDIER_EQUIPINFO_REQ(this.m_PersonID, soldierInfo.GetSolID());
                }
                else
                {
                    this.m_dtSlot[this.Info_mode][i].SetTexture("NULL");
                    this.m_btSlot[this.Info_mode][i].ShowToolTip = false;
                }
            }
            NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
            if (kMyCharInfo.m_PersonID == this.m_PersonID || kMyCharInfo.m_kFriendInfo.IsFriend(kMyCharInfo.m_PersonID))
            {
                this.m_btAddFriend.Visible = false;
            }
        }
    }