mirror of
https://github.com/ppy/osu
synced 2025-01-12 00:59:35 +00: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
|
private class TestDrawableTimingSection : DrawableTimingSection
|
||||||
{
|
{
|
||||||
|
@ -15,15 +15,15 @@ namespace osu.Game.Rulesets.Mania.Timing
|
|||||||
this.scrollingAlgorithm = scrollingAlgorithm;
|
this.scrollingAlgorithm = scrollingAlgorithm;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override DrawableTimingSection CreateTimingSection(MultiplierControlPoint controlPoint)
|
protected override DrawableTimingSection CreateTimingSection()
|
||||||
{
|
{
|
||||||
switch (scrollingAlgorithm)
|
switch (scrollingAlgorithm)
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case ScrollingAlgorithm.Basic:
|
case ScrollingAlgorithm.Basic:
|
||||||
return new BasicScrollingDrawableTimingSection(controlPoint);
|
return new BasicScrollingDrawableTimingSection(ControlPoint);
|
||||||
case ScrollingAlgorithm.Gravity:
|
case ScrollingAlgorithm.Gravity:
|
||||||
return new GravityScrollingDrawableTimingSection(controlPoint);
|
return new GravityScrollingDrawableTimingSection(ControlPoint);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -56,7 +56,7 @@ namespace osu.Game.Rulesets.Timing
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
DrawableTimingSection timingSection = CreateTimingSection(ControlPoint);
|
DrawableTimingSection timingSection = CreateTimingSection();
|
||||||
|
|
||||||
timingSection.ScrollingAxes = ScrollingAxes;
|
timingSection.ScrollingAxes = ScrollingAxes;
|
||||||
timingSection.VisibleTimeRange.BindTo(VisibleTimeRange);
|
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.
|
/// Creates the container which handles the movement of a collection of hit objects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>The <see cref="DrawableTimingSection"/>.</returns>
|
/// <returns>The <see cref="DrawableTimingSection"/>.</returns>
|
||||||
protected abstract DrawableTimingSection CreateTimingSection(MultiplierControlPoint controlPoint);
|
protected abstract DrawableTimingSection CreateTimingSection();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user