mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Move recommender to field construction
This commit is contained in:
parent
cf4e79cf38
commit
000c34dc26
@ -78,7 +78,7 @@ namespace osu.Game.Screens.Select
|
||||
|
||||
protected BeatmapCarousel Carousel { get; private set; }
|
||||
|
||||
private DifficultyRecommender recommender;
|
||||
private readonly DifficultyRecommender recommender = new DifficultyRecommender();
|
||||
|
||||
private BeatmapInfoWedge beatmapInfoWedge;
|
||||
private DialogOverlay dialogOverlay;
|
||||
@ -118,7 +118,7 @@ namespace osu.Game.Screens.Select
|
||||
BleedBottom = Footer.HEIGHT,
|
||||
SelectionChanged = updateSelectedBeatmap,
|
||||
BeatmapSetsChanged = carouselBeatmapsLoaded,
|
||||
GetRecommendedBeatmap = (recommender = new DifficultyRecommender()).GetRecommendedBeatmap,
|
||||
GetRecommendedBeatmap = recommender.GetRecommendedBeatmap,
|
||||
}, c => carouselContainer.Child = c);
|
||||
|
||||
AddRangeInternal(new Drawable[]
|
||||
|
Loading…
Reference in New Issue
Block a user