mirror of
https://github.com/ppy/osu
synced 2024-12-14 19:06:07 +00: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 sampleClick;
|
||||||
private SampleChannel sampleBeat;
|
private SampleChannel sampleBeat;
|
||||||
|
private SampleChannel sampleDownbeat;
|
||||||
|
|
||||||
private readonly Container colourAndTriangles;
|
private readonly Container colourAndTriangles;
|
||||||
private readonly Triangles triangles;
|
private readonly Triangles triangles;
|
||||||
@ -259,6 +260,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
sampleClick = audio.Samples.Get(@"Menu/osu-logo-select");
|
sampleClick = audio.Samples.Get(@"Menu/osu-logo-select");
|
||||||
sampleBeat = audio.Samples.Get(@"Menu/osu-logo-heartbeat");
|
sampleBeat = audio.Samples.Get(@"Menu/osu-logo-heartbeat");
|
||||||
|
sampleDownbeat = audio.Samples.Get(@"Menu/osu-logo-downbeat");
|
||||||
|
|
||||||
logo.Texture = textures.Get(@"Menu/logo");
|
logo.Texture = textures.Get(@"Menu/logo");
|
||||||
ripple.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 (beatIndex < 0) return;
|
||||||
|
|
||||||
if (IsHovered)
|
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
|
logoBeatContainer
|
||||||
.ScaleTo(1 - 0.02f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
.ScaleTo(1 - 0.02f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||||
|
Loading…
Reference in New Issue
Block a user