1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 21:02:55 +08:00

Change middle text to only animate initially

This commit is contained in:
Dean Herbert 2024-08-28 15:57:42 +09:00
parent 47a52d10eb
commit eb70a1b72d
No known key found for this signature in database

View File

@ -144,12 +144,7 @@ namespace osu.Game.Screens.Play
{
base.Update();
if (currentPeriod.Value != null)
{
remainingTimeBox.Height = Math.Min(8, remainingTimeBox.DrawWidth);
remainingTimeCounter.X = -(remainingTimeForCurrentPeriod - 0.5f) * 30;
info.X = (remainingTimeForCurrentPeriod - 0.5f) * 30;
}
}
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, ChannelAmplitudes amplitudes)
@ -187,6 +182,12 @@ namespace osu.Game.Screens.Play
remainingTimeCounter.CountTo(b.Duration).CountTo(0, b.Duration);
remainingTimeCounter.MoveToX(-50)
.MoveToX(0, BREAK_FADE_DURATION, Easing.OutQuint);
info.MoveToX(50)
.MoveToX(0, BREAK_FADE_DURATION, Easing.OutQuint);
using (BeginDelayedSequence(b.Duration - BREAK_FADE_DURATION))
{
fadeContainer.FadeOut(BREAK_FADE_DURATION);