1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-03 22:02:57 +08:00

Adjust easings and reduce character spacing slightly

This commit is contained in:
Dean Herbert 2024-07-26 21:43:23 +09:00
parent 19affa7062
commit a870722ea6
No known key found for this signature in database

View File

@ -113,11 +113,26 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
private partial class TotalRollingCounter : RollingCounter<long> private partial class TotalRollingCounter : RollingCounter<long>
{ {
protected override double RollingDuration => 400; protected override double RollingDuration => 1000;
protected override Easing RollingEasing => Easing.OutPow10;
protected override bool IsRollingProportional => true;
protected override double GetProportionalDuration(long currentValue, long newValue)
{
long change = Math.Abs(newValue - currentValue);
if (change < 10)
return 0;
return Math.Min(6000, RollingDuration * Math.Sqrt(change) / 100);
}
protected override OsuSpriteText CreateSpriteText() => new OsuSpriteText protected override OsuSpriteText CreateSpriteText() => new OsuSpriteText
{ {
Font = OsuFont.Default.With(size: 80f, fixedWidth: true), Font = OsuFont.Default.With(size: 80f, fixedWidth: true),
Spacing = new Vector2(-2, 0)
}; };
protected override LocalisableString FormatCount(long count) => count.ToLocalisableString(@"N0"); protected override LocalisableString FormatCount(long count) => count.ToLocalisableString(@"N0");