1
0
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:
BananeVolante
2020-06-24 14:22:12 +02:00
Unverified
parent 9514a02eeb
commit 2e8f30461f
+2 -1
View File
@@ -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();
}
}
}