mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 06:36:31 +09:00
Rename BeatmapSetOnlineStatus
to BeatmapOnlineStatus
This variable is used at more than just a set level.
This commit is contained in:
@ -122,34 +122,34 @@ namespace osu.Game.Graphics
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a colour for the given <see cref="BeatmapSetOnlineStatus"/>.
|
||||
/// Retrieves a colour for the given <see cref="BeatmapOnlineStatus"/>.
|
||||
/// A <see langword="null"/> value indicates that a "background" shade from the local <see cref="OverlayColourProvider"/>
|
||||
/// (or another fallback colour) should be used.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Sourced from web: https://github.com/ppy/osu-web/blob/007eebb1916ed5cb6a7866d82d8011b1060a945e/resources/assets/less/layout.less#L36-L50
|
||||
/// </remarks>
|
||||
public static Color4? ForBeatmapSetOnlineStatus(BeatmapSetOnlineStatus status)
|
||||
public static Color4? ForBeatmapSetOnlineStatus(BeatmapOnlineStatus status)
|
||||
{
|
||||
switch (status)
|
||||
{
|
||||
case BeatmapSetOnlineStatus.Ranked:
|
||||
case BeatmapSetOnlineStatus.Approved:
|
||||
case BeatmapOnlineStatus.Ranked:
|
||||
case BeatmapOnlineStatus.Approved:
|
||||
return Color4Extensions.FromHex(@"b3ff66");
|
||||
|
||||
case BeatmapSetOnlineStatus.Loved:
|
||||
case BeatmapOnlineStatus.Loved:
|
||||
return Color4Extensions.FromHex(@"ff66ab");
|
||||
|
||||
case BeatmapSetOnlineStatus.Qualified:
|
||||
case BeatmapOnlineStatus.Qualified:
|
||||
return Color4Extensions.FromHex(@"66ccff");
|
||||
|
||||
case BeatmapSetOnlineStatus.Pending:
|
||||
case BeatmapOnlineStatus.Pending:
|
||||
return Color4Extensions.FromHex(@"ffd966");
|
||||
|
||||
case BeatmapSetOnlineStatus.WIP:
|
||||
case BeatmapOnlineStatus.WIP:
|
||||
return Color4Extensions.FromHex(@"ff9966");
|
||||
|
||||
case BeatmapSetOnlineStatus.Graveyard:
|
||||
case BeatmapOnlineStatus.Graveyard:
|
||||
return Color4.Black;
|
||||
|
||||
default:
|
||||
|
Reference in New Issue
Block a user