Add support for 'disabled' sample variation to HoverClickSounds

This commit is contained in:
Jamie Taylor
2022-11-03 17:44:54 +09:00
parent c48c9ecb6d
commit f1c17129eb
8 changed files with 34 additions and 7 deletions

View File

@ -20,7 +20,7 @@ namespace osu.Game.Graphics.Containers
protected override Container<Drawable> Content => content;
protected virtual HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverClickSounds(sampleSet);
protected virtual HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverClickSounds(sampleSet) { Enabled = { BindTarget = Enabled } };
public OsuClickableContainer(HoverSampleSet sampleSet = HoverSampleSet.Default)
{