mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 08:33:55 +09:00
Merge pull request #557 from peppy/update-grade-textures
Update grade textures.
This commit is contained in:
Submodule osu-resources updated: 2d8a6c1699...e674531595
@ -13,14 +13,14 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
{
|
{
|
||||||
public class DrawableRank : Container
|
public class DrawableRank : Container
|
||||||
{
|
{
|
||||||
private readonly Sprite sprite;
|
private readonly Sprite rankSprite;
|
||||||
|
|
||||||
public ScoreRank Rank { get; private set; }
|
public ScoreRank Rank { get; private set; }
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load(TextureStore textures)
|
private void load(TextureStore textures)
|
||||||
{
|
{
|
||||||
sprite.Texture = textures.Get($@"Badges/ScoreRanks/{Rank.GetDescription()}");
|
rankSprite.Texture = textures.Get($@"Grades/{Rank.GetDescription()}");
|
||||||
}
|
}
|
||||||
|
|
||||||
public DrawableRank(ScoreRank rank)
|
public DrawableRank(ScoreRank rank)
|
||||||
@ -29,10 +29,7 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
sprite = new Sprite
|
rankSprite = new Sprite { FillMode = FillMode.Fill },
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user