mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 21:06:59 -04:00
Added filter box for keywords
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1615 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -80,6 +80,14 @@ void read_compat(Reader& tag, Keyword* k) {
|
||||
}
|
||||
}
|
||||
|
||||
bool Keyword::contains(String const& query) const {
|
||||
if (find_i(keyword,query) != String::npos) return true;
|
||||
if (find_i(rules,query) != String::npos) return true;
|
||||
if (find_i(match,query) != String::npos) return true;
|
||||
if (find_i(reminder.get(),query) != String::npos) return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION(Keyword) {
|
||||
REFLECT(keyword);
|
||||
read_compat(tag, this);
|
||||
|
||||
Reference in New Issue
Block a user