mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 18:02:56 +08:00
Add mania statistics
This commit is contained in:
parent
8a4717d2e9
commit
b737644208
@ -4,6 +4,7 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
|
using osu.Game.Graphics;
|
||||||
using osu.Game.Rulesets.Mania.Objects;
|
using osu.Game.Rulesets.Mania.Objects;
|
||||||
using osu.Game.Rulesets.Mania.UI;
|
using osu.Game.Rulesets.Mania.UI;
|
||||||
|
|
||||||
@ -29,5 +30,33 @@ namespace osu.Game.Rulesets.Mania.Beatmaps
|
|||||||
{
|
{
|
||||||
Stages.Add(defaultStage);
|
Stages.Add(defaultStage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override IEnumerable<BeatmapStatistic> GetStatistics()
|
||||||
|
{
|
||||||
|
int holdnotes = HitObjects.Count(s => s is HoldNote);
|
||||||
|
int notes = HitObjects.Count - holdnotes;
|
||||||
|
|
||||||
|
return new[]
|
||||||
|
{
|
||||||
|
new BeatmapStatistic
|
||||||
|
{
|
||||||
|
Name = @"Object Count",
|
||||||
|
Content = HitObjects.Count.ToString(),
|
||||||
|
Icon = FontAwesome.fa_circle
|
||||||
|
},
|
||||||
|
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
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user