mirror of
https://github.com/osukey/osukey.git
synced 2025-05-24 15:07:20 +09: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,
|
Looping = true,
|
||||||
});
|
});
|
||||||
pauseLoop?.Play();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void PopIn()
|
protected override void PopIn()
|
||||||
{
|
{
|
||||||
base.PopIn();
|
base.PopIn();
|
||||||
|
pauseLoop?.Play();
|
||||||
pauseLoop?.VolumeTo(1.0f, 400, Easing.InQuint);
|
pauseLoop?.VolumeTo(1.0f, 400, Easing.InQuint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -52,6 +52,7 @@ namespace osu.Game.Screens.Play
|
|||||||
{
|
{
|
||||||
base.PopOut();
|
base.PopOut();
|
||||||
pauseLoop?.VolumeTo(0.0f);
|
pauseLoop?.VolumeTo(0.0f);
|
||||||
|
pauseLoop?.Stop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user