1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-06 06:17:23 +08:00

Add UserStatusOffline

This commit is contained in:
DrabWeb 2017-05-22 03:32:02 -03:00
parent a73cf92994
commit aa40f88258
2 changed files with 7 additions and 0 deletions

View File

@ -51,6 +51,7 @@ namespace osu.Desktop.VisualTests.Tests
AddStep(@"spectating", () => { flyte.Status.Value = new UserStatusSpectating(); });
AddStep(@"multiplaying", () => { flyte.Status.Value = new UserStatusMultiplayerGame(); });
AddStep(@"modding", () => { flyte.Status.Value = new UserStatusModding(); });
AddStep(@"offline", () => { flyte.Status.Value = new UserStatusOffline(); });
}
}
}

View File

@ -22,6 +22,12 @@ namespace osu.Game.Users
public override Color4 Colour(OsuColour colours) => colours.YellowDark;
}
public class UserStatusOffline : UserStatus
{
public override string Message => @"Offline";
public override Color4 Colour(OsuColour colours) => colours.Gray7;
}
public class UserStatusOnline : UserStatusAvailable
{
public override string Message => @"Online";