mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 09:23:06 +08:00
Implement ConstantScrollingSpeedVisualiser
This commit is contained in:
parent
b17bd6aaaa
commit
e3cc25a96a
@ -55,6 +55,8 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
},
|
||||
});
|
||||
|
||||
VisibleTimeRange.Value = BeatmapDifficulty.DifficultyRange(difficulty.ApproachRate, 1800, 1200, 450) / 1.2;
|
||||
}
|
||||
|
||||
public bool CheckIfWeCanCatch(CatchHitObject obj) => catcherArea.AttemptCatch(obj);
|
||||
|
@ -10,6 +10,8 @@ namespace osu.Game.Configuration
|
||||
[Description("Sequential")]
|
||||
Sequential,
|
||||
[Description("Overlapping")]
|
||||
Overlapping
|
||||
Overlapping,
|
||||
[Description("Constant")]
|
||||
Constant
|
||||
}
|
||||
}
|
||||
|
@ -54,6 +54,9 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
||||
case SpeedChangeVisualisationMethod.Overlapping:
|
||||
speedChangeVisualiser = new OverlappingSpeedChangeVisualiser(ControlPoints);
|
||||
break;
|
||||
case SpeedChangeVisualisationMethod.Constant:
|
||||
speedChangeVisualiser = new ConstantSpeedChangeVisualiser();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.UI.Scrolling.Visualisers
|
||||
|
||||
foreach (var obj in hitObjects)
|
||||
{
|
||||
var finalPosition = hitObjectPositions[obj] - timelinePosition;
|
||||
var finalPosition = (hitObjectPositions[obj] - timelinePosition);
|
||||
|
||||
switch (direction)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user