mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 23:42:54 +08:00
fix repeat sliders half
This commit is contained in:
parent
3aaf0b39f5
commit
66f4dcc578
@ -65,7 +65,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
||||
{
|
||||
Color4 colour = colours.Yellow;
|
||||
|
||||
if (IsHovered)
|
||||
if (IsHovered && Slider.RepeatCount % 2 == 0)
|
||||
colour = colour.Lighten(1);
|
||||
|
||||
CirclePiece.Colour = colour;
|
||||
@ -73,7 +73,8 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
|
||||
|
||||
protected override bool OnDragStart(DragStartEvent e)
|
||||
{
|
||||
if (e.Button == MouseButton.Right || !inputManager.CurrentState.Keyboard.ShiftPressed)
|
||||
// Disable dragging if the slider has an uneven number of repeats because the slider tail will be on the wrong side of the path.
|
||||
if (e.Button == MouseButton.Right || !inputManager.CurrentState.Keyboard.ShiftPressed || Slider.RepeatCount % 2 == 1)
|
||||
return false;
|
||||
|
||||
isDragging = true;
|
||||
|
Loading…
Reference in New Issue
Block a user