mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Apply adjustments for framework changes
This commit is contained in:
@ -17,7 +17,7 @@ using osu.Framework.Input.Events;
|
|||||||
namespace osu.Game.Graphics.UserInterface
|
namespace osu.Game.Graphics.UserInterface
|
||||||
{
|
{
|
||||||
public class OsuSliderBar<T> : SliderBar<T>, IHasTooltip, IHasAccentColour
|
public class OsuSliderBar<T> : SliderBar<T>, IHasTooltip, IHasAccentColour
|
||||||
where T : struct, IEquatable<T>, IComparable, IConvertible
|
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Maximum number of decimal digits to be displayed in the tooltip.
|
/// Maximum number of decimal digits to be displayed in the tooltip.
|
||||||
|
@ -8,12 +8,12 @@ using osu.Game.Graphics.UserInterface;
|
|||||||
namespace osu.Game.Overlays.Settings
|
namespace osu.Game.Overlays.Settings
|
||||||
{
|
{
|
||||||
public class SettingsSlider<T> : SettingsSlider<T, OsuSliderBar<T>>
|
public class SettingsSlider<T> : SettingsSlider<T, OsuSliderBar<T>>
|
||||||
where T : struct, IEquatable<T>, IComparable, IConvertible
|
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SettingsSlider<T, U> : SettingsItem<T>
|
public class SettingsSlider<T, U> : SettingsItem<T>
|
||||||
where T : struct, IEquatable<T>, IComparable, IConvertible
|
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||||
where U : OsuSliderBar<T>, new()
|
where U : OsuSliderBar<T>, new()
|
||||||
{
|
{
|
||||||
protected override Drawable CreateControl() => new U
|
protected override Drawable CreateControl() => new U
|
||||||
|
@ -10,7 +10,7 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Edit
|
namespace osu.Game.Screens.Edit
|
||||||
{
|
{
|
||||||
public class BindableBeatDivisor : BindableNumber<int>
|
public class BindableBeatDivisor : BindableInt
|
||||||
{
|
{
|
||||||
public static readonly int[] VALID_DIVISORS = { 1, 2, 3, 4, 6, 8, 12, 16 };
|
public static readonly int[] VALID_DIVISORS = { 1, 2, 3, 4, 6, 8, 12, 16 };
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ using osu.Game.Overlays.Settings;
|
|||||||
namespace osu.Game.Screens.Play.PlayerSettings
|
namespace osu.Game.Screens.Play.PlayerSettings
|
||||||
{
|
{
|
||||||
public class PlayerSliderBar<T> : SettingsSlider<T>
|
public class PlayerSliderBar<T> : SettingsSlider<T>
|
||||||
where T : struct, IEquatable<T>, IComparable, IConvertible
|
where T : struct, IEquatable<T>, IComparable<T>, IConvertible
|
||||||
{
|
{
|
||||||
public OsuSliderBar<T> Bar => (OsuSliderBar<T>)Control;
|
public OsuSliderBar<T> Bar => (OsuSliderBar<T>)Control;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user