Example #1
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int circles  = HitObjects.Count(c => c is HitCircle);
            int sliders  = HitObjects.Count(s => s is Slider);
            int spinners = HitObjects.Count(s => s is Spinner);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = BeatmapsetsStrings.ShowStatsCountCircles,
                    Content = circles.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles),
                },
                new BeatmapStatistic
                {
                    Name = BeatmapsetsStrings.ShowStatsCountSliders,
                    Content = sliders.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders),
                },
                new BeatmapStatistic
                {
                    Name = @"Spinner Count",
                    Content = spinners.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Spinners),
                }
            });
        }
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int hits      = HitObjects.Count(s => s is Hit);
            int drumrolls = HitObjects.Count(s => s is DrumRoll);
            int swells    = HitObjects.Count(s => s is Swell);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Hit Count",
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles),
                    Content = hits.ToString(),
                },
                new BeatmapStatistic
                {
                    Name = @"Drumroll Count",
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders),
                    Content = drumrolls.ToString(),
                },
                new BeatmapStatistic
                {
                    Name = @"Swell Count",
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Spinners),
                    Content = swells.ToString(),
                }
            });
        }
Example #3
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int circles  = HitObjects.Count(c => c is HitCircle);
            int sliders  = HitObjects.Count(s => s is Slider);
            int spinners = HitObjects.Count(s => s is Spinner);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Circle Count",
                    Content = circles.ToString(),
                    Icon = FontAwesome.fa_circle_o
                },
                new BeatmapStatistic
                {
                    Name = @"Slider Count",
                    Content = sliders.ToString(),
                    Icon = FontAwesome.fa_circle
                },
                new BeatmapStatistic
                {
                    Name = @"Spinner Count",
                    Content = spinners.ToString(),
                    Icon = FontAwesome.fa_circle
                }
            });
        }
Example #4
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int beats     = HitObjects.Count(b => b is Beat);
            int hardbeats = HitObjects.Count(b => b is HardBeat);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = "Beat count",
                    Content = beats.ToString(),
                    CreateIcon = () => new SpriteIcon
                    {
                        Icon = FontAwesome.Solid.Square,
                        Scale = new Vector2(.7f)
                    },
                },
                new BeatmapStatistic
                {
                    Name = "HardBeat count",
                    Content = hardbeats.ToString(),
                    CreateIcon = () => new SpriteIcon
                    {
                        Icon = FontAwesome.Regular.Circle,
                        Scale = new Vector2(.7f)
                    },
                }
            });
        }
Example #5
0
        public override IEnumerable<BeatmapStatistic> GetStatistics()
        {
            int fruits = HitObjects.Count(s => s is Fruit);
            int juiceStreams = HitObjects.Count(s => s is JuiceStream);
            int bananaShowers = HitObjects.Count(s => s is BananaShower);

            return new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Fruit Count",
                    Content = fruits.ToString(),
                    Icon = FontAwesome.fa_circle_o
                },
                new BeatmapStatistic
                {
                    Name = @"Juice Stream Count",
                    Content = juiceStreams.ToString(),
                    Icon = FontAwesome.fa_circle
                },
                new BeatmapStatistic
                {
                    Name = @"Banana Shower Count",
                    Content = bananaShowers.ToString(),
                    Icon = FontAwesome.fa_circle
                }
            };
        }
Example #6
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int singers = Singers.Length;
            int lyrics  = HitObjects.Count(s => s is Lyric);

            var defaultStatistic = new List <BeatmapStatistic>
            {
                new BeatmapStatistic
                {
                    Name       = @"Singer",
                    Content    = singers.ToString(),
                    CreateIcon = () => new SpriteIcon {
                        Icon = FontAwesome.Solid.User
                    }
                },
                new BeatmapStatistic
                {
                    Name       = @"Lyric",
                    Content    = lyrics.ToString(),
                    CreateIcon = () => new SpriteIcon {
                        Icon = FontAwesome.Solid.AlignLeft
                    }
                },
            };

            var scorable = this.IsScorable();

            if (scorable)
            {
                int notes = HitObjects.Count(s => s is Note {
                    Display: true
                });
Example #7
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int hits      = HitObjects.Count(s => s is Hit);
            int drumrolls = HitObjects.Count(s => s is DrumRoll);
            int swells    = HitObjects.Count(s => s is Swell);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Hit Count",
                    Content = hits.ToString(),
                    Icon = FontAwesome.fa_circle_o
                },
                new BeatmapStatistic
                {
                    Name = @"Drumroll Count",
                    Content = drumrolls.ToString(),
                    Icon = FontAwesome.fa_circle
                },
                new BeatmapStatistic
                {
                    Name = @"Swell Count",
                    Content = swells.ToString(),
                    Icon = FontAwesome.fa_circle
                }
            });
        }
