1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 06:12:58 +08:00

Add ability to start a new segment during placement via S key

This commit is contained in:
Bartłomiej Dach 2024-06-17 15:06:27 +02:00
parent b5f0e58524
commit 16ea8f67b0
No known key found for this signature in database

View File

@ -242,6 +242,17 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders
switch (e.Key)
{
case Key.S:
{
if (!canPlaceNewControlPoint(out _))
return false;
placeNewControlPoint();
var last = HitObject.Path.ControlPoints.Last(p => p != cursor);
beginNewSegment(last);
return true;
}
case Key.Tab:
{
usingCustomSegmentType = true;