add Spinner Count to BeatmapInfoWedge

- added Tooltips to the respective InfoLabels
- made the TestCase internal like all others
This commit is contained in:
Aergwyn
2017-12-14 19:55:15 +01:00
parent 7b4bbc6dc5
commit f329b1ed72
3 changed files with 29 additions and 13 deletions

View File

@ -37,8 +37,9 @@ namespace osu.Game.Rulesets.Osu
public override IEnumerable<BeatmapStatistic> GetBeatmapStatistics(WorkingBeatmap beatmap)
{
IEnumerable<HitObject> hitObjects = beatmap.Beatmap.HitObjects;
IEnumerable<HitObject> circles = hitObjects.Where(d => !(d is IHasEndTime));
IEnumerable<HitObject> circles = hitObjects.Where(c => !(c is IHasEndTime));
IEnumerable<HitObject> sliders = hitObjects.Where(s => s is IHasCurve);
IEnumerable<HitObject> spinners = hitObjects.Where(s => s is IHasEndTime && !(s is IHasCurve));
return new[]
{
@ -53,6 +54,12 @@ namespace osu.Game.Rulesets.Osu
Name = @"Slider Count",
Content = sliders.Count().ToString(),
Icon = FontAwesome.fa_circle
},
new BeatmapStatistic
{
Name = @"Spinner Count",
Content = spinners.Count().ToString(),
Icon = FontAwesome.fa_circle
}
};
}