2017-04-05 09:01:40 +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
|
|
|
|
|
2017-05-16 11:50:30 +08:00
|
|
|
using osu.Framework.Graphics;
|
2017-04-05 09:01:40 +08:00
|
|
|
|
2017-04-18 15:05:58 +08:00
|
|
|
namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
2017-04-05 09:01:40 +08:00
|
|
|
{
|
|
|
|
public class ElongatedCirclePiece : CirclePiece
|
|
|
|
{
|
2017-08-03 18:49:50 +08:00
|
|
|
public ElongatedCirclePiece()
|
2017-04-05 09:01:40 +08:00
|
|
|
{
|
2017-08-03 12:23:12 +08:00
|
|
|
RelativeSizeAxes = Axes.Y;
|
2017-04-05 09:01:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
2017-04-05 15:27:59 +08:00
|
|
|
var padding = Content.DrawHeight * Content.Width / 2;
|
|
|
|
|
2017-04-05 09:01:40 +08:00
|
|
|
Content.Padding = new MarginPadding
|
|
|
|
{
|
2017-04-05 15:27:59 +08:00
|
|
|
Left = padding,
|
|
|
|
Right = padding,
|
2017-04-05 09:01:40 +08:00
|
|
|
};
|
|
|
|
|
2017-08-08 15:01:18 +08:00
|
|
|
Width = Parent.DrawSize.X + DrawHeight;
|
2017-04-05 09:01:40 +08:00
|
|
|
}
|
|
|
|
}
|
2017-04-21 12:45:11 +08:00
|
|
|
}
|