// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using osu.Framework.Graphics; using osu.Game.Graphics.UserInterface; namespace osu.Game.Overlays.Settings { public class SettingsSlider : SettingsSlider> where T : struct, IEquatable, IComparable, IConvertible { } public class SettingsSlider : SettingsItem where T : struct, IEquatable, IComparable, IConvertible where U : OsuSliderBar, new() { protected override Drawable CreateControl() => new U { Margin = new MarginPadding { Top = 5, Bottom = 5 }, RelativeSizeAxes = Axes.X }; public bool TransferValueOnCommit { get => ((U)Control).TransferValueOnCommit; set => ((U)Control).TransferValueOnCommit = value; } public float KeyboardStep { get => ((U)Control).KeyboardStep; set => ((U)Control).KeyboardStep = value; } } }