mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-27 00:54:07 -05:00
Enable batch filters for encounter database
This commit is contained in:
@@ -213,6 +213,13 @@ private IEnumerable<IEncounterInfo> SearchDatabase()
|
||||
: results.Where(z => z.Generation <= 7);
|
||||
}
|
||||
|
||||
if (RTB_Instructions.Lines.Any(line => line.Length > 0))
|
||||
{
|
||||
var filters = StringInstruction.GetFilters(RTB_Instructions.Lines).ToArray();
|
||||
BatchEditing.ScreenStrings(filters);
|
||||
results = results.Where(enc => BatchEditing.IsFilterMatch(filters, enc)); // Compare across all filters
|
||||
}
|
||||
|
||||
return results;
|
||||
}
|
||||
|
||||
@@ -357,11 +364,6 @@ private static Image GetImage(IEncounterTemplate enc)
|
||||
_ => 0,
|
||||
};
|
||||
|
||||
private void Menu_SearchAdvanced_Click(object sender, EventArgs e)
|
||||
{
|
||||
// todo
|
||||
}
|
||||
|
||||
private void Menu_Exit_Click(object sender, EventArgs e) => Close();
|
||||
|
||||
protected override void OnMouseWheel(MouseEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user