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:
parent
19affa7062
commit
a870722ea6
@ -113,11 +113,26 @@ namespace osu.Game.Screens.OnlinePlay.DailyChallenge
|
||||
|
||||
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
|
||||
{
|
||||
Font = OsuFont.Default.With(size: 80f, fixedWidth: true),
|
||||
Spacing = new Vector2(-2, 0)
|
||||
};
|
||||
|
||||
protected override LocalisableString FormatCount(long count) => count.ToLocalisableString(@"N0");
|
||||
|
Loading…
Reference in New Issue
Block a user