mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 21:25:36 +08:00
Fixed logo heartbeat playing even without beating
This commit is contained in:
parent
7e5b920c92
commit
817d2c3da1
@ -227,9 +227,6 @@ 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;
|
||||||
@ -238,6 +235,9 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
if (beatIndex < 0) return;
|
if (beatIndex < 0) return;
|
||||||
|
|
||||||
|
if (Hovering)
|
||||||
|
sampleBeat.Play();
|
||||||
|
|
||||||
logoBeatContainer.ScaleTo(1 - 0.02f * amplitudeAdjust, beat_in_time, EasingTypes.Out);
|
logoBeatContainer.ScaleTo(1 - 0.02f * amplitudeAdjust, beat_in_time, EasingTypes.Out);
|
||||||
using (logoBeatContainer.BeginDelayedSequence(beat_in_time))
|
using (logoBeatContainer.BeginDelayedSequence(beat_in_time))
|
||||||
logoBeatContainer.ScaleTo(1, beatLength * 2, EasingTypes.OutQuint);
|
logoBeatContainer.ScaleTo(1, beatLength * 2, EasingTypes.OutQuint);
|
||||||
|
Loading…
Reference in New Issue
Block a user