1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-18 17:12:55 +08:00
osu-lazer/osu.Game.Modes.Taiko/Objects/Drawable/Pieces/StrongCirclePiece.cs

26 lines
837 B
C#
Raw Normal View History

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;
namespace osu.Game.Modes.Taiko.Objects.Drawable.Pieces
{
2017-03-24 18:05:45 +08:00
/// <summary>
2017-03-28 09:02:41 +08:00
/// A type of circle piece which is drawn at a higher scale to represent a "strong" piece.
2017-03-24 18:05:45 +08:00
/// </summary>
2017-03-28 09:02:41 +08:00
public class StrongCirclePiece : CirclePiece
{
2017-03-24 18:04:46 +08:00
/// <summary>
2017-03-28 09:02:41 +08:00
/// The amount to scale up the base circle to show it as a "strong" piece.
2017-03-24 18:04:46 +08:00
/// </summary>
2017-03-28 09:02:41 +08:00
private const float strong_scale = 1.5f;
2017-03-24 18:04:46 +08:00
2017-03-28 09:02:41 +08:00
public StrongCirclePiece()
{
2017-03-28 09:02:41 +08:00
SymbolContainer.Scale = new Vector2(strong_scale);
}
2017-03-28 09:02:41 +08:00
public override Vector2 Size => new Vector2(base.Size.X, base.Size.Y * strong_scale);
}
}