diff --git a/osu.Game/Screens/Play/SkipButton.cs b/osu.Game/Screens/Play/SkipButton.cs index 77ace50b29..86bbb26412 100644 --- a/osu.Game/Screens/Play/SkipButton.cs +++ b/osu.Game/Screens/Play/SkipButton.cs @@ -4,6 +4,7 @@ using System; using osu.Framework; using osu.Framework.Allocation; +using osu.Framework.Audio; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; @@ -16,6 +17,7 @@ using osu.Game.Screens.Ranking; using OpenTK; using OpenTK.Graphics; using OpenTK.Input; +using osu.Framework.Audio.Sample; namespace osu.Game.Screens.Play { @@ -184,6 +186,7 @@ namespace osu.Game.Screens.Play private FillFlowContainer flow; private Box background; private AspectContainer aspect; + private SampleChannel activationSound; public Button() { @@ -191,8 +194,10 @@ namespace osu.Game.Screens.Play } [BackgroundDependencyLoader] - private void load(OsuColour colours) + private void load(OsuColour colours, AudioManager audio) { + activationSound = audio.Sample.Get(@"Menu/menuhit"); + colourNormal = colours.Yellow; colourHover = colours.YellowDark; @@ -281,6 +286,8 @@ namespace osu.Game.Screens.Play { Action?.Invoke(); + activationSound.Play(); + box.FlashColour(Color4.White, 500, EasingTypes.OutQuint); aspect.ScaleTo(1.2f, 2000, EasingTypes.OutQuint); return true;