mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 17:13:06 +08:00
Delay order on StarCounter changed
This commit is contained in:
parent
0ceb72ba42
commit
10b47859c3
@ -138,11 +138,8 @@ 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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user