1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Adjust playback speed range to allow slower minimum speed

This commit is contained in:
Dean Herbert 2024-01-17 14:53:49 +09:00
parent 42f64c2c44
commit 042e852a3e
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View File

@ -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>

View File

@ -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;