1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-22 18:07:19 +08:00

Change control to toggle rather than always select

This commit is contained in:
Dean Herbert 2019-11-03 18:41:29 +09:00
parent 6bc62385b6
commit 4dbdfcdd3c
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
public Action<int> RequestSelection;
public Action<Vector2[]> ControlPointsChanged;
public readonly Bindable<bool> IsSelected = new Bindable<bool>();
public readonly BindableBool IsSelected = new BindableBool();
public readonly int Index;
private readonly Slider slider;

View File

@ -63,7 +63,7 @@ namespace osu.Game.Rulesets.Osu.Edit.Blueprints.Sliders.Components
private void selectPiece(int index)
{
if (inputManager.CurrentState.Keyboard.ControlPressed)
Pieces[index].IsSelected.Value = true;
Pieces[index].IsSelected.Toggle();
else
{
foreach (var piece in Pieces)