mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 01:02:56 +08:00
Initial implementation
This commit is contained in:
parent
f15df51514
commit
03d560ed41
@ -87,7 +87,12 @@ namespace osu.Game.Overlays.Profile.Header
|
|||||||
|
|
||||||
addSpacer(topLinkContainer);
|
addSpacer(topLinkContainer);
|
||||||
|
|
||||||
if (user.LastVisit.HasValue)
|
if (user.IsOnline)
|
||||||
|
{
|
||||||
|
topLinkContainer.AddText("Currently online");
|
||||||
|
addSpacer(topLinkContainer);
|
||||||
|
}
|
||||||
|
else if(user.LastVisit.HasValue)
|
||||||
{
|
{
|
||||||
topLinkContainer.AddText("Last seen ");
|
topLinkContainer.AddText("Last seen ");
|
||||||
topLinkContainer.AddText(new DrawableDate(user.LastVisit.Value), embolden);
|
topLinkContainer.AddText(new DrawableDate(user.LastVisit.Value), embolden);
|
||||||
|
@ -78,6 +78,9 @@ namespace osu.Game.Users
|
|||||||
[JsonProperty(@"is_active")]
|
[JsonProperty(@"is_active")]
|
||||||
public bool Active;
|
public bool Active;
|
||||||
|
|
||||||
|
[JsonProperty(@"is_online")]
|
||||||
|
public bool IsOnline;
|
||||||
|
|
||||||
[JsonProperty(@"pm_friends_only")]
|
[JsonProperty(@"pm_friends_only")]
|
||||||
public bool PMFriendsOnly;
|
public bool PMFriendsOnly;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user