mirror of
https://github.com/ppy/osu.git
synced 2026-05-26 15:50:29 +08:00
play/stops music when entering the pause overlay, instead of letting it play silently in the background
This commit is contained in:
@@ -38,13 +38,13 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
Looping = true,
|
||||
});
|
||||
pauseLoop?.Play();
|
||||
}
|
||||
}
|
||||
|
||||
protected override void PopIn()
|
||||
{
|
||||
base.PopIn();
|
||||
pauseLoop?.Play();
|
||||
pauseLoop?.VolumeTo(1.0f, 400, Easing.InQuint);
|
||||
}
|
||||
|
||||
@@ -52,6 +52,7 @@ namespace osu.Game.Screens.Play
|
||||
{
|
||||
base.PopOut();
|
||||
pauseLoop?.VolumeTo(0.0f);
|
||||
pauseLoop?.Stop();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user