2019-01-24 08:43:03 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
2018-11-20 07:51:59 +00:00
|
|
|
using osuTK.Graphics;
|
2018-04-13 09:19:50 +00:00
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Users
|
|
|
|
{
|
|
|
|
public abstract class UserStatus
|
|
|
|
{
|
|
|
|
public abstract string Message { get; }
|
|
|
|
public abstract Color4 GetAppropriateColour(OsuColour colours);
|
|
|
|
}
|
|
|
|
|
2018-04-26 10:57:24 +00:00
|
|
|
public class UserStatusOnline : UserStatus
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
2018-04-26 10:57:24 +00:00
|
|
|
public override string Message => @"Online";
|
2018-04-13 09:19:50 +00:00
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.BlueDarker;
|
|
|
|
}
|
|
|
|
|
2018-04-26 10:57:24 +00:00
|
|
|
public abstract class UserStatusBusy : UserStatusOnline
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.YellowDark;
|
|
|
|
}
|
|
|
|
|
|
|
|
public class UserStatusOffline : UserStatus
|
|
|
|
{
|
|
|
|
public override string Message => @"Offline";
|
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.Gray7;
|
|
|
|
}
|
|
|
|
|
2019-05-02 17:44:07 +00:00
|
|
|
public class UserStatusDoNotDisturb : UserStatus
|
2018-04-13 09:19:50 +00:00
|
|
|
{
|
|
|
|
public override string Message => @"Do not disturb";
|
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.RedDark;
|
|
|
|
}
|
|
|
|
}
|