mirror of
https://github.com/ppy/osu
synced 2025-01-28 00:32:59 +00:00
Do not play open/close samples for top-level menus
This commit is contained in:
parent
5031b19b42
commit
ff1730f9f8
@ -40,7 +40,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
protected override void AnimateOpen()
|
protected override void AnimateOpen()
|
||||||
{
|
{
|
||||||
if (!wasOpened)
|
if (!TopLevelMenu && !wasOpened)
|
||||||
sampleOpen?.Play();
|
sampleOpen?.Play();
|
||||||
|
|
||||||
this.FadeIn(300, Easing.OutQuint);
|
this.FadeIn(300, Easing.OutQuint);
|
||||||
@ -49,7 +49,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
protected override void AnimateClose()
|
protected override void AnimateClose()
|
||||||
{
|
{
|
||||||
if (wasOpened)
|
if (!TopLevelMenu && wasOpened)
|
||||||
sampleClose?.Play();
|
sampleClose?.Play();
|
||||||
|
|
||||||
this.FadeOut(300, Easing.OutQuint);
|
this.FadeOut(300, Easing.OutQuint);
|
||||||
|
Loading…
Reference in New Issue
Block a user