Rename ScoreRanks to be in line with current API.

This commit is contained in:
Dean Herbert
2017-03-15 13:55:29 +09:00
parent 253bcebf51
commit d96a78459d
3 changed files with 21 additions and 9 deletions

View File

@ -7,7 +7,7 @@ using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Modes;
using System;
using osu.Framework.Extensions;
namespace osu.Game.Screens.Select.Leaderboards
{
@ -24,7 +24,7 @@ namespace osu.Game.Screens.Select.Leaderboards
{
if (value == rank) return;
rank = value;
sprite.Texture = textures.Get($@"Badges/ScoreRanks/{Enum.GetName(typeof(ScoreRank), rank)}");
sprite.Texture = textures.Get($@"Badges/ScoreRanks/{rank.GetDescription()}");
}
}
@ -32,7 +32,7 @@ namespace osu.Game.Screens.Select.Leaderboards
private void load(TextureStore ts)
{
textures = ts;
sprite.Texture = textures.Get($@"Badges/ScoreRanks/{Enum.GetName(typeof(ScoreRank), rank)}");
sprite.Texture = textures.Get($@"Badges/ScoreRanks/{rank.GetDescription()}");
}
public DrawableRank(ScoreRank rank)