Add tooltip to sliderbars. Move interface.

This commit is contained in:
Dean Herbert
2017-04-20 17:33:07 +09:00
parent ce5763ed97
commit c87657707f
4 changed files with 8 additions and 10 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Desktop.VisualTests.Tests
public override void Reset()
{
base.Reset();
TooltipSlider slider;
OsuSliderBar<int> slider;
Children = new Drawable[]
{
@ -37,7 +37,7 @@ namespace osu.Desktop.VisualTests.Tests
Text = "a box with a tooltip",
Size = new Vector2(300,30),
},
slider = new TooltipSlider
slider = new OsuSliderBar<int>
{
Width = 300,
},
@ -75,10 +75,5 @@ namespace osu.Desktop.VisualTests.Tests
{
public string TooltipText => Text;
}
private class TooltipSlider : OsuSliderBar<int>, IHasTooltip
{
public string TooltipText => Current.Value.ToString();
}
}
}