mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Update SliderBar to use IHasCurrentValue.
This commit is contained in:
Submodule osu-framework updated: bbfd0fc7a8...561b24bed4
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user