Beispiel #1
0
        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;
        }
Beispiel #2
0
        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)));
        }
Beispiel #3
0
 public DrawableCarouselBeatmapSet(CarouselBeatmapSet set)
     : base(set)
 {
     beatmapSet = set.BeatmapSet;
 }