1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 06:03:08 +08:00

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
No known key found for this signature in database
GPG Key ID: 2ACFA8B6370B8C8C
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)
});
}

View File

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