2020-04-21 18:00:34 +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.Containers;
|
|
|
|
using osu.Framework.Graphics.Sprites;
|
|
|
|
using osu.Game.Skinning;
|
|
|
|
using osuTK;
|
|
|
|
|
2020-12-07 11:30:25 +08:00
|
|
|
namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
|
2020-04-21 18:00:34 +08:00
|
|
|
{
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class TaikoLegacyHitTarget : CompositeDrawable
|
2020-04-21 18:00:34 +08:00
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(ISkinSource skin)
|
|
|
|
{
|
|
|
|
RelativeSizeAxes = Axes.Both;
|
|
|
|
|
2024-01-25 20:02:22 +08:00
|
|
|
InternalChildren = new Drawable[]
|
2020-04-21 18:00:34 +08:00
|
|
|
{
|
2024-01-25 20:02:22 +08:00
|
|
|
new Sprite
|
2020-04-21 18:00:34 +08:00
|
|
|
{
|
2024-01-25 20:02:22 +08:00
|
|
|
Texture = skin.GetTexture("approachcircle"),
|
|
|
|
Scale = new Vector2(0.83f),
|
|
|
|
Alpha = 0.47f, // eyeballed to match stable
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
},
|
|
|
|
new Sprite
|
|
|
|
{
|
|
|
|
Texture = skin.GetTexture("taikobigcircle"),
|
|
|
|
Scale = new Vector2(0.8f),
|
|
|
|
Alpha = 0.22f, // eyeballed to match stable
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre,
|
|
|
|
},
|
2020-04-21 18:00:34 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|