mirror of
https://github.com/ppy/osu.git
synced 2024-12-18 19:43:03 +08:00
fdd17c1575
Also using FontAwesome for now to enforce the same size, because otherwise you have to mess around with sprites + the custom graphics. This will all be changed when sprites are fixed to maintain aspect ratios and when glow/border use relative axes.
26 lines
829 B
C#
26 lines
829 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
|
|
{
|
|
/// <summary>
|
|
/// A type of circle piece which is drawn at a higher scale as an "accent".
|
|
/// </summary>
|
|
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()
|
|
{
|
|
SymbolContainer.Scale = new Vector2(accent_scale);
|
|
}
|
|
|
|
public override Vector2 Size => new Vector2(base.Size.X, base.Size.Y * accent_scale);
|
|
}
|
|
}
|