Add default bindable values

This commit is contained in:
Dean Herbert
2019-10-28 16:21:14 +09:00
parent 8f87957c70
commit 090881cf6f
3 changed files with 7 additions and 3 deletions

View File

@ -12,6 +12,8 @@ namespace osu.Game.Beatmaps.ControlPoints
/// </summary> /// </summary>
public readonly BindableDouble SpeedMultiplierBindable = new BindableDouble(1) public readonly BindableDouble SpeedMultiplierBindable = new BindableDouble(1)
{ {
Precision = 0.1,
Default = 1,
MinValue = 0.1, MinValue = 0.1,
MaxValue = 10 MaxValue = 10
}; };

View File

@ -13,7 +13,7 @@ namespace osu.Game.Beatmaps.ControlPoints
/// <summary> /// <summary>
/// The default sample bank at this control point. /// The default sample bank at this control point.
/// </summary> /// </summary>
public readonly Bindable<string> SampleBankBindable = new Bindable<string>(DEFAULT_BANK); public readonly Bindable<string> SampleBankBindable = new Bindable<string>(DEFAULT_BANK) { Default = DEFAULT_BANK };
/// <summary> /// <summary>
/// The speed multiplier at this control point. /// The speed multiplier at this control point.
@ -30,7 +30,8 @@ namespace osu.Game.Beatmaps.ControlPoints
public readonly BindableInt SampleVolumeBindable = new BindableInt(100) public readonly BindableInt SampleVolumeBindable = new BindableInt(100)
{ {
MinValue = 0, MinValue = 0,
MaxValue = 100 MaxValue = 100,
Default = 100
}; };
/// <summary> /// <summary>

View File

@ -11,7 +11,7 @@ namespace osu.Game.Beatmaps.ControlPoints
/// <summary> /// <summary>
/// The time signature at this control point. /// The time signature at this control point.
/// </summary> /// </summary>
public readonly Bindable<TimeSignatures> TimeSignatureBindable = new Bindable<TimeSignatures>(TimeSignatures.SimpleQuadruple); public readonly Bindable<TimeSignatures> TimeSignatureBindable = new Bindable<TimeSignatures>(TimeSignatures.SimpleQuadruple) { Default = TimeSignatures.SimpleQuadruple };
/// <summary> /// <summary>
/// The time signature at this control point. /// The time signature at this control point.
@ -29,6 +29,7 @@ namespace osu.Game.Beatmaps.ControlPoints
/// </summary> /// </summary>
public readonly BindableDouble BeatLengthBindable = new BindableDouble(DEFAULT_BEAT_LENGTH) public readonly BindableDouble BeatLengthBindable = new BindableDouble(DEFAULT_BEAT_LENGTH)
{ {
Default = DEFAULT_BEAT_LENGTH,
MinValue = 6, MinValue = 6,
MaxValue = 60000 MaxValue = 60000
}; };