mirror of
https://github.com/ppy/osu
synced 2025-04-01 22:48:33 +00:00
OsuLogo beat sound
This commit is contained in:
parent
ee2c649971
commit
a991cff908
@ -37,6 +37,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
private readonly LogoVisualisation visualizer;
|
private readonly LogoVisualisation visualizer;
|
||||||
|
|
||||||
private SampleChannel sampleClick;
|
private SampleChannel sampleClick;
|
||||||
|
private SampleChannel sampleBeat;
|
||||||
|
|
||||||
private readonly Container colourAndTriangles;
|
private readonly Container colourAndTriangles;
|
||||||
|
|
||||||
@ -214,6 +215,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
private void load(TextureStore textures, AudioManager audio)
|
private void load(TextureStore textures, AudioManager audio)
|
||||||
{
|
{
|
||||||
sampleClick = audio.Sample.Get(@"Menu/menuhit");
|
sampleClick = audio.Sample.Get(@"Menu/menuhit");
|
||||||
|
sampleBeat = audio.Sample.Get(@"Menu/heartbeat");
|
||||||
logo.Texture = textures.Get(@"Menu/logo");
|
logo.Texture = textures.Get(@"Menu/logo");
|
||||||
ripple.Texture = textures.Get(@"Menu/logo");
|
ripple.Texture = textures.Get(@"Menu/logo");
|
||||||
}
|
}
|
||||||
@ -224,6 +226,9 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
|
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
|
||||||
|
|
||||||
|
if (Hovering)
|
||||||
|
sampleBeat.Play();
|
||||||
|
|
||||||
lastBeatIndex = beatIndex;
|
lastBeatIndex = beatIndex;
|
||||||
|
|
||||||
var beatLength = timingPoint.BeatLength;
|
var beatLength = timingPoint.BeatLength;
|
||||||
|
Loading…
Reference in New Issue
Block a user