From 1e895b7438c910c105ce30624e7e07998953db93 Mon Sep 17 00:00:00 2001 From: andy840119 Date: Wed, 9 Sep 2020 22:15:58 +0900 Subject: [PATCH] Display singer and note. --- .../Beatmaps/KaraokeBeatmap.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs b/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs index aa5f93cf3..0b2ec1e7c 100644 --- a/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs +++ b/osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs @@ -13,15 +13,29 @@ public class KaraokeBeatmap : Beatmap { 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[] { + new BeatmapStatistic + { + Name = @"Singer", + Content = singers.ToString(), + Icon = FontAwesome.Solid.User + }, new BeatmapStatistic { Name = @"Lyric", Content = lyrics.ToString(), - Icon = FontAwesome.Regular.Circle + Icon = FontAwesome.Solid.AlignLeft + }, + new BeatmapStatistic + { + Name = @"Note", + Content = notes.ToString(), + Icon = FontAwesome.Solid.Music }, }; }