mirror of
https://github.com/ppy/osu
synced 2025-01-27 00:02:53 +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()
|
||||
{
|
||||
if (!wasOpened)
|
||||
if (!TopLevelMenu && !wasOpened)
|
||||
sampleOpen?.Play();
|
||||
|
||||
this.FadeIn(300, Easing.OutQuint);
|
||||
@ -49,7 +49,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
protected override void AnimateClose()
|
||||
{
|
||||
if (wasOpened)
|
||||
if (!TopLevelMenu && wasOpened)
|
||||
sampleClose?.Play();
|
||||
|
||||
this.FadeOut(300, Easing.OutQuint);
|
||||
|
Loading…
Reference in New Issue
Block a user