Changed multiplier from 2 to 3.5

This commit is contained in:
Fivoka 2024-11-20 12:29:29 +01:00
parent fabeb6f838
commit 7726ca02b0
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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>