mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 09:22:54 +08:00
Fix post-rebase issues
This commit is contained in:
parent
10543cf1b6
commit
d8e7ad8241
@ -19,7 +19,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
{
|
{
|
||||||
public class CatchRulesetContainer : ScrollingRulesetContainer<CatchPlayfield, CatchHitObject>
|
public class CatchRulesetContainer : ScrollingRulesetContainer<CatchPlayfield, CatchHitObject>
|
||||||
{
|
{
|
||||||
protected override ScrollAlgorithm ScrollAlgorithm => ScrollAlgorithm.Constant;
|
protected override ScrollVisualisationMethod VisualisationMethod => ScrollVisualisationMethod.Constant;
|
||||||
|
|
||||||
protected override bool UserScrollSpeedAdjustment => false;
|
protected override bool UserScrollSpeedAdjustment => false;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ namespace osu.Game.Rulesets.Taiko.UI
|
|||||||
{
|
{
|
||||||
public class TaikoRulesetContainer : ScrollingRulesetContainer<TaikoPlayfield, TaikoHitObject>
|
public class TaikoRulesetContainer : ScrollingRulesetContainer<TaikoPlayfield, TaikoHitObject>
|
||||||
{
|
{
|
||||||
protected override ScrollAlgorithm ScrollAlgorithm => ScrollAlgorithm.Overlapping;
|
protected override ScrollVisualisationMethod VisualisationMethod => ScrollVisualisationMethod.Overlapping;
|
||||||
|
|
||||||
protected override bool UserScrollSpeedAdjustment => false;
|
protected override bool UserScrollSpeedAdjustment => false;
|
||||||
|
|
||||||
|
@ -62,9 +62,9 @@ namespace osu.Game.Tests.Visual
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
AddStep("Constant scroll", () => setScrollAlgorithm(ScrollAlgorithm.Constant));
|
AddStep("Constant scroll", () => setScrollAlgorithm(ScrollVisualisationMethod.Constant));
|
||||||
AddStep("Overlapping scroll", () => setScrollAlgorithm(ScrollAlgorithm.Overlapping));
|
AddStep("Overlapping scroll", () => setScrollAlgorithm(ScrollVisualisationMethod.Overlapping));
|
||||||
AddStep("Sequential scroll", () => setScrollAlgorithm(ScrollAlgorithm.Sequential));
|
AddStep("Sequential scroll", () => setScrollAlgorithm(ScrollVisualisationMethod.Sequential));
|
||||||
|
|
||||||
AddSliderStep("Time range", 100, 10000, 5000, v => scrollContainers.ForEach(c => c.TimeRange = v));
|
AddSliderStep("Time range", 100, 10000, 5000, v => scrollContainers.ForEach(c => c.TimeRange = v));
|
||||||
AddStep("Add control point", () => addControlPoint(Time.Current + 5000));
|
AddStep("Add control point", () => addControlPoint(Time.Current + 5000));
|
||||||
@ -136,7 +136,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setScrollAlgorithm(ScrollAlgorithm algorithm) => scrollContainers.ForEach(c => c.ScrollAlgorithm = algorithm);
|
private void setScrollAlgorithm(ScrollVisualisationMethod algorithm) => scrollContainers.ForEach(c => c.ScrollAlgorithm = algorithm);
|
||||||
|
|
||||||
private class TestPlayfield : ScrollingPlayfield
|
private class TestPlayfield : ScrollingPlayfield
|
||||||
{
|
{
|
||||||
|
@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
|||||||
MaxValue = time_span_max
|
MaxValue = time_span_max
|
||||||
};
|
};
|
||||||
|
|
||||||
protected virtual ScrollAlgorithm ScrollAlgorithm => ScrollAlgorithm.Sequential;
|
protected virtual ScrollVisualisationMethod VisualisationMethod => ScrollVisualisationMethod.Sequential;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Whether the player can change <see cref="VisibleTimeRange"/>.
|
/// Whether the player can change <see cref="VisibleTimeRange"/>.
|
||||||
@ -87,15 +87,15 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
|||||||
scrollingInfo.Direction.BindTo(Direction);
|
scrollingInfo.Direction.BindTo(Direction);
|
||||||
scrollingInfo.TimeRange.BindTo(TimeRange);
|
scrollingInfo.TimeRange.BindTo(TimeRange);
|
||||||
|
|
||||||
switch (ScrollAlgorithm)
|
switch (VisualisationMethod)
|
||||||
{
|
{
|
||||||
case ScrollAlgorithm.Sequential:
|
case ScrollVisualisationMethod.Sequential:
|
||||||
scrollingInfo.Algorithm = new SequentialScrollAlgorithm(controlPoints);
|
scrollingInfo.Algorithm = new SequentialScrollAlgorithm(controlPoints);
|
||||||
break;
|
break;
|
||||||
case ScrollAlgorithm.Overlapping:
|
case ScrollVisualisationMethod.Overlapping:
|
||||||
scrollingInfo.Algorithm = new OverlappingScrollAlgorithm(controlPoints);
|
scrollingInfo.Algorithm = new OverlappingScrollAlgorithm(controlPoints);
|
||||||
break;
|
break;
|
||||||
case ScrollAlgorithm.Constant:
|
case ScrollVisualisationMethod.Constant:
|
||||||
scrollingInfo.Algorithm = new ConstantScrollAlgorithm();
|
scrollingInfo.Algorithm = new ConstantScrollAlgorithm();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ namespace osu.Game.Tests.Visual
|
|||||||
{
|
{
|
||||||
public SortedList<MultiplierControlPoint> ControlPoints => scrollingInfo.Algorithm.ControlPoints;
|
public SortedList<MultiplierControlPoint> ControlPoints => scrollingInfo.Algorithm.ControlPoints;
|
||||||
|
|
||||||
public ScrollAlgorithm ScrollAlgorithm { set => scrollingInfo.Algorithm.Algorithm = value; }
|
public ScrollVisualisationMethod ScrollAlgorithm { set => scrollingInfo.Algorithm.Algorithm = value; }
|
||||||
|
|
||||||
public double TimeRange { set => scrollingInfo.TimeRange.Value = value; }
|
public double TimeRange { set => scrollingInfo.TimeRange.Value = value; }
|
||||||
|
|
||||||
@ -54,22 +54,22 @@ namespace osu.Game.Tests.Visual
|
|||||||
|
|
||||||
public TestScrollAlgorithm()
|
public TestScrollAlgorithm()
|
||||||
{
|
{
|
||||||
Algorithm = ScrollAlgorithm.Constant;
|
Algorithm = ScrollVisualisationMethod.Constant;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ScrollAlgorithm Algorithm
|
public ScrollVisualisationMethod Algorithm
|
||||||
{
|
{
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
switch (value)
|
switch (value)
|
||||||
{
|
{
|
||||||
case ScrollAlgorithm.Constant:
|
case ScrollVisualisationMethod.Constant:
|
||||||
implementation = new ConstantScrollAlgorithm();
|
implementation = new ConstantScrollAlgorithm();
|
||||||
break;
|
break;
|
||||||
case ScrollAlgorithm.Overlapping:
|
case ScrollVisualisationMethod.Overlapping:
|
||||||
implementation = new OverlappingScrollAlgorithm(ControlPoints);
|
implementation = new OverlappingScrollAlgorithm(ControlPoints);
|
||||||
break;
|
break;
|
||||||
case ScrollAlgorithm.Sequential:
|
case ScrollVisualisationMethod.Sequential:
|
||||||
implementation = new SequentialScrollAlgorithm(ControlPoints);
|
implementation = new SequentialScrollAlgorithm(ControlPoints);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user