Fix drawable rank texture lookup

This commit is contained in:
Dean Herbert 2019-04-22 09:57:33 +09:00
parent 30d4dd9355
commit ae51a9e451

View File

@ -43,7 +43,21 @@ namespace osu.Game.Online.Leaderboards
private void updateTexture()
{
rankSprite.Texture = textures.Get($@"Grades/{Rank.GetDescription()}");
string textureName;
switch (Rank)
{
default:
textureName = Rank.GetDescription();
break;
case ScoreRank.SH:
textureName = "SPlus";
break;
case ScoreRank.XH:
textureName = "SSPlus";
break;
}
rankSprite.Texture = textures.Get($@"Grades/{textureName}");
}
public void UpdateRank(ScoreRank newRank)