1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:52:57 +08:00

Allow player to not pause on focus loss

This commit is contained in:
Dean Herbert 2019-03-26 13:17:00 +09:00
parent c403dede20
commit 256a579de0

View File

@ -47,6 +47,8 @@ namespace osu.Game.Screens.Play
public bool AllowLeadIn { get; set; } = true;
public bool AllowResults { get; set; } = true;
public bool PauseOnFocusLost { get; set; } = true;
private Bindable<bool> mouseWheelDisabled;
private readonly Bindable<bool> storyboardReplacesBackground = new Bindable<bool>();
@ -372,7 +374,7 @@ namespace osu.Game.Screens.Play
base.Update();
// eagerly pause when we lose window focus (if we are locally playing).
if (!Game.IsActive.Value)
if (PauseOnFocusLost && !Game.IsActive.Value)
Pause();
}