1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-27 15:53:19 +08:00

Move timing distribution graph to osu.Game

This commit is contained in:
smoogipoo 2020-06-19 20:03:18 +09:00
parent eab00ec9d9
commit 1cbbd6b442
4 changed files with 9 additions and 9 deletions

View File

@ -200,7 +200,7 @@ namespace osu.Game.Rulesets.Osu
{ {
RelativeSizeAxes = Axes.X, RelativeSizeAxes = Axes.X,
Height = 130, Height = 130,
Child = new TimingDistributionGraph(score) Child = new HitEventTimingDistributionGraph(score)
{ {
RelativeSizeAxes = Axes.Both RelativeSizeAxes = Axes.Both
} }

View File

@ -17,7 +17,7 @@ namespace osu.Game.Tests.Visual.Ranking
{ {
var score = new TestScoreInfo(new OsuRuleset().RulesetInfo) var score = new TestScoreInfo(new OsuRuleset().RulesetInfo)
{ {
HitEvents = TestSceneTimingDistributionGraph.CreateDistributedHitEvents() HitEvents = TestSceneHitEventTimingDistributionGraph.CreateDistributedHitEvents()
}; };
loadPanel(score); loadPanel(score);

View File

@ -7,16 +7,16 @@ using osu.Framework.Extensions.Color4Extensions;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osu.Game.Rulesets.Osu.Objects; using osu.Game.Rulesets.Osu.Objects;
using osu.Game.Rulesets.Osu.Statistics;
using osu.Game.Rulesets.Scoring; using osu.Game.Rulesets.Scoring;
using osu.Game.Scoring; using osu.Game.Scoring;
using osu.Game.Screens.Ranking.Statistics;
using osuTK; using osuTK;
namespace osu.Game.Tests.Visual.Ranking namespace osu.Game.Tests.Visual.Ranking
{ {
public class TestSceneTimingDistributionGraph : OsuTestScene public class TestSceneHitEventTimingDistributionGraph : OsuTestScene
{ {
public TestSceneTimingDistributionGraph() public TestSceneHitEventTimingDistributionGraph()
{ {
Children = new Drawable[] Children = new Drawable[]
{ {
@ -25,7 +25,7 @@ namespace osu.Game.Tests.Visual.Ranking
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Colour = Color4Extensions.FromHex("#333") Colour = Color4Extensions.FromHex("#333")
}, },
new TimingDistributionGraph(new ScoreInfo { HitEvents = CreateDistributedHitEvents() }) new HitEventTimingDistributionGraph(new ScoreInfo { HitEvents = CreateDistributedHitEvents() })
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,

View File

@ -12,9 +12,9 @@ using osu.Game.Graphics;
using osu.Game.Graphics.Sprites; using osu.Game.Graphics.Sprites;
using osu.Game.Scoring; using osu.Game.Scoring;
namespace osu.Game.Rulesets.Osu.Statistics namespace osu.Game.Screens.Ranking.Statistics
{ {
public class TimingDistributionGraph : CompositeDrawable public class HitEventTimingDistributionGraph : CompositeDrawable
{ {
/// <summary> /// <summary>
/// The number of bins on each side of the timing distribution. /// The number of bins on each side of the timing distribution.
@ -38,7 +38,7 @@ namespace osu.Game.Rulesets.Osu.Statistics
private readonly ScoreInfo score; private readonly ScoreInfo score;
public TimingDistributionGraph(ScoreInfo score) public HitEventTimingDistributionGraph(ScoreInfo score)
{ {
this.score = score; this.score = score;
} }