void MainChatManger_ChatLineAdded(object sender, ChatLineAddedArgs e) { lock (chatLines) { chatLines.Enqueue(new ChatLine(e.Item, runningTime)); } }
void MainChatManger_ChatLineAdded(object sender, ChatLineAddedArgs e) { if (parser.IsMatch(e.Item.Text)) { e.Item.Text = parser.ParseInput(e.Item.Text); // instance.TabConsole.DisplayNotificationInChat(parser.ParseInput(e.Item.Text), ChatBufferTextStyle.StatusBlue); } }
void MainChatManger_ChatLineAdded(object sender, ChatLineAddedArgs e) { if (e.Item.RawMessage.SourceID == new UUID("03b304ce-b108-4804-6659-7809b81f68d0")) { if (e.Item.RawMessage.Message == "Touched.") { instance.TabConsole.DisplayNotificationInChat("Target message found!", ChatBufferTextStyle.StatusBlue); } } }
void MainChatManger_ChatLineAdded(object sender, ChatLineAddedArgs e) { string rawMessage = e.Item.RawMessage.Message.ToLower(); bool isPlayingAlert = triggers.Any(rawMessage.Contains); if (isPlayingAlert) { e.Item.Style = ChatBufferTextStyle.StartupTitle; if (soundPlayer != null) { soundPlayer.Play(); } } }