public void AddLine(string text, ChatChannel channel, Color color) { if (!ThreadUtility.IsOnMainThread()) { var formatted = new FormattedMessage(3); formatted.PushColor(color); formatted.AddText(text); formatted.Pop(); _messageQueue.Enqueue(formatted); return; } _flushQueue(); if (!firstLine) { Contents.NewLine(); } else { firstLine = false; } Contents.PushColor(color); Contents.AddText(text); Contents.Pop(); // Pop the color off. }
public void AddLine(string text, ChatChannel channel, Color color) { if (!firstLine) { Contents.NewLine(); } else { firstLine = false; } Contents.PushColor(color); Contents.AddText(text); Contents.Pop(); // Pop the color off. }
public void AddLine(string message, ChatChannel channel, Color color) { if (Disposed) { return; } if (ChannelBlacklist.Contains(channel)) { return; } if (!firstLine) { contents.NewLine(); } else { firstLine = false; } contents.PushColor(color); contents.AddText(message); contents.Pop(); // Pop the color off. }