public override void UpdateFriend()
 {
     if (base.gameObject.activeSelf && (base.m_player != null))
     {
         base.UpdateFriend();
         base.m_PlayerIcon.UpdateIcon();
         if (base.m_player.IsOnline())
         {
             base.m_PlayerNameText.Text = FriendUtils.GetFriendListName(base.m_player, true);
             base.UpdateOnlineStatus();
         }
         else
         {
             base.m_PlayerNameText.Text = FriendUtils.GetFriendListName(base.m_player, true);
             base.UpdateOfflineStatus();
         }
         base.m_recruitInfo = RecruitListMgr.Get().GetRecruitInfoFromAccountId(base.m_player.GetAccountId());
         base.m_RecruitUI.SetInfo(base.m_recruitInfo);
         if (base.m_recruitInfo != null)
         {
             base.m_RecruitUI.m_recruitText.TextColor = base.m_PlayerNameText.TextColor;
         }
         this.m_ChallengeButton.UpdateButton();
         this.UpdateLayout();
     }
 }
 public override void UpdateFriend()
 {
     if (base.gameObject.activeSelf && (base.m_player != null))
     {
         base.UpdateFriend();
         base.m_PlayerIcon.m_OnlinePortrait.SetProgramId(BnetProgramId.HEARTHSTONE);
         base.m_PlayerNameText.Text = FriendUtils.GetFriendListName(base.m_player, true);
         base.UpdateOnlineStatus();
     }
 }
 public virtual void UpdateNearbyPlayer()
 {
     if (base.gameObject.activeSelf)
     {
         if (this.m_player == null)
         {
             this.m_PlayerNameText.Text = string.Empty;
         }
         else
         {
             BnetPlayer friend = BnetFriendMgr.Get().FindFriend(this.m_player.GetAccountId());
             if (friend != null)
             {
                 this.m_PlayerNameText.Text = FriendUtils.GetFriendListName(friend, true);
             }
             else
             {
                 this.m_PlayerNameText.Text = FriendUtils.GetFriendListName(this.m_player, true);
             }
         }
         this.m_ChallengeButton.UpdateButton();
         this.UpdateLayout();
     }
 }