mirror of
https://github.com/ppy/osu
synced 2025-03-07 03:49:14 +00:00
Adjust keyboard step to be something sensible
This commit is contained in:
parent
0195d654ca
commit
32c571fc94
@ -18,7 +18,8 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
{
|
||||
multiplierSlider = new SliderWithTextBoxInput<double>("Speed Multiplier")
|
||||
{
|
||||
Current = new DifficultyControlPoint().SpeedMultiplierBindable
|
||||
Current = new DifficultyControlPoint().SpeedMultiplierBindable,
|
||||
KeyboardStep = 0.1f
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -69,6 +69,15 @@ namespace osu.Game.Screens.Edit.Timing
|
||||
}, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// A custom step value for each key press which actuates a change on this control.
|
||||
/// </summary>
|
||||
public float KeyboardStep
|
||||
{
|
||||
get => slider.KeyboardStep;
|
||||
set => slider.KeyboardStep = value;
|
||||
}
|
||||
|
||||
public Bindable<T> Current
|
||||
{
|
||||
get => slider.Current;
|
||||
|
Loading…
Reference in New Issue
Block a user