mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 07:42:57 +08:00
Merge branch 'new-heartbeat-sounds' into update-resources
This commit is contained in:
commit
da31048803
@ -45,6 +45,7 @@ namespace osu.Game.Screens.Menu
|
||||
|
||||
private SampleChannel sampleClick;
|
||||
private SampleChannel sampleBeat;
|
||||
private SampleChannel sampleDownbeat;
|
||||
|
||||
private readonly Container colourAndTriangles;
|
||||
private readonly Triangles triangles;
|
||||
@ -259,6 +260,7 @@ namespace osu.Game.Screens.Menu
|
||||
{
|
||||
sampleClick = audio.Samples.Get(@"Menu/osu-logo-select");
|
||||
sampleBeat = audio.Samples.Get(@"Menu/osu-logo-heartbeat");
|
||||
sampleDownbeat = audio.Samples.Get(@"Menu/osu-logo-downbeat");
|
||||
|
||||
logo.Texture = textures.Get(@"Menu/logo");
|
||||
ripple.Texture = textures.Get(@"Menu/logo");
|
||||
@ -281,7 +283,15 @@ namespace osu.Game.Screens.Menu
|
||||
if (beatIndex < 0) return;
|
||||
|
||||
if (IsHovered)
|
||||
this.Delay(early_activation).Schedule(() => sampleBeat.Play());
|
||||
{
|
||||
this.Delay(early_activation).Schedule(() =>
|
||||
{
|
||||
if (beatIndex % (int)timingPoint.TimeSignature == 0)
|
||||
sampleDownbeat.Play();
|
||||
else
|
||||
sampleBeat.Play();
|
||||
});
|
||||
}
|
||||
|
||||
logoBeatContainer
|
||||
.ScaleTo(1 - 0.02f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||
|
Loading…
Reference in New Issue
Block a user