mirror of
https://github.com/ppy/osu.git
synced 2024-11-08 03:37:35 +08:00
23 lines
694 B
C#
23 lines
694 B
C#
// 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;
|
|
|
|
namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
|
|
{
|
|
public class AccentedCirclePiece : CirclePiece
|
|
{
|
|
/// <summary>
|
|
/// The amount to scale up the base circle to show it as an "accented" piece.
|
|
/// </summary>
|
|
private const float accent_scale = 1.5f;
|
|
|
|
public AccentedCirclePiece(string symbolName)
|
|
: base(symbolName)
|
|
{
|
|
}
|
|
|
|
public override Vector2 Size => new Vector2(base.Size.X, base.Size.Y * accent_scale);
|
|
}
|
|
}
|