mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 11:12:54 +08:00
Don't play hover sounds on disabled elements
This commit is contained in:
parent
0e350f52f5
commit
78bb940e6c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user