1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 06:47:24 +08:00

Delay order on StarCounter changed

This commit is contained in:
Adonais Romero González 2016-10-15 18:04:00 -05:00
parent 0ceb72ba42
commit 10b47859c3

View File

@ -138,10 +138,7 @@ namespace osu.Game.Graphics.UserInterface
transformStartTime = Time; transformStartTime = Time;
for (int i = 0; i < MaxStars; i++) for (int i = 0; i < MaxStars; i++)
{
stars[i].DelayReset();
transformStarQuick(i, count); transformStarQuick(i, count);
}
} }
private float getStarScale(int i, float value) private float getStarScale(int i, float value)
@ -169,13 +166,13 @@ namespace osu.Game.Graphics.UserInterface
{ {
for (int i = 0; i < MaxStars; i++) for (int i = 0; i < MaxStars; i++)
{ {
stars[i].DelayReset();
stars[i].ClearTransformations(); stars[i].ClearTransformations();
if (currentValue <= newValue) if (currentValue <= newValue)
stars[i].Delay(Math.Max(i - currentValue, 0) * animationDelay); stars[i].Delay(Math.Max(i - currentValue, 0) * animationDelay);
else else
stars[i].Delay(Math.Max(currentValue - 1 - i, 0) * animationDelay); stars[i].Delay(Math.Max(currentValue - 1 - i, 0) * animationDelay);
transformStar(i, newValue); transformStar(i, newValue);
stars[i].DelayReset();
} }
transformStartTime = Time; transformStartTime = Time;
} }