mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 00:09:55 +09:00
added custom hoverclicksounds so links make sounds on hover&click
This commit is contained in:
@ -16,6 +16,8 @@ namespace osu.Game.Graphics.Containers
|
||||
|
||||
protected override Container<Drawable> Content => content;
|
||||
|
||||
protected virtual HoverClickSounds CreateHoverClickSounds(HoverSampleSet sampleSet) => new HoverClickSounds(sampleSet);
|
||||
|
||||
public OsuClickableContainer(HoverSampleSet sampleSet = HoverSampleSet.Normal)
|
||||
{
|
||||
this.sampleSet = sampleSet;
|
||||
@ -33,7 +35,7 @@ namespace osu.Game.Graphics.Containers
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
content,
|
||||
new HoverClickSounds(sampleSet)
|
||||
CreateHoverClickSounds(sampleSet)
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user