Example #8
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int fruits        = HitObjects.Count(s => s is Fruit);
            int juiceStreams  = HitObjects.Count(s => s is JuiceStream);
            int bananaShowers = HitObjects.Count(s => s is BananaShower);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"圆圈数",
                    Content = fruits.ToString(),
                    Icon = FontAwesome.Regular.Circle
                },
                new BeatmapStatistic
                {
                    Name = @"滑条数",
                    Content = juiceStreams.ToString(),
                    Icon = FontAwesome.Regular.Circle
                },
                new BeatmapStatistic
                {
                    Name = @"转盘数",
                    Content = bananaShowers.ToString(),
                    Icon = FontAwesome.Regular.Circle
                }
            });
        }
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int fruits        = HitObjects.Count(s => s is Fruit);
            int juiceStreams  = HitObjects.Count(s => s is JuiceStream);
            int bananaShowers = HitObjects.Count(s => s is BananaShower);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Fruit Count",
                    Content = fruits.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles),
                },
                new BeatmapStatistic
                {
                    Name = @"Juice Stream Count",
                    Content = juiceStreams.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders),
                },
                new BeatmapStatistic
                {
                    Name = @"Banana Shower Count",
                    Content = bananaShowers.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Spinners),
                }
            });
        }
Example #10
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int singers = Singers.Length;
            int lyrics  = HitObjects.Count(s => s is Lyric);

            var defaultStatistic = new List <BeatmapStatistic>
            {
                new BeatmapStatistic
                {
                    Name       = @"Singer",
                    Content    = singers.ToString(),
                    CreateIcon = () => new SpriteIcon {
                        Icon = FontAwesome.Solid.User
                    }
                },
                new BeatmapStatistic
                {
                    Name       = @"Lyric",
                    Content    = lyrics.ToString(),
                    CreateIcon = () => new SpriteIcon {
                        Icon = FontAwesome.Solid.AlignLeft
                    }
                },
            };

            var scorable = this.IsScorable();

            if (scorable)
            {
                int notes = HitObjects.Count(s => s is Note note && note.Display);
                defaultStatistic.Add(new BeatmapStatistic
                {
                    Name       = @"Note",
                    Content    = notes.ToString(),
                    CreateIcon = () => new SpriteIcon {
                        Icon = FontAwesome.Solid.Music
                    }
                });
            }
            else
            {
                defaultStatistic.Add(new BeatmapStatistic
                {
                    Name       = @"This beatmap is not scorable.",
                    Content    = @"This beatmap is not scorable.",
                    CreateIcon = () => new SpriteIcon {
                        Icon = FontAwesome.Solid.Times
                    }
                });
            }

            return(defaultStatistic.ToArray());
        }
Example #11
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int taps       = HitObjects.Count(b => b is Tap);
            int holds      = HitObjects.Count(h => h is Hold);
            int touchHolds = HitObjects.Count(h => h is TouchHold);
            int touchs     = HitObjects.Count(h => h is Touch);
            int slides     = HitObjects.Count(h => h is Slide);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = "Tap Count",
                    Content = taps.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles),
                },
                new BeatmapStatistic
                {
                    Name = "Hold Count",
                    Content = holds.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders),
                },
                new BeatmapStatistic
                {
                    Name = "TouchHold Count",
                    Content = touchHolds.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Spinners),
                },
                new BeatmapStatistic
                {
                    Name = "Touch Count",
                    Content = touchs.ToString(),
                    CreateIcon = () => new SpriteIcon
                    {
                        Icon = FontAwesome.Regular.HandPointRight,
                        Scale = new Vector2(.7f)
                    },
                },
                new BeatmapStatistic
                {
                    Name = "Slide Count",
                    Content = slides.ToString(),
                    CreateIcon = () => new SpriteIcon
                    {
                        Icon = FontAwesome.Regular.Star,
                        Scale = new Vector2(.7f)
                    },
                },
            });
        }
Example #12
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int lyrics = HitObjects.Count(s => s is LyricLine);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Lyric",
                    Content = lyrics.ToString(),
                    Icon = FontAwesome.Regular.Circle
                },
            });
        }
Example #13
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            var totalCount = HitObjects.Count();

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Cherry Count",
                    Content = totalCount.ToString(),
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles)
                }
            });
        }
