mirror of
https://github.com/osukey/osukey.git
synced 2025-05-07 22:57:31 +09: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()
|
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)
|
public void UpdateRank(ScoreRank newRank)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user