public virtual void UpdateRecruit() { if ((base.gameObject != null) && base.gameObject.activeSelf) { this.m_RecruitUI.SetInfo(this.m_recruitInfo); if (this.m_recruitInfo != null) { this.m_PlayerNameText.Text = this.m_recruitInfo.Nickname; switch (this.m_recruitInfo.Status) { case 1: { string requestElapsedTimeString = FriendUtils.GetRequestElapsedTimeString(this.m_recruitInfo.CreationTimeMicrosec); this.m_StatusText.Text = string.Format("Invintation sent {0}", requestElapsedTimeString); break; } case 2: this.m_StatusText.Text = "Account ineligible!"; break; case 3: this.m_StatusText.Text = "Invitation declined!"; break; case 4: this.m_StatusText.Text = "Accepted"; break; } } this.UpdateLayout(); } }
private void UpdateTimeText() { string requestElapsedTimeString = FriendUtils.GetRequestElapsedTimeString(this.m_invite.GetCreationTimeMicrosec()); object[] args = new object[] { requestElapsedTimeString }; this.m_TimeText.Text = GameStrings.Format("GLOBAL_FRIENDLIST_REQUEST_SENT_TIME", args); }