Skip to content

Commit

Permalink
Make slide chevron skinnable
Browse files Browse the repository at this point in the history
  • Loading branch information
LumpBloom7 committed Oct 1, 2022
1 parent 7abcb87 commit 9afba55
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using osu.Framework.Graphics.Pooling;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Textures;
using osu.Game.Skinning;

namespace osu.Game.Rulesets.Sentakki.Skinning.Default.Slides
{
public class SlideChevron : PoolableDrawable, ISlideChevron
Expand All @@ -18,12 +20,12 @@ public SlideChevron()
[BackgroundDependencyLoader]
private void load(TextureStore textures)
{
AddInternal(new Sprite
AddInternal(new SkinnableDrawable(new SentakkiSkinComponent(SentakkiSkinComponents.SlideChevron), _ => new Sprite
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Texture = textures.Get("slide"),
});
}));
}

protected override void FreeAfterUse()
Expand Down

0 comments on commit 9afba55

Please sign in to comment.