mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
23 lines
674 B
C#
23 lines
674 B
C#
// 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.
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
namespace osu.Game.Overlays.Settings
|
|
{
|
|
public class SettingsEnumDropdown<T> : SettingsDropdown<T>
|
|
{
|
|
protected override OsuDropdown<T> CreateDropdown() => new DropdownControl();
|
|
|
|
protected new class DropdownControl : OsuEnumDropdown<T>
|
|
{
|
|
public DropdownControl()
|
|
{
|
|
Margin = new MarginPadding { Top = 5 };
|
|
RelativeSizeAxes = Axes.X;
|
|
}
|
|
}
|
|
}
|
|
}
|