diff --git a/osu.Desktop.VisualTests/Tests/TestCaseLeaderboard.cs b/osu.Desktop.VisualTests/Tests/TestCaseLeaderboard.cs index 18710432bf..ad3249081b 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseLeaderboard.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseLeaderboard.cs @@ -155,7 +155,7 @@ private void newScores() }, new Score { - Rank = ScoreRank.D, + Rank = ScoreRank.F, Accuracy = 100, MaxCombo = 244, TotalScore = 1707827, diff --git a/osu.Game/Modes/ScoreRank.cs b/osu.Game/Modes/ScoreRank.cs index d25fe8ab1f..98e4eda6ff 100644 --- a/osu.Game/Modes/ScoreRank.cs +++ b/osu.Game/Modes/ScoreRank.cs @@ -7,31 +7,13 @@ namespace osu.Game.Modes { public enum ScoreRank { - [Description(@"F")] F, - - [Description(@"F")] - D, - - [Description(@"C")] C, - - [Description(@"B")] B, - - [Description(@"A")] A, - - [Description(@"S")] S, - - [Description(@"SPlus")] SPlus, - - [Description(@"SS")] SS, - - [Description(@"SSPlus")] SSPlus, } } diff --git a/osu.Game/Screens/Select/Leaderboards/DrawableRank.cs b/osu.Game/Screens/Select/Leaderboards/DrawableRank.cs index 23f33a205b..1c96a4363e 100644 --- a/osu.Game/Screens/Select/Leaderboards/DrawableRank.cs +++ b/osu.Game/Screens/Select/Leaderboards/DrawableRank.cs @@ -8,6 +8,7 @@ using osu.Framework.Graphics.Textures; using osu.Framework.Extensions; using osu.Game.Modes; +using System; namespace osu.Game.Screens.Select.Leaderboards { @@ -24,7 +25,7 @@ public ScoreRank Rank { if (value == rank) return; rank = value; - sprite.Texture = textures.Get($@"Badges/ScoreRanks/{rank.GetDescription()}"); + sprite.Texture = textures.Get($@"Badges/ScoreRanks/{Enum.GetName(typeof(ScoreRank), rank)}"); } } @@ -32,7 +33,7 @@ public ScoreRank Rank private void load(TextureStore ts) { textures = ts; - sprite.Texture = textures.Get($@"Badges/ScoreRanks/{rank.GetDescription()}"); + sprite.Texture = textures.Get($@"Badges/ScoreRanks/{Enum.GetName(typeof(ScoreRank), rank)}"); } public DrawableRank(ScoreRank rank)