mirror of https://github.com/ppy/osu
Changed multiplier from 2 to 3.5
This commit is contained in:
parent
fabeb6f838
commit
7726ca02b0
|
@ -166,7 +166,7 @@ protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint,
|
|||
return;
|
||||
|
||||
float timeBoxTargetWidth = (float)Math.Max(0, (remainingTimeForCurrentPeriod - timingPoint.BeatLength / currentPeriod.Value.Value.Duration));
|
||||
remainingTimeBox.ResizeWidthTo(timeBoxTargetWidth, timingPoint.BeatLength * 2, Easing.OutQuint);
|
||||
remainingTimeBox.ResizeWidthTo(timeBoxTargetWidth, timingPoint.BeatLength * 3.5, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private void updateDisplay(ValueChangedEvent<Period?> period)
|
||||
|
|
|
@ -219,7 +219,7 @@ protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint,
|
|||
|
||||
float progress = (float)(gameplayClock.CurrentTime - displayTime) / (float)(fadeOutBeginTime - displayTime);
|
||||
float newWidth = 1 - Math.Clamp(progress, 0, 1);
|
||||
remainingTimeBox.ResizeWidthTo(newWidth, timingPoint.BeatLength * 2, Easing.OutQuint);
|
||||
remainingTimeBox.ResizeWidthTo(newWidth, timingPoint.BeatLength * 3.5, Easing.OutQuint);
|
||||
}
|
||||
|
||||
public partial class FadeContainer : Container, IStateful<Visibility>
|
||||
|
|
Loading…
Reference in New Issue