mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 00:42:55 +08:00
Improve implementation
This commit is contained in:
parent
fac2596eee
commit
f6e65cf1af
@ -81,6 +81,11 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
private bool isRestarting;
|
||||
|
||||
/// <summary>
|
||||
/// Is set to true when pressed the via the quick retry hotkey.
|
||||
/// </summary>
|
||||
public Bindable<bool> IsQuickRestart = new Bindable<bool>();
|
||||
|
||||
private Bindable<bool> mouseWheelDisabled;
|
||||
|
||||
private readonly Bindable<bool> storyboardReplacesBackground = new Bindable<bool>();
|
||||
@ -287,7 +292,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
if (!this.IsCurrentScreen()) return;
|
||||
|
||||
Configuration.AutomaticallySkipIntro = true;
|
||||
IsQuickRestart.Value = true;
|
||||
fadeOut(true);
|
||||
Restart();
|
||||
},
|
||||
@ -370,10 +375,7 @@ namespace osu.Game.Screens.Play
|
||||
skipIntroOverlay.IsSkippable.ValueChanged += e =>
|
||||
{
|
||||
if (Configuration.AutomaticallySkipIntro && e.NewValue && RestartCount > 0)
|
||||
{
|
||||
Configuration.AutomaticallySkipIntro = false;
|
||||
performUserRequestedSkip();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -386,9 +386,7 @@ namespace osu.Game.Screens.Play
|
||||
private void restartRequested()
|
||||
{
|
||||
if (CurrentPlayer != null)
|
||||
{
|
||||
isHotKeyRestart = CurrentPlayer.Configuration.AutomaticallySkipIntro;
|
||||
}
|
||||
isHotKeyRestart = CurrentPlayer.IsQuickRestart.Value;
|
||||
|
||||
hideOverlays = true;
|
||||
ValidForResume = true;
|
||||
|
Loading…
Reference in New Issue
Block a user