public SetPanelContent(CarouselBeatmapSet carouselSet) { this.carouselSet = carouselSet; // required to ensure we load as soon as any part of the panel comes on screen RelativeSizeAxes = Axes.Both; }
private int compareUsingAggregateMax(CarouselBeatmapSet other, Func <BeatmapInfo, double> func) { bool ourBeatmaps = ValidBeatmaps.Any(); bool otherBeatmaps = other.ValidBeatmaps.Any(); if (!ourBeatmaps && !otherBeatmaps) { return(0); } if (!ourBeatmaps) { return(-1); } if (!otherBeatmaps) { return(1); } return(ValidBeatmaps.Max(func).CompareTo(other.ValidBeatmaps.Max(func))); }
public DrawableCarouselBeatmapSet(CarouselBeatmapSet set) : base(set) { beatmapSet = set.BeatmapSet; }