mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +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,
|
Width = 150,
|
||||||
Height = 10,
|
Height = 10,
|
||||||
SelectionColor = Color4.Orange,
|
SelectionColor = Color4.Orange,
|
||||||
Value = playbackSpeed
|
Current = playbackSpeed
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user