mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 13:32:54 +08:00
Fix incorrect ordering and grouping of difficulties at song select
This commit is contained in:
parent
aaefd72c69
commit
6919df18fa
@ -39,6 +39,8 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
|
|
||||||
beatmapSet.Beatmaps
|
beatmapSet.Beatmaps
|
||||||
.Where(b => !b.Hidden)
|
.Where(b => !b.Hidden)
|
||||||
|
.OrderBy(b => b.RulesetID)
|
||||||
|
.ThenBy(b => b.StarRating)
|
||||||
.Select(b => new CarouselBeatmap(b))
|
.Select(b => new CarouselBeatmap(b))
|
||||||
.ForEach(AddChild);
|
.ForEach(AddChild);
|
||||||
}
|
}
|
||||||
|
@ -87,7 +87,8 @@ namespace osu.Game.Screens.Select.Carousel
|
|||||||
var beatmaps = carouselSet.Beatmaps.ToList();
|
var beatmaps = carouselSet.Beatmaps.ToList();
|
||||||
|
|
||||||
return beatmaps.Count > maximum_difficulty_icons
|
return beatmaps.Count > maximum_difficulty_icons
|
||||||
? (IEnumerable<DifficultyIcon>)beatmaps.GroupBy(b => b.BeatmapInfo.Ruleset).Select(group => new FilterableGroupedDifficultyIcon(group.ToList(), group.Key))
|
? (IEnumerable<DifficultyIcon>)beatmaps.GroupBy(b => b.BeatmapInfo.RulesetID)
|
||||||
|
.Select(group => new FilterableGroupedDifficultyIcon(group.ToList(), group.Last().BeatmapInfo.Ruleset))
|
||||||
: beatmaps.Select(b => new FilterableDifficultyIcon(b));
|
: beatmaps.Select(b => new FilterableDifficultyIcon(b));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user