mirror of
https://github.com/ppy/osu.git
synced 2025-03-15 11:07:19 +08:00
Update SliderBar to use IHasCurrentValue.
This commit is contained in:
parent
78ea5c3b8e
commit
b7cfdff8d1
@ -1 +1 @@
|
||||
Subproject commit bbfd0fc7a8f5293a0f853f51040b40808abbb459
|
||||
Subproject commit 561b24bed48d3670b1d33acfc7ba5e11dcd3ac0c
|
@ -112,7 +112,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Width = 150,
|
||||
Height = 10,
|
||||
SelectionColor = Color4.Orange,
|
||||
Value = playbackSpeed
|
||||
Current = playbackSpeed
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -57,7 +57,7 @@ namespace osu.Desktop.VisualTests.Tests
|
||||
Width = 150,
|
||||
Height = 10,
|
||||
SelectionColor = Color4.Orange,
|
||||
Value = bindable
|
||||
Current = bindable
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -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
|
||||
{
|
||||
slider.Value = value;
|
||||
slider.Current = value;
|
||||
if (value?.Disabled ?? true)
|
||||
Alpha = 0.3f;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user