mirror of
https://github.com/osukey/osukey.git
synced 2025-05-05 21:57:24 +09:00
Revert highlighting recent scores
This commit is contained in:
parent
31b7ce053d
commit
262751a98a
@ -390,28 +390,13 @@ namespace osu.Game.Online.Leaderboards
|
|||||||
|
|
||||||
private class DateLabel : DrawableDate
|
private class DateLabel : DrawableDate
|
||||||
{
|
{
|
||||||
public static readonly Colour4 COLOUR_SATURATED = Colour4.Lime;
|
|
||||||
public static readonly Colour4 COLOUR_UNSATURATED = Colour4.White;
|
|
||||||
|
|
||||||
public DateLabel(DateTimeOffset date)
|
public DateLabel(DateTimeOffset date)
|
||||||
: base(date)
|
: base(date)
|
||||||
{
|
{
|
||||||
Font = OsuFont.GetFont(size: 17, weight: FontWeight.Bold, italics: true);
|
Font = OsuFont.GetFont(size: 17, weight: FontWeight.Bold, italics: true);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override string Format()
|
protected override string Format() => ScoreboardTimeUtils.FormatDate(Date, TimeSpan.FromSeconds(30));
|
||||||
{
|
|
||||||
var now = DateTime.Now;
|
|
||||||
var difference = now - Date;
|
|
||||||
|
|
||||||
const double seconds_to_blank = 60 * 45;
|
|
||||||
const double tense_factor = 2.325;
|
|
||||||
|
|
||||||
double tf = Math.Pow(difference.TotalSeconds / seconds_to_blank, tense_factor);
|
|
||||||
Colour = Interpolation.ValueAt(tf, COLOUR_SATURATED, COLOUR_UNSATURATED, 0, 1);
|
|
||||||
|
|
||||||
return ScoreboardTimeUtils.FormatDate(Date, TimeSpan.FromSeconds(30));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public class LeaderboardScoreStatistic
|
public class LeaderboardScoreStatistic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user