mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 17:32:54 +08:00
Add IssueList
filtering based on those bindables
This commit is contained in:
parent
2e4399f0c1
commit
1bb7d412da
@ -102,9 +102,22 @@ namespace osu.Game.Screens.Edit.Verify
|
|||||||
if (rulesetVerifier != null)
|
if (rulesetVerifier != null)
|
||||||
issues = issues.Concat(rulesetVerifier.Run(beatmap, workingBeatmap.Value));
|
issues = issues.Concat(rulesetVerifier.Run(beatmap, workingBeatmap.Value));
|
||||||
|
|
||||||
|
issues = filter(issues);
|
||||||
|
|
||||||
table.Issues = issues
|
table.Issues = issues
|
||||||
.OrderBy(issue => issue.Template.Type)
|
.OrderBy(issue => issue.Template.Type)
|
||||||
.ThenBy(issue => issue.Check.Metadata.Category);
|
.ThenBy(issue => issue.Check.Metadata.Category);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private IEnumerable<Issue> filter(IEnumerable<Issue> issues)
|
||||||
|
{
|
||||||
|
foreach (IssueType issueType in ShowType.Keys)
|
||||||
|
{
|
||||||
|
if (!ShowType[issueType].Value)
|
||||||
|
issues = issues.Where(issue => issue.Template.Type != issueType);
|
||||||
|
}
|
||||||
|
|
||||||
|
return issues;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user