mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:17:23 +08:00
Add UserStatusOffline
This commit is contained in:
parent
a73cf92994
commit
aa40f88258
@ -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(); });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user