mirror of https://github.com/ppy/osu
Don't play screen "back" sample when retrying
This commit is contained in:
parent
8d8258c039
commit
6fdcd98caa
|
@ -59,6 +59,8 @@ public abstract class OsuScreen : Screen, IOsuScreen, IKeyBindingHandler<GlobalA
|
|||
|
||||
private SampleChannel sampleExit;
|
||||
|
||||
protected virtual bool PlayResumeSound => true;
|
||||
|
||||
public virtual float BackgroundParallaxAmount => 1;
|
||||
|
||||
public Bindable<WorkingBeatmap> Beatmap { get; private set; }
|
||||
|
@ -117,7 +119,8 @@ public virtual bool OnPressed(GlobalAction action)
|
|||
|
||||
public override void OnResuming(IScreen last)
|
||||
{
|
||||
sampleExit?.Play();
|
||||
if (PlayResumeSound)
|
||||
sampleExit?.Play();
|
||||
applyArrivingDefaults(true);
|
||||
|
||||
base.OnResuming(last);
|
||||
|
|
|
@ -44,6 +44,8 @@ public class PlayerLoader : ScreenWithBeatmapBackground
|
|||
|
||||
public override bool DisallowExternalBeatmapRulesetChanges => true;
|
||||
|
||||
protected override bool PlayResumeSound => false;
|
||||
|
||||
private Task loadTask;
|
||||
|
||||
private InputManager inputManager;
|
||||
|
|
Loading…
Reference in New Issue