Update home button

This commit is contained in:
Dean Herbert
2020-09-03 16:28:53 +09:00
parent 942276d88f
commit 98c5a04a09
3 changed files with 19 additions and 13 deletions

View File

@ -35,6 +35,15 @@ namespace osu.Game.Overlays.Toolbar
IconContainer.Show();
}
[Resolved]
private TextureStore textures { get; set; }
public void SetIcon(string texture) =>
SetIcon(new Sprite
{
Texture = textures.Get(texture),
});
public string Text
{
get => DrawableText.Text;