1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-25 05:42:55 +08:00
osu-lazer/osu.Game.Rulesets.Taiko/Skinning/Legacy/LegacySwellCirclePiece.cs

24 lines
835 B
C#
Raw Normal View History

2022-12-11 09:17:50 +08:00
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Allocation;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Skinning;
using osuTK;
namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
{
internal partial class LegacySwellCirclePiece : Sprite
{
[BackgroundDependencyLoader]
private void load(ISkinSource skin, SkinManager skinManager)
{
Texture = skin.GetTexture("spinner-warning") ?? skinManager.DefaultClassicSkin.GetTexture("spinner-circle");
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
Scale = skin.GetTexture("spinner-warning") != null ? Vector2.One : new Vector2(0.18f);
}
}
}