mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Fix filtered grouped difficulty items in DrawableCarouselBeatmapSet aren't hidden on first load
This commit is contained in:
@ -222,12 +222,10 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
{
|
||||
public FilterableGroupedDifficultyIcon(List<CarouselBeatmap> items, RulesetInfo ruleset)
|
||||
: base(items.Select(i => i.Beatmap).ToList(), ruleset, Color4.White)
|
||||
{
|
||||
items.ForEach(item => item.Filtered.ValueChanged += _ =>
|
||||
{
|
||||
// for now, fade the whole group based on the ratio of hidden items.
|
||||
this.FadeTo(1 - 0.9f * ((float)items.Count(i => i.Filtered.Value) / items.Count), 100);
|
||||
});
|
||||
items.ForEach(item => item.Filtered.BindValueChanged(_
|
||||
=> this.FadeTo(1 - 0.9f * ((float)items.Count(i => i.Filtered.Value) / items.Count), 100), true));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user