mirror of https://github.com/ppy/osu
Restore kiai time flashing behaviour
This commit is contained in:
parent
ae609b9d48
commit
898e2dae27
|
@ -174,7 +174,7 @@ private class VisualisationDrawNode : DrawNode
|
|||
// Assuming the logo is a circle, we don't need a second dimension.
|
||||
private float size;
|
||||
|
||||
private static readonly Color4 transparent_white = Color4.White.Opacity(0.1f);
|
||||
private static readonly Color4 transparent_white = Color4.White.Opacity(0.2f);
|
||||
|
||||
private float[] audioData;
|
||||
|
||||
|
|
|
@ -81,6 +81,8 @@ public bool Ripple
|
|||
set => rippleContainer.FadeTo(value ? 1 : 0, transition_length, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private const float visualizer_default_alpha = 0.5f;
|
||||
|
||||
private readonly Box flashLayer;
|
||||
|
||||
private readonly Container impactContainer;
|
||||
|
@ -144,6 +146,7 @@ public OsuLogo()
|
|||
RelativeSizeAxes = Axes.Both,
|
||||
Origin = Anchor.Centre,
|
||||
Anchor = Anchor.Centre,
|
||||
Alpha = visualizer_default_alpha,
|
||||
Size = new Vector2(0.96f)
|
||||
},
|
||||
new Container
|
||||
|
@ -281,8 +284,7 @@ protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint,
|
|||
this.Delay(early_activation).Schedule(() => sampleBeat.Play());
|
||||
|
||||
logoBeatContainer
|
||||
.ScaleTo(1 - 0.02f * amplitudeAdjust, early_activation, Easing.Out)
|
||||
.Then()
|
||||
.ScaleTo(1 - 0.02f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||
.ScaleTo(1, beatLength * 2, Easing.OutQuint);
|
||||
|
||||
ripple.ClearTransforms();
|
||||
|
@ -295,15 +297,13 @@ protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint,
|
|||
{
|
||||
flashLayer.ClearTransforms();
|
||||
flashLayer
|
||||
.FadeTo(0.2f * amplitudeAdjust, early_activation, Easing.Out)
|
||||
.Then()
|
||||
.FadeTo(0.2f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||
.FadeOut(beatLength);
|
||||
|
||||
visualizer.ClearTransforms();
|
||||
visualizer
|
||||
.FadeTo(0.9f * amplitudeAdjust, early_activation, Easing.Out)
|
||||
.Then()
|
||||
.FadeTo(0.5f, beatLength);
|
||||
.FadeTo(visualizer_default_alpha * 1.8f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||
.FadeTo(visualizer_default_alpha, beatLength);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue