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:
commit
faa03d9a48
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user