mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 06:52:55 +08:00
26 lines
634 B
C#
26 lines
634 B
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
|
using OpenTK;
|
|
|
|
namespace osu.Game.Screens.Edit.Components
|
|
{
|
|
public class CircularButton : OsuButton
|
|
{
|
|
private const float width = 125;
|
|
private const float height = 30;
|
|
|
|
public CircularButton()
|
|
{
|
|
Size = new Vector2(width, height);
|
|
}
|
|
|
|
protected override void Update()
|
|
{
|
|
base.Update();
|
|
Content.CornerRadius = DrawHeight / 2f;
|
|
}
|
|
}
|
|
}
|