1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 05:27:23 +08:00

Don't play hover sounds on disabled elements

This commit is contained in:
Dean Herbert 2022-11-04 19:01:24 +09:00
parent 0e350f52f5
commit 78bb940e6c

View File

@ -58,6 +58,14 @@ namespace osu.Game.Graphics.UserInterface
return base.OnClick(e);
}
public override void PlayHoverSample()
{
if (!Enabled.Value)
return;
base.PlayHoverSample();
}
[BackgroundDependencyLoader]
private void load(AudioManager audio)
{