diff --git a/osu.Game/Screens/Menu/OsuLogo.cs b/osu.Game/Screens/Menu/OsuLogo.cs index 25f6f4055e..c18659b445 100644 --- a/osu.Game/Screens/Menu/OsuLogo.cs +++ b/osu.Game/Screens/Menu/OsuLogo.cs @@ -4,6 +4,8 @@ using System; using System.Diagnostics; using osu.Framework.Allocation; +using osu.Framework.Audio; +using osu.Framework.Audio.Sample; using osu.Framework.Graphics; using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Containers; @@ -32,6 +34,8 @@ public partial class OsuLogo : Container private Container logoHoverContainer; private MenuVisualisation vis; + private AudioSample sampleClick; + private Container colourAndTriangles; public Action Action; @@ -166,8 +170,9 @@ public OsuLogo() } [BackgroundDependencyLoader] - private void load(TextureStore textures) + private void load(TextureStore textures, AudioManager audio) { + sampleClick = audio.Sample.Get(@"Menu/menuhit"); logo.Texture = textures.Get(@"Menu/logo"); ripple.Texture = textures.Get(@"Menu/logo"); } @@ -200,6 +205,8 @@ protected override bool OnClick(InputState state) { if (!Interactive) return false; + sampleClick.Play(); + flashLayer.ClearTransformations(); flashLayer.Alpha = 0.4f; flashLayer.FadeOut(1500, EasingTypes.OutExpo);