1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 14:12:55 +08:00

Remove unnecessary proxying

This commit is contained in:
Dean Herbert 2022-07-03 02:59:10 +09:00
parent 17ad6648d1
commit 7d8ea5e286

View File

@ -23,37 +23,32 @@ namespace osu.Game.Screens.Select
private Bindable<double> lowerStars;
private Bindable<double> upperStars;
private StarsSlider lowerSlider;
private MaximumStarsSlider upperSlider;
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
const float vertical_offset = 13;
InternalChildren = new[]
InternalChildren = new Drawable[]
{
new OsuSpriteText
{
Text = "Difficulty range",
Font = OsuFont.GetFont(size: 14),
},
upperSlider = new MaximumStarsSlider
new MaximumStarsSlider
{
Current = config.GetBindable<double>(OsuSetting.DisplayStarsMaximum),
KeyboardStep = 0.1f,
RelativeSizeAxes = Axes.X,
Y = vertical_offset,
},
lowerSlider = new MinimumStarsSlider
new MinimumStarsSlider
{
Current = config.GetBindable<double>(OsuSetting.DisplayStarsMinimum),
KeyboardStep = 0.1f,
RelativeSizeAxes = Axes.X,
Y = vertical_offset,
},
upperSlider.Nub.CreateProxy(),
lowerSlider.Nub.CreateProxy(),
}
};
lowerStars = config.GetBindable<double>(OsuSetting.DisplayStarsMinimum);
@ -107,8 +102,6 @@ namespace osu.Game.Screens.Select
? UserInterfaceStrings.NoLimit
: Current.Value.ToString(@"0.## stars");
public new Nub Nub => base.Nub;
protected override void LoadComplete()
{
base.LoadComplete();