Example #1
0
 // Token: 0x06000478 RID: 1144 RVA: 0x00012123 File Offset: 0x00010323
 protected string GetSubjectName()
 {
     if (this.subjectAsNetworkUser)
     {
         return(Util.EscapeRichTextForTextMeshPro(this.subjectAsNetworkUser.userName));
     }
     if (this.subjectAsCharacterBody)
     {
         return(this.subjectAsCharacterBody.GetDisplayName());
     }
     return("???");
 }
            // Token: 0x06000A63 RID: 2659 RVA: 0x00033E54 File Offset: 0x00032054
            protected string GetObjectName(GameObject namedObject)
            {
                string result = "???";

                if (namedObject)
                {
                    result = namedObject.name;
                    NetworkUser networkUser = namedObject.GetComponent <NetworkUser>();
                    if (!networkUser)
                    {
                        networkUser = Util.LookUpBodyNetworkUser(namedObject);
                    }
                    if (networkUser)
                    {
                        result = Util.EscapeRichTextForTextMeshPro(networkUser.userName);
                    }
                }
                return(result);
            }
 // Token: 0x06000A69 RID: 2665 RVA: 0x00033F14 File Offset: 0x00032114
 public override string ConstructChatString()
 {
     if (this.sender)
     {
         NetworkUser component = this.sender.GetComponent <NetworkUser>();
         if (component)
         {
             return(string.Format(CultureInfo.InvariantCulture, "<color=#e5eefc>{0}: {1}</color>", Util.EscapeRichTextForTextMeshPro(component.userName), Util.EscapeRichTextForTextMeshPro(this.text)));
         }
     }
     return(null);
 }