コード例 #1
0
 public void SetContextByMessage(CommunityChatMessage message)
 {
     this.m_message = message;
     this.m_destroyButton.SetActive(this.m_message.CanBeDestroyed());
     this.m_reportButton.SetActive(!this.m_message.CreatedBySelf() && ReportSystem.CanReportPlayer(this.m_message.GetAsPlayerLocation()));
     this.m_divider.SetActive(this.m_destroyButton.activeSelf && this.m_reportButton.activeSelf);
 }
コード例 #2
0
 private bool CanOpenContextMenu()
 {
     return(!this.m_message.Destroyed && (this.m_message.CanBeDestroyed() || ReportSystem.CanReportPlayer(this.m_message.GetAsPlayerLocation())));
 }