1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 17:47:18 +08:00

Create DrawableJoinDate somehow and remove dateFormat argument

This commit is contained in:
HoutarouOreki 2018-05-25 13:30:29 +02:00
parent 961702aadf
commit 05b0564381
3 changed files with 17 additions and 3 deletions

View File

@ -17,7 +17,7 @@ namespace osu.Game.Graphics
/// <param name="dateFormat">The string to format the date text with.
/// May be null if the humanized format should be used.</param>
public DrawableDate(DateTimeOffset date, string dateFormat = null)
public DrawableDate(DateTimeOffset date)
{
AutoSizeAxes = Axes.Both;
Font = "Exo2.0-RegularItalic";

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace osu.Game.Graphics
{
public class DrawableJoinDate : DrawableDate
{
public DrawableJoinDate(DateTimeOffset date) : base(date)
{
}
}
}

View File

@ -364,12 +364,12 @@ namespace osu.Game.Overlays.Profile
else
{
infoTextLeft.AddText("Joined ", lightText);
infoTextLeft.AddText(new DrawableDate(user.JoinDate, "{0:MMMM yyyy}"), boldItalic);
infoTextLeft.AddText(new DrawableDate(user.JoinDate), boldItalic);
}
infoTextLeft.NewLine();
infoTextLeft.AddText("Last seen ", lightText);
infoTextLeft.AddText(new DrawableDate(user.LastVisit, null), boldItalic);
infoTextLeft.AddText(new DrawableDate(user.LastVisit), boldItalic);
infoTextLeft.NewParagraph();
if (user.PlayStyle?.Length > 0)