2017-03-20 16:02:06 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using OpenTK;
|
2017-03-20 15:50:22 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// A type of circle piece that encapsulates a circle piece to visualise it as a "finisher" hitobject.
|
|
|
|
|
/// <para>
|
|
|
|
|
/// Finisher hitobjects are 1.5x larger, while maintaining the same length.
|
|
|
|
|
/// </para>
|
|
|
|
|
/// </summary>
|
2017-03-24 14:44:43 +08:00
|
|
|
|
public class FinisherPiece : ScrollingPiece
|
2017-03-20 15:50:22 +08:00
|
|
|
|
{
|
2017-03-24 14:44:43 +08:00
|
|
|
|
public FinisherPiece(ScrollingPiece original)
|
2017-03-20 15:50:22 +08:00
|
|
|
|
{
|
|
|
|
|
// First we scale the note up
|
|
|
|
|
Scale = new Vector2(1.5f);
|
|
|
|
|
|
|
|
|
|
Children = new[]
|
|
|
|
|
{
|
|
|
|
|
original
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
// Next we reduce the draw width for drum rolls to keep the width
|
|
|
|
|
// equal to that of a non-finisher drum roll
|
|
|
|
|
original.Width /= 1.5f;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|