mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 12:42:56 +08:00
Fix overlay activation mode being updated when player is not current screen.
This commit is contained in:
parent
052bb06c91
commit
f74e162bbc
@ -363,6 +363,9 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
private void updateOverlayActivationMode()
|
private void updateOverlayActivationMode()
|
||||||
{
|
{
|
||||||
|
if (!this.IsCurrentScreen())
|
||||||
|
return;
|
||||||
|
|
||||||
bool canTriggerOverlays = DrawableRuleset.IsPaused.Value || breakTracker.IsBreakTime.Value || !gameplayOverlaysDisabled.Value;
|
bool canTriggerOverlays = DrawableRuleset.IsPaused.Value || breakTracker.IsBreakTime.Value || !gameplayOverlaysDisabled.Value;
|
||||||
|
|
||||||
if (DrawableRuleset.HasReplayLoaded.Value || canTriggerOverlays)
|
if (DrawableRuleset.HasReplayLoaded.Value || canTriggerOverlays)
|
||||||
|
Loading…
Reference in New Issue
Block a user