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:
parent
961702aadf
commit
05b0564381
@ -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";
|
||||
|
14
osu.Game/Graphics/DrawableJoinDate.cs
Normal file
14
osu.Game/Graphics/DrawableJoinDate.cs
Normal 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user