mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Cleanup all other leftover binding instantiation
This commit is contained in:
@ -29,11 +29,7 @@ namespace osu.Game.Tests.Visual.Settings
|
||||
{
|
||||
Child = textBox = new SettingsTextBox
|
||||
{
|
||||
Current = new Bindable<string>
|
||||
{
|
||||
Default = "test",
|
||||
Value = "test"
|
||||
}
|
||||
Current = new Bindable<string>("test")
|
||||
};
|
||||
});
|
||||
AddUntilStep("wait for loaded", () => textBox.IsLoaded);
|
||||
@ -59,11 +55,7 @@ namespace osu.Game.Tests.Visual.Settings
|
||||
{
|
||||
Child = textBox = new SettingsTextBox
|
||||
{
|
||||
Current = new Bindable<string>
|
||||
{
|
||||
Default = "test",
|
||||
Value = "test"
|
||||
}
|
||||
Current = new Bindable<string>("test")
|
||||
};
|
||||
});
|
||||
AddUntilStep("wait for loaded", () => textBox.IsLoaded);
|
||||
|
@ -67,11 +67,7 @@ namespace osu.Game.Tests.Visual.Settings
|
||||
};
|
||||
|
||||
[SettingSource("Sample number textbox", "Textbox number entry", SettingControlType = typeof(SettingsNumberBox))]
|
||||
public Bindable<int?> IntTextBoxBindable { get; } = new Bindable<int?>
|
||||
{
|
||||
Default = null,
|
||||
Value = null
|
||||
};
|
||||
public Bindable<int?> IntTextBoxBindable { get; } = new Bindable<int?>();
|
||||
}
|
||||
|
||||
private enum TestEnum
|
||||
|
@ -38,20 +38,16 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
slider1 = new ExpandableSlider<float, SizeSlider<float>>
|
||||
{
|
||||
Current = new BindableFloat
|
||||
Current = new BindableFloat(1.0f)
|
||||
{
|
||||
Default = 1.0f,
|
||||
MinValue = 1.0f,
|
||||
MaxValue = 10.0f,
|
||||
Precision = 0.01f,
|
||||
},
|
||||
},
|
||||
slider2 = new ExpandableSlider<double>
|
||||
{
|
||||
Current = new BindableDouble
|
||||
Current = new BindableDouble(1.0)
|
||||
{
|
||||
Default = 1.0,
|
||||
MinValue = 1.0,
|
||||
MaxValue = 10.0,
|
||||
Precision = 0.01,
|
||||
},
|
||||
|
Reference in New Issue
Block a user