mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 11:42:54 +08:00
Fix star counter decrease animation being delayed when current is over displayed star count
This commit is contained in:
parent
6e8d8b977e
commit
7a74eaa2de
@ -115,7 +115,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
|
|
||||||
star.ClearTransforms(true);
|
star.ClearTransforms(true);
|
||||||
|
|
||||||
double delay = Math.Max(current <= newValue ? i - current : current - 1 - i, 0) * AnimationDelay;
|
double delay = Math.Max(current <= newValue ? i - current : Math.Min(current, StarCount) - 1 - i, 0) * AnimationDelay;
|
||||||
|
|
||||||
using (star.BeginDelayedSequence(delay))
|
using (star.BeginDelayedSequence(delay))
|
||||||
star.DisplayAt(getStarScale(i, newValue));
|
star.DisplayAt(getStarScale(i, newValue));
|
||||||
|
Loading…
Reference in New Issue
Block a user