mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 02:02:53 +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,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
VisibleTimeRange.Value = BeatmapDifficulty.DifficultyRange(difficulty.ApproachRate, 1800, 1200, 450) / 1.2;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool CheckIfWeCanCatch(CatchHitObject obj) => catcherArea.AttemptCatch(obj);
|
public bool CheckIfWeCanCatch(CatchHitObject obj) => catcherArea.AttemptCatch(obj);
|
||||||
|
@ -10,6 +10,8 @@ namespace osu.Game.Configuration
|
|||||||
[Description("Sequential")]
|
[Description("Sequential")]
|
||||||
Sequential,
|
Sequential,
|
||||||
[Description("Overlapping")]
|
[Description("Overlapping")]
|
||||||
Overlapping
|
Overlapping,
|
||||||
|
[Description("Constant")]
|
||||||
|
Constant
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -54,6 +54,9 @@ namespace osu.Game.Rulesets.UI.Scrolling
|
|||||||
case SpeedChangeVisualisationMethod.Overlapping:
|
case SpeedChangeVisualisationMethod.Overlapping:
|
||||||
speedChangeVisualiser = new OverlappingSpeedChangeVisualiser(ControlPoints);
|
speedChangeVisualiser = new OverlappingSpeedChangeVisualiser(ControlPoints);
|
||||||
break;
|
break;
|
||||||
|
case SpeedChangeVisualisationMethod.Constant:
|
||||||
|
speedChangeVisualiser = new ConstantSpeedChangeVisualiser();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,7 +61,7 @@ namespace osu.Game.Rulesets.UI.Scrolling.Visualisers
|
|||||||
|
|
||||||
foreach (var obj in hitObjects)
|
foreach (var obj in hitObjects)
|
||||||
{
|
{
|
||||||
var finalPosition = hitObjectPositions[obj] - timelinePosition;
|
var finalPosition = (hitObjectPositions[obj] - timelinePosition);
|
||||||
|
|
||||||
switch (direction)
|
switch (direction)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user