Update SliderBar to use IHasCurrentValue.

This commit is contained in:
Dean Herbert
2017-04-10 15:30:17 +09:00
parent 78ea5c3b8e
commit b7cfdff8d1
4 changed files with 6 additions and 6 deletions

View File

@ -112,7 +112,7 @@ namespace osu.Desktop.VisualTests.Tests
Width = 150, Width = 150,
Height = 10, Height = 10,
SelectionColor = Color4.Orange, SelectionColor = Color4.Orange,
Value = playbackSpeed Current = playbackSpeed
} }
} }
}); });

View File

@ -57,7 +57,7 @@ namespace osu.Desktop.VisualTests.Tests
Width = 150, Width = 150,
Height = 10, Height = 10,
SelectionColor = Color4.Orange, SelectionColor = Color4.Orange,
Value = bindable Current = bindable
} }
} }
}); });

View File

@ -27,12 +27,12 @@ namespace osu.Game.Overlays.Options
} }
} }
public BindableNumber<T> Bindable public Bindable<T> Bindable
{ {
get { return slider.Value; } get { return slider.Current; }
set set
{ {
slider.Value = value; slider.Current = value;
if (value?.Disabled ?? true) if (value?.Disabled ?? true)
Alpha = 0.3f; Alpha = 0.3f;
} }