Skip to content

Commit

Permalink
Display singer and note.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Sep 9, 2020
1 parent 2f8769a commit 1e895b7
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion osu.Game.Rulesets.Karaoke/Beatmaps/KaraokeBeatmap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,29 @@ public class KaraokeBeatmap : Beatmap<KaraokeHitObject>
{
public override IEnumerable<BeatmapStatistic> 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
},
};
}
Expand Down

0 comments on commit 1e895b7

Please sign in to comment.