mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Implemented new interface which allows parent containers to decide on whether a "OnHover" sound should be played.
This commit is contained in:
@ -8,7 +8,7 @@ using osu.Game.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
public class OsuClickableContainer : ClickableContainer
|
||||
public class OsuClickableContainer : ClickableContainer, IHasHoverSounds
|
||||
{
|
||||
private readonly HoverSampleSet sampleSet;
|
||||
|
||||
@ -16,6 +16,8 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
public bool ShouldPlayHoverSound => true;
|
||||
|
||||
public OsuClickableContainer(HoverSampleSet sampleSet = HoverSampleSet.Normal)
|
||||
{
|
||||
this.sampleSet = sampleSet;
|
||||
|
Reference in New Issue
Block a user