2017-03-24 17:49:10 +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-24 17:37:56 +08:00
|
|
|
|
|
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
|
|
|
|
{
|
2017-03-24 18:05:45 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A type of circle piece which is drawn at a higher scale as an "accent".
|
|
|
|
|
/// </summary>
|
2017-03-24 17:37:56 +08:00
|
|
|
|
public class AccentedCirclePiece : CirclePiece
|
|
|
|
|
{
|
2017-03-24 18:04:46 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The amount to scale up the base circle to show it as an "accented" piece.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private const float accent_scale = 1.5f;
|
|
|
|
|
|
2017-03-24 19:08:40 +08:00
|
|
|
|
public AccentedCirclePiece()
|
2017-03-24 17:37:56 +08:00
|
|
|
|
{
|
2017-03-24 19:08:40 +08:00
|
|
|
|
SymbolContainer.Scale = new Vector2(accent_scale);
|
2017-03-24 17:37:56 +08:00
|
|
|
|
}
|
|
|
|
|
|
2017-03-24 18:04:46 +08:00
|
|
|
|
public override Vector2 Size => new Vector2(base.Size.X, base.Size.Y * accent_scale);
|
2017-03-24 17:37:56 +08:00
|
|
|
|
}
|
|
|
|
|
}
|