ScrollAlgorithm -> ScrollVisualisationMethod

This commit is contained in:
smoogipoo
2018-11-12 17:26:37 +09:00
parent 33056b8098
commit aee7a80e71
5 changed files with 10 additions and 10 deletions

View File

@ -35,22 +35,22 @@ namespace osu.Game.Rulesets.UI.Scrolling
private Cached initialStateCache = new Cached();
public ScrollingHitObjectContainer(ScrollAlgorithm scrollAlgorithm)
public ScrollingHitObjectContainer(ScrollVisualisationMethod visualisationMethod)
{
RelativeSizeAxes = Axes.Both;
TimeRange.ValueChanged += _ => initialStateCache.Invalidate();
Direction.ValueChanged += _ => initialStateCache.Invalidate();
switch (scrollAlgorithm)
switch (visualisationMethod)
{
case ScrollAlgorithm.Sequential:
case ScrollVisualisationMethod.Sequential:
algorithm = new SequentialScrollAlgorithm(ControlPoints);
break;
case ScrollAlgorithm.Overlapping:
case ScrollVisualisationMethod.Overlapping:
algorithm = new OverlappingScrollAlgorithm(ControlPoints);
break;
case ScrollAlgorithm.Constant:
case ScrollVisualisationMethod.Constant:
algorithm = new ConstantScrollAlgorithm();
break;
}