diff --git a/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs b/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs index 0b2ec1e7c..4b5dd09a5 100644 --- a/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs +++ b/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs @@ -15,29 +15,33 @@ public override IEnumerable GetStatistics() { int singers = 1; int lyrics = HitObjects.Count(s => s is LyricLine); - int notes = HitObjects.Count(s => s is Note); - return new[] + var defaultStatistic = new List { new BeatmapStatistic { Name = @"Singer", Content = singers.ToString(), - Icon = FontAwesome.Solid.User + CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.User } }, new BeatmapStatistic { Name = @"Lyric", Content = lyrics.ToString(), - Icon = FontAwesome.Solid.AlignLeft + CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.AlignLeft } }, - new BeatmapStatistic + }; + + int notes = HitObjects.Count(s => s is Note note && note.Display); + if (notes > 0) + defaultStatistic.Add(new BeatmapStatistic { Name = @"Note", Content = notes.ToString(), - Icon = FontAwesome.Solid.Music - }, - }; + CreateIcon = () => new SpriteIcon { Icon = FontAwesome.Solid.Music } + }); + + return defaultStatistic.ToArray(); } } }