1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 21:00:33 +08:00

Hook up collection filter

This commit is contained in:
smoogipoo 2020-09-02 20:25:36 +09:00
parent bb090a55e0
commit 9dde37fe40
2 changed files with 5 additions and 0 deletions

View File

@ -60,6 +60,9 @@ namespace osu.Game.Screens.Select.Carousel
match &= terms.Any(term => term.IndexOf(criteriaTerm, StringComparison.InvariantCultureIgnoreCase) >= 0);
}
if (match)
match &= criteria.Collection?.ContainsBeatmap(Beatmap) ?? true;
Filtered.Value = !match;
}

View File

@ -51,6 +51,8 @@ namespace osu.Game.Screens.Select
}
}
public FilterControl.CollectionFilter Collection;
public struct OptionalRange<T> : IEquatable<OptionalRange<T>>
where T : struct
{