1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-08 02:07:27 +08:00
osu-lazer/osu.Game/Graphics/UserInterface/RoundedNub.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
913 B
C#
Raw Normal View History

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
2018-04-13 17:19:50 +08:00
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osuTK;
2018-04-13 17:19:50 +08:00
namespace osu.Game.Graphics.UserInterface
{
2023-02-03 00:23:09 +08:00
public partial class RoundedNub : Nub
{
public const float HEIGHT = 15;
public const float EXPANDED_SIZE = 50;
2018-04-13 17:19:50 +08:00
2023-02-03 00:23:09 +08:00
public RoundedNub()
{
Size = new Vector2(EXPANDED_SIZE, HEIGHT);
}
2018-04-13 17:19:50 +08:00
protected override Container CreateNubContainer() =>
new CircularContainer
{
BorderColour = Colour4.White,
BorderThickness = BORDER_WIDTH,
Masking = true,
RelativeSizeAxes = Axes.Both,
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
};
}
}