2018-01-05 11:21:19 +00:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2017-04-05 01:01:40 +00:00
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2017-05-16 03:50:30 +00:00
|
|
|
using osu.Framework.Graphics;
|
2017-04-05 01:01:40 +00:00
|
|
|
|
2017-04-18 07:05:58 +00:00
|
|
|
namespace osu.Game.Rulesets.Taiko.Objects.Drawables.Pieces
|
2017-04-05 01:01:40 +00:00
|
|
|
{
|
|
|
|
public class ElongatedCirclePiece : CirclePiece
|
|
|
|
{
|
2017-08-03 10:49:50 +00:00
|
|
|
public ElongatedCirclePiece()
|
2017-04-05 01:01:40 +00:00
|
|
|
{
|
2017-08-03 04:23:12 +00:00
|
|
|
RelativeSizeAxes = Axes.Y;
|
2017-04-05 01:01:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Update()
|
|
|
|
{
|
|
|
|
base.Update();
|
|
|
|
|
2017-04-05 07:27:59 +00:00
|
|
|
var padding = Content.DrawHeight * Content.Width / 2;
|
|
|
|
|
2017-04-05 01:01:40 +00:00
|
|
|
Content.Padding = new MarginPadding
|
|
|
|
{
|
2017-04-05 07:27:59 +00:00
|
|
|
Left = padding,
|
|
|
|
Right = padding,
|
2017-04-05 01:01:40 +00:00
|
|
|
};
|
|
|
|
|
2017-08-08 07:01:18 +00:00
|
|
|
Width = Parent.DrawSize.X + DrawHeight;
|
2017-04-05 01:01:40 +00:00
|
|
|
}
|
|
|
|
}
|
2017-04-21 04:45:11 +00:00
|
|
|
}
|