mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
s/OptionsSlider/SliderOption/g
This commit is contained in:
parent
b97902d006
commit
ff7ec88e66
@ -19,9 +19,9 @@ namespace osu.Game.Overlays.Options.Audio
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OptionsSlider<int>
|
||||
new SliderOption<int>
|
||||
{
|
||||
Label = "Universal Offset",
|
||||
LabelText = "Universal Offset",
|
||||
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.Offset)
|
||||
},
|
||||
new OsuButton
|
||||
|
@ -20,9 +20,9 @@ namespace osu.Game.Overlays.Options.Audio
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OptionsSlider<double> { Label = "Master", Bindable = audio.Volume },
|
||||
new OptionsSlider<double> { Label = "Effect", Bindable = audio.VolumeSample },
|
||||
new OptionsSlider<double> { Label = "Music", Bindable = audio.VolumeTrack },
|
||||
new SliderOption<double> { LabelText = "Master", Bindable = audio.Volume },
|
||||
new SliderOption<double> { LabelText = "Effect", Bindable = audio.VolumeSample },
|
||||
new SliderOption<double> { LabelText = "Music", Bindable = audio.VolumeTrack },
|
||||
new CheckBoxOption
|
||||
{
|
||||
LabelText = "Ignore beatmap hitsounds",
|
||||
|
@ -20,16 +20,16 @@ namespace osu.Game.Overlays.Options.Gameplay
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OptionsSlider<int>
|
||||
new SliderOption<int>
|
||||
{
|
||||
Label = "Background dim",
|
||||
LabelText = "Background dim",
|
||||
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.DimLevel)
|
||||
},
|
||||
new SpriteText { Text = "Progress display: TODO dropdown" },
|
||||
new SpriteText { Text = "Score meter type: TODO dropdown" },
|
||||
new OptionsSlider<double>
|
||||
new SliderOption<double>
|
||||
{
|
||||
Label = "Score meter size",
|
||||
LabelText = "Score meter size",
|
||||
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.ScoreMeterScale)
|
||||
},
|
||||
new CheckBoxOption
|
||||
|
@ -25,9 +25,9 @@ namespace osu.Game.Overlays.Options.Gameplay
|
||||
starMaximum = (BindableInt)config.GetBindable<int>(OsuConfig.DisplayStarsMaximum);
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new OptionsSlider<int> { Label = "Display beatmaps from", Bindable = starMinimum },
|
||||
new SliderOption<int> { LabelText = "Display beatmaps from", Bindable = starMinimum },
|
||||
counterMin = new StarCounter { Count = starMinimum.Value },
|
||||
new OptionsSlider<int> { Label = "up to", Bindable = starMaximum },
|
||||
new SliderOption<int> { LabelText = "up to", Bindable = starMaximum },
|
||||
counterMax = new StarCounter { Count = starMaximum.Value },
|
||||
};
|
||||
starMinimum.ValueChanged += starValueChanged;
|
||||
|
@ -31,14 +31,14 @@ namespace osu.Game.Overlays.Options.Graphics
|
||||
LabelText = "Letterboxing",
|
||||
Bindable = config.GetBindable<bool>(OsuConfig.Letterboxing),
|
||||
},
|
||||
new OptionsSlider<int>
|
||||
new SliderOption<int>
|
||||
{
|
||||
Label = "Horizontal position",
|
||||
LabelText = "Horizontal position",
|
||||
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.LetterboxPositionX)
|
||||
},
|
||||
new OptionsSlider<int>
|
||||
new SliderOption<int>
|
||||
{
|
||||
Label = "Vertical position",
|
||||
LabelText = "Vertical position",
|
||||
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.LetterboxPositionY)
|
||||
},
|
||||
};
|
||||
|
@ -27,9 +27,9 @@ namespace osu.Game.Overlays.Options.Input
|
||||
Children = new Drawable[]
|
||||
{
|
||||
new SpriteText { Text = "Sensitivity: TODO slider" },
|
||||
new OptionsSlider<double>
|
||||
new SliderOption<double>
|
||||
{
|
||||
Label = "Sensitivity",
|
||||
LabelText = "Sensitivity",
|
||||
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.MouseSpeed),
|
||||
},
|
||||
rawInput = new CheckBoxOption
|
||||
|
@ -63,9 +63,9 @@ namespace osu.Game.Overlays.Options
|
||||
Bindable = config.GetBindable<bool>(OsuConfig.UseSkinCursor)
|
||||
},
|
||||
new SpriteText { Text = "Cursor size: TODO slider" },
|
||||
new OptionsSlider<double>
|
||||
new SliderOption<double>
|
||||
{
|
||||
Label = "Cursor size",
|
||||
LabelText = "Cursor size",
|
||||
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.CursorSize)
|
||||
},
|
||||
new CheckBoxOption
|
||||
|
@ -9,13 +9,13 @@ using osu.Framework.Graphics.UserInterface;
|
||||
|
||||
namespace osu.Game.Overlays.Options
|
||||
{
|
||||
public class OptionsSlider<T> : FlowContainer where T : struct,
|
||||
public class SliderOption<T> : FlowContainer where T : struct,
|
||||
IComparable, IFormattable, IConvertible, IComparable<T>, IEquatable<T>
|
||||
{
|
||||
private SliderBar<T> slider;
|
||||
private SpriteText text;
|
||||
|
||||
public string Label
|
||||
public string LabelText
|
||||
{
|
||||
get { return text.Text; }
|
||||
set
|
||||
@ -31,7 +31,7 @@ namespace osu.Game.Overlays.Options
|
||||
set { slider.Bindable = value; }
|
||||
}
|
||||
|
||||
public OptionsSlider()
|
||||
public SliderOption()
|
||||
{
|
||||
Direction = FlowDirection.VerticalOnly;
|
||||
RelativeSizeAxes = Axes.X;
|
@ -222,7 +222,7 @@
|
||||
<Compile Include="Overlays\Options\CheckBoxOption.cs" />
|
||||
<Compile Include="Overlays\Options\SidebarButton.cs" />
|
||||
<Compile Include="Overlays\Options\TextBoxOption.cs" />
|
||||
<Compile Include="Overlays\Options\OptionsSlider.cs" />
|
||||
<Compile Include="Overlays\Options\SliderOption.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="$(SolutionDir)\osu-framework\osu.Framework\osu.Framework.csproj">
|
||||
|
Loading…
Reference in New Issue
Block a user