1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 14:47:18 +08:00

Update SliderBar to use IHasCurrentValue.

This commit is contained in:
Dean Herbert 2017-04-10 15:30:17 +09:00
parent 78ea5c3b8e
commit b7cfdff8d1
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
4 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit bbfd0fc7a8f5293a0f853f51040b40808abbb459
Subproject commit 561b24bed48d3670b1d33acfc7ba5e11dcd3ac0c

View File

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

View File

@ -57,7 +57,7 @@ namespace osu.Desktop.VisualTests.Tests
Width = 150,
Height = 10,
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
{
slider.Value = value;
slider.Current = value;
if (value?.Disabled ?? true)
Alpha = 0.3f;
}