Add drum roll implementation

This commit is contained in:
Dean Herbert 2022-11-07 15:07:47 +09:00
parent 6636545195
commit f1556c98e3
3 changed files with 37 additions and 1 deletions

View File

@ -0,0 +1,33 @@
// 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.Colour;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Taiko.Skinning.Argon
{
public class ArgonElongatedCirclePiece : ArgonCirclePiece
{
public ArgonElongatedCirclePiece()
{
RelativeSizeAxes = Axes.Y;
}
[BackgroundDependencyLoader]
private void load()
{
AccentColour = ColourInfo.GradientVertical(
new Color4(241, 161, 0, 255),
new Color4(167, 111, 0, 255)
);
}
protected override void Update()
{
base.Update();
Width = Parent.DrawSize.X + DrawHeight;
}
}
}

View File

@ -34,7 +34,7 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Argon
protected override void Update() protected override void Update()
{ {
base.Update(); base.Update();
BorderThickness = relativeBorderThickness * DrawSize.X; BorderThickness = relativeBorderThickness * DrawSize.Y;
} }
} }
} }

View File

@ -38,6 +38,9 @@ namespace osu.Game.Rulesets.Taiko.Skinning.Argon
case TaikoSkinComponents.BarLine: case TaikoSkinComponents.BarLine:
return new ArgonBarLine(); return new ArgonBarLine();
case TaikoSkinComponents.DrumRollBody:
return new ArgonElongatedCirclePiece();
} }
break; break;