1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 20:07:25 +08:00

Inline rolling duration variable

This commit is contained in:
Dean Herbert 2024-02-15 02:53:38 +08:00
parent aae431e8f6
commit c175e03600
No known key found for this signature in database

View File

@ -208,8 +208,6 @@ namespace osu.Game.Overlays.Toolbar
private partial class Counter<T> : RollingCounter<T> private partial class Counter<T> : RollingCounter<T>
where T : struct, IEquatable<T>, IFormattable where T : struct, IEquatable<T>, IFormattable
{ {
public const double ROLLING_DURATION = 1500;
public FontUsage Font { get; init; } = OsuFont.Default.With(fixedWidth: true); public FontUsage Font { get; init; } = OsuFont.Default.With(fixedWidth: true);
public string ValuePrefix public string ValuePrefix
@ -232,7 +230,7 @@ namespace osu.Game.Overlays.Toolbar
t.Spacing = new Vector2(-1.5f, 0); t.Spacing = new Vector2(-1.5f, 0);
}); });
protected override double RollingDuration => ROLLING_DURATION; protected override double RollingDuration => 1500;
} }
} }
} }