mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 14:17:27 +09:00
Add drum roll implementation
This commit is contained in:
parent
6636545195
commit
f1556c98e3
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user