2020-04-21 10:00:34 +00: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 03:30:25 +00:00
namespace osu.Game.Rulesets.Taiko.Skinning.Legacy
2020-04-21 10:00:34 +00:00
{
2020-04-23 03:10:26 +00:00
public partial class TaikoLegacyHitTarget : CompositeDrawable
2020-04-21 10:00:34 +00:00
{
2024-05-27 05:20:28 +00: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 10:00:34 +00:00
[BackgroundDependencyLoader]
private void load ( ISkinSource skin )
{
RelativeSizeAxes = Axes . Both ;
2024-01-25 12:02:22 +00:00
InternalChildren = new Drawable [ ]
2020-04-21 10:00:34 +00:00
{
2024-01-25 12:02:22 +00:00
new Sprite
2020-04-21 10:00:34 +00:00
{
2024-01-25 12:02:22 +00:00
Texture = skin . GetTexture ( "approachcircle" ) ,
2024-05-27 05:20:28 +00:00
Scale = new Vector2 ( SCALE + 0.03f ) ,
2024-01-25 12:02:22 +00:00
Alpha = 0.47f , // eyeballed to match stable
Anchor = Anchor . Centre ,
Origin = Anchor . Centre ,
} ,
new Sprite
{
Texture = skin . GetTexture ( "taikobigcircle" ) ,
2024-05-27 05:20:28 +00:00
Scale = new Vector2 ( SCALE ) ,
2024-01-25 12:02:22 +00:00
Alpha = 0.22f , // eyeballed to match stable
Anchor = Anchor . Centre ,
Origin = Anchor . Centre ,
} ,
2020-04-21 10:00:34 +00:00
} ;
}
}
}