mirror of
https://github.com/ppy/osu
synced 2024-12-12 09:58:22 +00:00
Fix drawable rank texture lookup
This commit is contained in:
parent
30d4dd9355
commit
ae51a9e451
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user