2020-11-01 20:25:36 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2020-11-01 20:25:36 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
using osu.Game.Graphics.Sprites;
|
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
|
using osu.Game.Screens.Ranking.Expanded.Accuracy;
|
|
|
|
|
using osuTK;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.Ranking.Expanded.Statistics
|
|
|
|
|
{
|
|
|
|
|
public class StatisticCounter : RollingCounter<int>
|
|
|
|
|
{
|
|
|
|
|
protected override double RollingDuration => AccuracyCircle.ACCURACY_TRANSFORM_DURATION;
|
|
|
|
|
|
|
|
|
|
protected override Easing RollingEasing => AccuracyCircle.ACCURACY_TRANSFORM_EASING;
|
|
|
|
|
|
|
|
|
|
protected override OsuSpriteText CreateSpriteText() => base.CreateSpriteText().With(s =>
|
|
|
|
|
{
|
|
|
|
|
s.Font = OsuFont.Torus.With(size: 20, fixedWidth: true);
|
|
|
|
|
s.Spacing = new Vector2(-2, 0);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|