mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
We no longer need to pass in the control point.
This commit is contained in:
parent
874db28478
commit
ea87aca032
@ -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
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user