private void ShowMessage(ActorInstance actor, string text, Color color, string name = "") { if (actor != null) { actor.ChatBubble(text, color); name = name.Length > 0 ? name : actor.Info.Name; } // TODO there's a bug that it sends an error if it's the first message upon login (before opening chat) ChatlogUI.Instance.AddMessage(name, text, color); InGameMainMenuUI.Instance.SetLastChatMessage(name + ": \"" + text + "\"", color); }