1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 22:22:54 +08:00

We no longer need to pass in the control point.

This commit is contained in:
smoogipooo 2017-06-16 13:12:36 +09:00
parent 874db28478
commit ea87aca032
3 changed files with 6 additions and 6 deletions

View File

@ -130,7 +130,7 @@ namespace osu.Desktop.VisualTests.Tests
{
}
protected override DrawableTimingSection CreateTimingSection(MultiplierControlPoint controlPoint) => new TestDrawableTimingSection(controlPoint);
protected override DrawableTimingSection CreateTimingSection() => new TestDrawableTimingSection(ControlPoint);
private class TestDrawableTimingSection : DrawableTimingSection
{

View File

@ -15,15 +15,15 @@ namespace osu.Game.Rulesets.Mania.Timing
this.scrollingAlgorithm = scrollingAlgorithm;
}
protected override DrawableTimingSection CreateTimingSection(MultiplierControlPoint controlPoint)
protected override DrawableTimingSection CreateTimingSection()
{
switch (scrollingAlgorithm)
{
default:
case ScrollingAlgorithm.Basic:
return new BasicScrollingDrawableTimingSection(controlPoint);
return new BasicScrollingDrawableTimingSection(ControlPoint);
case ScrollingAlgorithm.Gravity:
return new GravityScrollingDrawableTimingSection(controlPoint);
return new GravityScrollingDrawableTimingSection(ControlPoint);
}
}
}

View File

@ -56,7 +56,7 @@ namespace osu.Game.Rulesets.Timing
[BackgroundDependencyLoader]
private void load()
{
DrawableTimingSection timingSection = CreateTimingSection(ControlPoint);
DrawableTimingSection timingSection = CreateTimingSection();
timingSection.ScrollingAxes = ScrollingAxes;
timingSection.VisibleTimeRange.BindTo(VisibleTimeRange);
@ -88,6 +88,6 @@ namespace osu.Game.Rulesets.Timing
/// Creates the container which handles the movement of a collection of hit objects.
/// </summary>
/// <returns>The <see cref="DrawableTimingSection"/>.</returns>
protected abstract DrawableTimingSection CreateTimingSection(MultiplierControlPoint controlPoint);
protected abstract DrawableTimingSection CreateTimingSection();
}
}