mirror of
https://github.com/ppy/osu.git
synced 2024-12-16 17:42:54 +08:00
Change middle text to only animate initially
This commit is contained in:
parent
47a52d10eb
commit
eb70a1b72d
@ -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;
|
||||
}
|
||||
remainingTimeBox.Height = Math.Min(8, remainingTimeBox.DrawWidth);
|
||||
}
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user