From 53fccaa3bd5afeb5413b3cb1537c8808bb386f5a Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 13 Jul 2023 22:30:27 +0900 Subject: [PATCH] Use skinnable sprite --- osu.Game/Screens/Menu/StarFountain.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/osu.Game/Screens/Menu/StarFountain.cs b/osu.Game/Screens/Menu/StarFountain.cs index e8feba4451..f891e989bb 100644 --- a/osu.Game/Screens/Menu/StarFountain.cs +++ b/osu.Game/Screens/Menu/StarFountain.cs @@ -5,9 +5,8 @@ using osu.Framework.Allocation; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Pooling; -using osu.Framework.Graphics.Sprites; -using osu.Framework.Graphics.Textures; using osu.Framework.Utils; +using osu.Game.Skinning; using osuTK; namespace osu.Game.Screens.Menu @@ -64,20 +63,18 @@ namespace osu.Game.Screens.Menu private float rotation; [BackgroundDependencyLoader] - private void load(TextureStore textures) + private void load() { AutoSizeAxes = Axes.Both; Origin = Anchor.Centre; InternalChildren = new Drawable[] { - new Sprite + new SkinnableSprite("star2") { Anchor = Anchor.Centre, Origin = Anchor.Centre, Blending = BlendingParameters.Additive, - Scale = new Vector2(0.5f), - Texture = textures.Get("Menu/fountain-star") } };