mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 20:32:55 +08:00
Fix weird RollingCounter behaviour.
This commit is contained in:
parent
4aadd3a8f8
commit
f8c6ce15c3
@ -108,8 +108,6 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
Flush(false, TransformType);
|
|
||||||
|
|
||||||
DisplayedCountSpriteText.Text = FormatCount(Current);
|
DisplayedCountSpriteText.Text = FormatCount(Current);
|
||||||
DisplayedCountSpriteText.Anchor = Anchor;
|
DisplayedCountSpriteText.Anchor = Anchor;
|
||||||
DisplayedCountSpriteText.Origin = Origin;
|
DisplayedCountSpriteText.Origin = Origin;
|
||||||
@ -205,8 +203,8 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
? GetProportionalDuration(currentValue, newValue)
|
? GetProportionalDuration(currentValue, newValue)
|
||||||
: RollingDuration;
|
: RollingDuration;
|
||||||
|
|
||||||
transform.StartTime = Time.Current;
|
transform.StartTime = TransformStartTime;
|
||||||
transform.EndTime = Time.Current + rollingTotalDuration;
|
transform.EndTime = TransformStartTime + rollingTotalDuration;
|
||||||
transform.StartValue = currentValue;
|
transform.StartValue = currentValue;
|
||||||
transform.EndValue = newValue;
|
transform.EndValue = newValue;
|
||||||
transform.Easing = RollingEasing;
|
transform.Easing = RollingEasing;
|
||||||
|
Loading…
Reference in New Issue
Block a user