1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 15:27:24 +08:00

Rename taiko HitTarget classes to avoid conflict with mania

This commit is contained in:
Dean Herbert 2020-04-23 12:10:26 +09:00
parent aaa0f908d5
commit ca56e6c0d2
5 changed files with 11 additions and 11 deletions

View File

@ -18,8 +18,8 @@ namespace osu.Game.Rulesets.Taiko.Tests.Skinning
{
public override IReadOnlyList<Type> RequiredTypes => base.RequiredTypes.Concat(new[]
{
typeof(HitTarget),
typeof(LegacyHitTarget),
typeof(TaikoHitTarget),
typeof(TaikoLegacyHitTarget),
}).ToList();
[Cached(typeof(IScrollingInfo))]

View File

@ -10,7 +10,7 @@ using osuTK;
namespace osu.Game.Rulesets.Taiko.Skinning
{
public class LegacyHitTarget : CompositeDrawable
public class TaikoLegacyHitTarget : CompositeDrawable
{
[BackgroundDependencyLoader]
private void load(ISkinSource skin)
@ -22,7 +22,8 @@ namespace osu.Game.Rulesets.Taiko.Skinning
new Sprite
{
Texture = skin.GetTexture("approachcircle"),
Scale = new Vector2(0.73f),
RelativeSizeAxes = Axes.Both,
Size = new Vector2(0.73f) * 0.625f,
Alpha = 0.7f,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
@ -30,7 +31,8 @@ namespace osu.Game.Rulesets.Taiko.Skinning
new Sprite
{
Texture = skin.GetTexture("taikobigcircle"),
Scale = new Vector2(0.7f),
RelativeSizeAxes = Axes.Both,
Size = new Vector2(0.7f) * 0.625f,
Alpha = 0.5f,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,

View File

@ -52,7 +52,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning
case TaikoSkinComponents.HitTarget:
if (GetTexture("taikobigcircle") != null)
return new LegacyHitTarget();
return new TaikoLegacyHitTarget();
return null;
}

View File

@ -13,14 +13,14 @@ namespace osu.Game.Rulesets.Taiko.UI
/// <summary>
/// A component that is displayed at the hit position in the taiko playfield.
/// </summary>
internal class HitTarget : Container
internal class TaikoHitTarget : Container
{
/// <summary>
/// Thickness of all drawn line pieces.
/// </summary>
private const float border_thickness = 2.5f;
public HitTarget()
public TaikoHitTarget()
{
RelativeSizeAxes = Axes.Both;
@ -41,7 +41,6 @@ namespace osu.Game.Rulesets.Taiko.UI
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit,
Scale = new Vector2(TaikoHitObject.DEFAULT_STRONG_SIZE),
Masking = true,
BorderColour = Color4.White,
@ -63,7 +62,6 @@ namespace osu.Game.Rulesets.Taiko.UI
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
RelativeSizeAxes = Axes.Both,
FillMode = FillMode.Fit,
Scale = new Vector2(TaikoHitObject.DEFAULT_SIZE),
Masking = true,
BorderColour = Color4.White,

View File

@ -99,7 +99,7 @@ namespace osu.Game.Rulesets.Taiko.UI
FillMode = FillMode.Fit,
Blending = BlendingParameters.Additive,
},
HitTarget = new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.HitTarget), _ => new HitTarget())
HitTarget = new SkinnableDrawable(new TaikoSkinComponent(TaikoSkinComponents.HitTarget), _ => new TaikoHitTarget())
{
Anchor = Anchor.CentreLeft,
Origin = Anchor.Centre,