mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 20:07: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:
parent
9514a02eeb
commit
2e8f30461f
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user