2018-01-05 19:21:19 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-05-22 14:11:42 +08:00
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using OpenTK.Graphics;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
|
|
|
|
namespace osu.Game.Users
|
|
|
|
{
|
|
|
|
public abstract class UserStatus
|
|
|
|
{
|
|
|
|
public abstract string Message { get; }
|
2017-05-22 23:37:19 +08:00
|
|
|
public abstract Color4 GetAppropriateColour(OsuColour colours);
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract class UserStatusAvailable : UserStatus
|
|
|
|
{
|
2017-05-22 23:37:19 +08:00
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.BlueDarker;
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public abstract class UserStatusBusy : UserStatus
|
|
|
|
{
|
2017-05-22 23:37:19 +08:00
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.YellowDark;
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
|
|
|
|
2017-05-22 23:37:19 +08:00
|
|
|
public class UserStatusOffline : UserStatus
|
|
|
|
{
|
2017-05-22 14:37:36 +08:00
|
|
|
public override string Message => @"Offline";
|
2017-05-22 23:37:19 +08:00
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.Gray7;
|
2017-05-22 14:32:02 +08:00
|
|
|
}
|
|
|
|
|
2017-05-22 14:11:42 +08:00
|
|
|
public class UserStatusOnline : UserStatusAvailable
|
|
|
|
{
|
|
|
|
public override string Message => @"Online";
|
|
|
|
}
|
|
|
|
|
|
|
|
public class UserStatusSpectating : UserStatusAvailable
|
|
|
|
{
|
2017-05-22 14:37:36 +08:00
|
|
|
public override string Message => @"Spectating a game";
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class UserStatusInLobby : UserStatusAvailable
|
|
|
|
{
|
2017-05-22 14:37:36 +08:00
|
|
|
public override string Message => @"in Multiplayer Lobby";
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class UserStatusSoloGame : UserStatusBusy
|
|
|
|
{
|
2017-05-22 14:37:36 +08:00
|
|
|
public override string Message => @"Solo Game";
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
|
|
|
|
2017-06-08 14:48:42 +08:00
|
|
|
public class UserStatusMultiplayerGame : UserStatusBusy
|
2017-05-22 14:11:42 +08:00
|
|
|
{
|
2017-05-22 14:37:36 +08:00
|
|
|
public override string Message => @"Multiplaying";
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public class UserStatusModding : UserStatus
|
|
|
|
{
|
2017-05-22 14:37:36 +08:00
|
|
|
public override string Message => @"Modding a map";
|
2017-05-22 23:37:19 +08:00
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.PurpleDark;
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|
2017-05-25 09:26:48 +08:00
|
|
|
|
2017-05-25 08:09:18 +08:00
|
|
|
public class UserStatusDoNotDisturb : UserStatus
|
|
|
|
{
|
|
|
|
public override string Message => @"Do not disturb";
|
|
|
|
public override Color4 GetAppropriateColour(OsuColour colours) => colours.RedDark;
|
|
|
|
}
|
2017-05-22 14:11:42 +08:00
|
|
|
}
|