mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 09:27:29 +08:00
Adjust playback speed range to allow slower minimum speed
This commit is contained in:
parent
42f64c2c44
commit
042e852a3e
@ -35,9 +35,9 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public readonly BindableNumber<double> UserPlaybackRate = new BindableDouble(1)
|
public readonly BindableNumber<double> UserPlaybackRate = new BindableDouble(1)
|
||||||
{
|
{
|
||||||
MinValue = 0.5,
|
MinValue = 0.05,
|
||||||
MaxValue = 2,
|
MaxValue = 2,
|
||||||
Precision = 0.1,
|
Precision = 0.01,
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -22,9 +22,9 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
|
|
||||||
public readonly Bindable<double> UserPlaybackRate = new BindableDouble(1)
|
public readonly Bindable<double> UserPlaybackRate = new BindableDouble(1)
|
||||||
{
|
{
|
||||||
MinValue = 0.5,
|
MinValue = 0.05,
|
||||||
MaxValue = 2,
|
MaxValue = 2,
|
||||||
Precision = 0.1,
|
Precision = 0.01,
|
||||||
};
|
};
|
||||||
|
|
||||||
private readonly PlayerSliderBar<double> rateSlider;
|
private readonly PlayerSliderBar<double> rateSlider;
|
||||||
@ -149,7 +149,7 @@ namespace osu.Game.Screens.Play.PlayerSettings
|
|||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
rateSlider.Current.BindValueChanged(multiplier => multiplierText.Text = $"{multiplier.NewValue:0.0}x", true);
|
rateSlider.Current.BindValueChanged(multiplier => multiplierText.Text = $"{multiplier.NewValue:0.00}x", true);
|
||||||
|
|
||||||
if (gameplayClock != null)
|
if (gameplayClock != null)
|
||||||
isPaused.BindTarget = gameplayClock.IsPaused;
|
isPaused.BindTarget = gameplayClock.IsPaused;
|
||||||
|
Loading…
Reference in New Issue
Block a user