1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 04:17:18 +08:00

26 lines
633 B
C#
Raw Normal View History

2018-07-20 14:02:02 +03:00
// 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;
2018-11-20 16:51:59 +09:00
using osuTK;
2018-07-20 14:02:02 +03:00
2018-08-15 16:47:20 +09:00
namespace osu.Game.Screens.Edit.Components
2018-07-20 14:02:02 +03:00
{
2018-08-15 16:47:20 +09:00
public class CircularButton : OsuButton
2018-07-20 14:02:02 +03:00
{
2018-07-31 16:44:20 +09:00
private const float width = 125;
private const float height = 30;
2018-07-20 14:02:02 +03:00
2018-08-15 16:47:20 +09:00
public CircularButton()
2018-07-20 14:02:02 +03:00
{
2018-07-31 16:44:20 +09:00
Size = new Vector2(width, height);
2018-07-20 14:02:02 +03:00
}
protected override void Update()
2018-07-20 14:02:02 +03:00
{
base.Update();
Content.CornerRadius = DrawHeight / 2f;
2018-07-20 14:02:02 +03:00
}
}
}