MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / SetMessagePattern

Method SetMessagePattern

plugins/twitch/chat-message-pattern.cpp:208–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void ChatMessageEdit::SetMessagePattern(const ChatMessagePattern &pattern)
209{
210 _currentSelection = pattern;
211 _message->setPlainText(pattern._message);
212 _regex->SetRegexConfig(pattern._regex);
213
214 _list->clear();
215 _currentSelection._properties.clear();
216 for (const auto &property : pattern._properties) {
217 InsertElement(property);
218 }
219}
220
221void ChatMessageEdit::Remove()
222{

Callers 1

UpdateEntryDataMethod · 0.80

Calls 2

setPlainTextMethod · 0.80
SetRegexConfigMethod · 0.80

Tested by

no test coverage detected