1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-27 04:19:54 +08:00

Use skinnable sprite

This commit is contained in:
Dean Herbert
2023-07-13 22:30:27 +09:00
Unverified
parent 1698caa078
commit 53fccaa3bd
+3 -6
View File
@@ -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")
}
};