mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Refactor OsuRuleset
This commit is contained in:
parent
8aea8267fb
commit
89a863a337
@ -192,29 +192,24 @@ namespace osu.Game.Rulesets.Osu
|
||||
|
||||
public override IRulesetConfigManager CreateConfig(SettingsStore settings) => new OsuRulesetConfigManager(settings, RulesetInfo);
|
||||
|
||||
public override StatisticRow[] CreateStatistics(ScoreInfo score)
|
||||
public override StatisticRow[] CreateStatistics(ScoreInfo score) => new[]
|
||||
{
|
||||
var hitCircleEvents = score.HitEvents.Where(e => e.HitObject is HitCircle).ToList();
|
||||
|
||||
return new[]
|
||||
new StatisticRow
|
||||
{
|
||||
new StatisticRow
|
||||
Columns = new[]
|
||||
{
|
||||
Columns = new[]
|
||||
new StatisticItem("Timing Distribution", new HitEventTimingDistributionGraph(score.HitEvents.Where(e => e.HitObject is HitCircle).ToList())
|
||||
{
|
||||
new StatisticItem("Timing Distribution", new HitEventTimingDistributionGraph(hitCircleEvents)
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = 130
|
||||
}),
|
||||
new StatisticItem("Accuracy Heatmap", new Heatmap(score)
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = 130
|
||||
}, new Dimension(GridSizeMode.Absolute, 130)),
|
||||
}
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = 130
|
||||
}),
|
||||
new StatisticItem("Accuracy Heatmap", new Heatmap(score)
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = 130
|
||||
}, new Dimension(GridSizeMode.Absolute, 130)),
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user