mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 05:27:17 +09:00
Hook up collection filter
This commit is contained in:
parent
bb090a55e0
commit
9dde37fe40
@ -60,6 +60,9 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
match &= terms.Any(term => term.IndexOf(criteriaTerm, StringComparison.InvariantCultureIgnoreCase) >= 0);
|
match &= terms.Any(term => term.IndexOf(criteriaTerm, StringComparison.InvariantCultureIgnoreCase) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (match)
|
||||||
|
match &= criteria.Collection?.ContainsBeatmap(Beatmap) ?? true;
|
||||||
|
|
||||||
Filtered.Value = !match;
|
Filtered.Value = !match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,6 +51,8 @@ namespace osu.Game.Screens.Select
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public FilterControl.CollectionFilter Collection;
|
||||||
|
|
||||||
public struct OptionalRange<T> : IEquatable<OptionalRange<T>>
|
public struct OptionalRange<T> : IEquatable<OptionalRange<T>>
|
||||||
where T : struct
|
where T : struct
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user