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
{
2024-05-27 13:20:28 +08:00
/// <summary>
/// In stable this is 0.7f (see https://github.com/peppy/osu-stable-reference/blob/7519cafd1823f1879c0d9c991ba0e5c7fd3bfa02/osu!/GameModes/Play/Rulesets/Taiko/RulesetTaiko.cs#L592)
/// but for whatever reason this doesn't match visually.
/// </summary>
public const float SCALE = 0.8f ;
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" ) ,
2024-05-27 13:20:28 +08:00
Scale = new Vector2 ( SCALE + 0.03f ) ,
2024-01-25 20:02:22 +08:00
Alpha = 0.47f , // eyeballed to match stable
Anchor = Anchor . Centre ,
Origin = Anchor . Centre ,
} ,
new Sprite
{
Texture = skin . GetTexture ( "taikobigcircle" ) ,
2024-05-27 13:20:28 +08:00
Scale = new Vector2 ( SCALE ) ,
2024-01-25 20:02:22 +08:00
Alpha = 0.22f , // eyeballed to match stable
Anchor = Anchor . Centre ,
Origin = Anchor . Centre ,
} ,
2020-04-21 18:00:34 +08:00
} ;
}
}
}