public void SetChatInfo(CommunityChatMessage message) { this.m_message = message; this.m_characterName.text = message.Author; this.m_bodyText.text = message.Message; this.m_bodyText.fontStyle = ((!message.Destroyed) ? 0 : 2); this.m_postTime.text = message.TimeStamp.ToShortTimeString(); this.m_classIcon.sprite = GeneralHelpers.LoadClassIcon(this.m_message.ClassID); this.m_moderatorImage.SetActive(message.PostedByModerator() || message.PostedByLeaderOrOwner()); this.m_moderatorImage.GetComponent <Image>().sprite = ((!message.PostedByModerator()) ? this.m_leaderOwnerSprite : this.m_moderatorSprite); }
public void SetChatInfo(CommunityChatMessage message) { this.m_characterName.text = message.Author; this.m_bodyText.text = message.Message; this.m_timeStamp = message.TimeStamp; this.m_postTime.text = this.m_timeStamp.ToShortTimeString(); this.m_moderatorImage.SetActive(message.PostedByModerator()); }
public void SetChatInfo(CommunityChatMessage message) { this.m_message = message; this.m_characterName.text = message.Author; this.m_bodyText.text = message.Message; this.m_timeStamp = message.TimeStamp; this.m_postTime.text = this.m_timeStamp.ToShortTimeString(); this.m_classIcon.sprite = GeneralHelpers.LoadClassIcon((int)this.m_message.ClassID); this.m_moderatorImage.SetActive(message.PostedByModerator()); }