Example #14
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int minions    = HitObjects.Count(s => s is Minion);
            int starsheets = HitObjects.Count(s => s is StarSheet);
            int sawblades  = HitObjects.Count(s => s is Sawblade);
            int dualhits   = HitObjects.Count(s => s is DualHit);
            int minibosses = HitObjects.Count(s => s is MiniBoss);
            int hearts     = HitObjects.Count(s => s is Heart);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Minion Count",
                    Content = minions.ToString(),
                    CreateIcon = () => createIcon(FontAwesome.Regular.Angry),
                },
                new BeatmapStatistic
                {
                    Name = @"Star Sheet Count",
                    Content = starsheets.ToString(),
                    CreateIcon = () => createIcon(FontAwesome.Regular.Star),
                },
                new BeatmapStatistic
                {
                    Name = @"Dual Hit Count",
                    Content = dualhits.ToString(),
                    CreateIcon = () => createIcon(FontAwesome.Solid.Cog),
                },
                new BeatmapStatistic
                {
                    Name = @"Sawblade Count",
                    Content = sawblades.ToString(),
                    CreateIcon = () => createIcon(FontAwesome.Solid.Sun),
                },
                new BeatmapStatistic
                {
                    Name = @"Miniboss Count",
                    Content = minibosses.ToString(),
                    CreateIcon = () => createIcon(FontAwesome.Solid.Mitten),
                },
                new BeatmapStatistic
                {
                    Name = @"Heart Count",
                    Content = hearts.ToString(),
                    CreateIcon = () => createIcon(FontAwesome.Solid.Heart),
                }
            });
        }
Example #15
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int minions    = HitObjects.Count(s => s is Minion);
            int notesheets = HitObjects.Count(s => s is NoteSheet);
            int sawblades  = HitObjects.Count(s => s is Sawblade);
            int dualhits   = HitObjects.Count(s => s is DualHit);
            int minibosses = HitObjects.Count(s => s is MiniBoss);
            int hearts     = HitObjects.Count(s => s is Heart);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Minion Count",
                    Content = minions.ToString(),
                    Icon = FontAwesome.Regular.Angry
                },
                new BeatmapStatistic
                {
                    Name = @"Notesheet Count",
                    Content = notesheets.ToString(),
                    Icon = FontAwesome.Regular.Star
                },
                new BeatmapStatistic
                {
                    Name = @"Dual Hit Count",
                    Content = dualhits.ToString(),
                    Icon = FontAwesome.Solid.Cog
                },
                new BeatmapStatistic
                {
                    Name = @"Sawblade Count",
                    Content = sawblades.ToString(),
                    Icon = FontAwesome.Solid.Sun
                },
                new BeatmapStatistic
                {
                    Name = @"Miniboss Count",
                    Content = minibosses.ToString(),
                    Icon = FontAwesome.Solid.Mitten
                },
                new BeatmapStatistic
                {
                    Name = @"Heart Count",
                    Content = hearts.ToString(),
                    Icon = FontAwesome.Solid.Heart
                }
            });
        }
Example #16
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int notes     = HitObjects.Count(s => s is Note);
            int holdnotes = HitObjects.Count(s => s is HoldNote);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Note Count",
                    Content = notes.ToString(),
                    Icon = FontAwesome.fa_circle_o
                },
                new BeatmapStatistic
                {
                    Name = @"Hold Note Count",
                    Content = holdnotes.ToString(),
                    Icon = FontAwesome.fa_circle
                },
            });
        }
Example #17
0
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            var totalCount = HitObjects.Count();
            var hitCount   = HitObjects.Count(s => s is MovingCherry);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Cherries",
                    Content = hitCount.ToString(),
                    Icon = FontAwesome.Regular.Circle
                },
                new BeatmapStatistic
                {
                    Name = @"Visual objects",
                    Content = (totalCount - hitCount).ToString(),
                    Icon = FontAwesome.Regular.Circle
                }
            });
        }
        public override IEnumerable <BeatmapStatistic> GetStatistics()
        {
            int notes     = HitObjects.Count(s => s is Note);
            int holdnotes = HitObjects.Count(s => s is HoldNote);

            return(new[]
            {
                new BeatmapStatistic
                {
                    Name = @"Note Count",
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Circles),
                    Content = notes.ToString(),
                },
                new BeatmapStatistic
                {
                    Name = @"Hold Note Count",
                    CreateIcon = () => new BeatmapStatisticIcon(BeatmapStatisticsIconType.Sliders),
                    Content = holdnotes.ToString(),
                },
            });
        }