mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Add tooltip to sliderbars. Move interface.
This commit is contained in:
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user