mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 16:27:26 +08:00
Make accuracy fixed width and improve feel.
This commit is contained in:
parent
1a31589abd
commit
78c9348b5a
@ -20,8 +20,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
{
|
||||
protected override Type TransformType => typeof(TransformAccuracy);
|
||||
|
||||
protected override double RollingDuration => 150;
|
||||
protected override bool IsRollingProportional => true;
|
||||
protected override double RollingDuration => 750;
|
||||
|
||||
private float epsilon => 1e-10f;
|
||||
|
||||
@ -32,6 +31,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
|
||||
public PercentageCounter()
|
||||
{
|
||||
DisplayedCountSpriteText.FixedWidth = true;
|
||||
Count = 1.0f;
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// <summary>
|
||||
/// Easing for the counter rollover animation.
|
||||
/// </summary>
|
||||
protected virtual EasingTypes RollingEasing => EasingTypes.Out;
|
||||
protected virtual EasingTypes RollingEasing => EasingTypes.OutQuint;
|
||||
|
||||
private T displayedCount;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user