Add hover/select sounds to directory/file selector components

This commit is contained in:
Jamie Taylor
2021-07-21 22:01:00 +09:00
parent cd54653977
commit e3d1868af5
2 changed files with 14 additions and 4 deletions

View File

@ -9,6 +9,7 @@ using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Graphics.Sprites;
using osu.Game.Graphics.UserInterface;
namespace osu.Game.Graphics.UserInterfaceV2
{
@ -25,9 +26,13 @@ namespace osu.Game.Graphics.UserInterfaceV2
Flow.AutoSizeAxes = Axes.X;
Flow.Height = OsuDirectorySelector.ITEM_HEIGHT;
AddInternal(new Background
AddRangeInternal(new Drawable[]
{
Depth = 1
new Background
{
Depth = 1
},
new HoverClickSounds(HoverSampleSet.Soft)
});
}