mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:52:55 +08:00
Restore kiai time flashing behaviour
This commit is contained in:
parent
ae609b9d48
commit
898e2dae27
@ -174,7 +174,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
// Assuming the logo is a circle, we don't need a second dimension.
|
// Assuming the logo is a circle, we don't need a second dimension.
|
||||||
private float size;
|
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;
|
private float[] audioData;
|
||||||
|
|
||||||
|
@ -81,6 +81,8 @@ namespace osu.Game.Screens.Menu
|
|||||||
set => rippleContainer.FadeTo(value ? 1 : 0, transition_length, Easing.OutQuint);
|
set => rippleContainer.FadeTo(value ? 1 : 0, transition_length, Easing.OutQuint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private const float visualizer_default_alpha = 0.5f;
|
||||||
|
|
||||||
private readonly Box flashLayer;
|
private readonly Box flashLayer;
|
||||||
|
|
||||||
private readonly Container impactContainer;
|
private readonly Container impactContainer;
|
||||||
@ -144,6 +146,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
|
Alpha = visualizer_default_alpha,
|
||||||
Size = new Vector2(0.96f)
|
Size = new Vector2(0.96f)
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
@ -281,8 +284,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
this.Delay(early_activation).Schedule(() => sampleBeat.Play());
|
this.Delay(early_activation).Schedule(() => sampleBeat.Play());
|
||||||
|
|
||||||
logoBeatContainer
|
logoBeatContainer
|
||||||
.ScaleTo(1 - 0.02f * amplitudeAdjust, early_activation, Easing.Out)
|
.ScaleTo(1 - 0.02f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||||
.Then()
|
|
||||||
.ScaleTo(1, beatLength * 2, Easing.OutQuint);
|
.ScaleTo(1, beatLength * 2, Easing.OutQuint);
|
||||||
|
|
||||||
ripple.ClearTransforms();
|
ripple.ClearTransforms();
|
||||||
@ -295,15 +297,13 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
flashLayer.ClearTransforms();
|
flashLayer.ClearTransforms();
|
||||||
flashLayer
|
flashLayer
|
||||||
.FadeTo(0.2f * amplitudeAdjust, early_activation, Easing.Out)
|
.FadeTo(0.2f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||||
.Then()
|
|
||||||
.FadeOut(beatLength);
|
.FadeOut(beatLength);
|
||||||
|
|
||||||
visualizer.ClearTransforms();
|
visualizer.ClearTransforms();
|
||||||
visualizer
|
visualizer
|
||||||
.FadeTo(0.9f * amplitudeAdjust, early_activation, Easing.Out)
|
.FadeTo(visualizer_default_alpha * 1.8f * amplitudeAdjust, early_activation, Easing.Out).Then()
|
||||||
.Then()
|
.FadeTo(visualizer_default_alpha, beatLength);
|
||||||
.FadeTo(0.5f, beatLength);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user