mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00:00
26 lines
761 B
C#
26 lines
761 B
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.UserInterface;
|
|
using osu.Game.Graphics.UserInterface;
|
|
|
|
namespace osu.Game.Overlays.Settings
|
|
{
|
|
public class SettingsSlider<T> : SettingsSlider<T, OsuSliderBar<T>>
|
|
where T : struct
|
|
{
|
|
}
|
|
|
|
public class SettingsSlider<T, U> : SettingsItem<T>
|
|
where T : struct
|
|
where U : SliderBar<T>, new()
|
|
{
|
|
protected override Drawable CreateControl() => new U()
|
|
{
|
|
Margin = new MarginPadding { Top = 5, Bottom = 5 },
|
|
RelativeSizeAxes = Axes.X
|
|
};
|
|
}
|
|
}
|