mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 07:32:55 +08:00
Use ruleset criteria in parsing and filtering
This commit is contained in:
parent
c375be6b07
commit
42c3309d49
@ -73,6 +73,9 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
if (match)
|
||||
match &= criteria.Collection?.Beatmaps.Contains(Beatmap) ?? true;
|
||||
|
||||
if (match && criteria.RulesetCriteria != null)
|
||||
match &= criteria.RulesetCriteria.Matches(Beatmap);
|
||||
|
||||
Filtered.Value = !match;
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ namespace osu.Game.Screens.Select
|
||||
return updateCriteriaText(ref criteria.Artist, op, value);
|
||||
|
||||
default:
|
||||
return false;
|
||||
return criteria.RulesetCriteria?.TryParseCustomKeywordCriteria(key, op, value) ?? false;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user