1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 05:47:18 +08:00

Merge pull request #30794 from Fivoka/Adjust-beat-synced-animation-to-be-smoother-in-skip-and-break-overlay

Adjust beat synced animation to be smoother in skip and break overlay
This commit is contained in:
Dean Herbert 2024-11-21 00:27:09 +09:00 committed by GitHub
commit faa03d9a48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ namespace osu.Game.Screens.Play
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 @@ namespace osu.Game.Screens.Play
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>