protected virtual void OnChatSent(ChatSentEventArgs e) { if (ChatSent != null) { ChatSent(this, e); } }
private void netcom_ChatSent(object sender, ChatSentEventArgs e) { tabs["chat"].Highlight(); }
//Used only for non-public chat private void ProcessOutgoingChat(ChatSentEventArgs e) { StringBuilder sb = new StringBuilder(); sb.Append("(channel "); sb.Append(e.Channel); sb.Append(") You"); switch (e.Type) { case ChatType.Normal: sb.Append(": "); break; case ChatType.Whisper: sb.Append(" whisper: "); break; case ChatType.Shout: sb.Append(" shout: "); break; } sb.Append(e.Message); ChatBufferItem item = new ChatBufferItem( DateTime.Now, sb.ToString(), ChatBufferTextStyle.StatusDarkBlue); ProcessBufferItem(item, true); sb = null; }
private void netcom_ChatSent(object sender, ChatSentEventArgs e) { if (e.Channel == 0) return; ProcessOutgoingChat(e); }
protected virtual void OnChatSent(ChatSentEventArgs e) { if (ChatSent != null) ChatSent(this, e); }
//Used only for non-public chat private void ProcessOutgoingChat(ChatSentEventArgs e) { StringBuilder sb = new StringBuilder(); sb.Append("(channel "); sb.Append(e.Channel); if (classiclayout) { sb.Append(") You: "); } else { sb.Append(") "); } switch (e.Type) { case ChatType.Normal: if (classiclayout) { sb.Append(": "); } break; case ChatType.Whisper: sb.Append(" [whispers] "); break; case ChatType.Shout: sb.Append(" [shouts] "); break; } sb.Append(e.Message); ChatBufferItem item = new ChatBufferItem( DateTime.Now, sb.ToString(), ChatBufferTextStyle.StatusDarkBlue, client.Self.Name); ProcessBufferItem(item, true); sb = null; }