mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:23:22 +08:00
add od filter in search filter
This commit is contained in:
parent
4df4afe533
commit
2b1d3c8e9c
@ -42,6 +42,7 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
match &= !criteria.ApproachRate.HasFilter || criteria.ApproachRate.IsInRange(Beatmap.BaseDifficulty.ApproachRate);
|
match &= !criteria.ApproachRate.HasFilter || criteria.ApproachRate.IsInRange(Beatmap.BaseDifficulty.ApproachRate);
|
||||||
match &= !criteria.DrainRate.HasFilter || criteria.DrainRate.IsInRange(Beatmap.BaseDifficulty.DrainRate);
|
match &= !criteria.DrainRate.HasFilter || criteria.DrainRate.IsInRange(Beatmap.BaseDifficulty.DrainRate);
|
||||||
match &= !criteria.CircleSize.HasFilter || criteria.CircleSize.IsInRange(Beatmap.BaseDifficulty.CircleSize);
|
match &= !criteria.CircleSize.HasFilter || criteria.CircleSize.IsInRange(Beatmap.BaseDifficulty.CircleSize);
|
||||||
|
match &= !criteria.OverallDifficulty.HasFilter || criteria.OverallDifficulty.IsInRange(Beatmap.BaseDifficulty.OverallDifficulty);
|
||||||
match &= !criteria.Length.HasFilter || criteria.Length.IsInRange(Beatmap.Length);
|
match &= !criteria.Length.HasFilter || criteria.Length.IsInRange(Beatmap.Length);
|
||||||
match &= !criteria.BPM.HasFilter || criteria.BPM.IsInRange(Beatmap.BPM);
|
match &= !criteria.BPM.HasFilter || criteria.BPM.IsInRange(Beatmap.BPM);
|
||||||
|
|
||||||
|
@ -51,6 +51,9 @@ namespace osu.Game.Screens.Select
|
|||||||
case "cs":
|
case "cs":
|
||||||
return TryUpdateCriteriaRange(ref criteria.CircleSize, op, value);
|
return TryUpdateCriteriaRange(ref criteria.CircleSize, op, value);
|
||||||
|
|
||||||
|
case "od":
|
||||||
|
return TryUpdateCriteriaRange(ref criteria.OverallDifficulty, op, value);
|
||||||
|
|
||||||
case "bpm":
|
case "bpm":
|
||||||
return TryUpdateCriteriaRange(ref criteria.BPM, op, value, 0.01d / 2);
|
return TryUpdateCriteriaRange(ref criteria.BPM, op, value, 0.01d / 2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user