mirror of
https://github.com/ppy/osu
synced 2025-03-07 11:59:29 +00:00
Implement TabbableContentContainer
for slider control
This commit is contained in:
parent
093d9ab076
commit
d506d8a150
@ -78,7 +78,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
MaxValue = 10,
|
||||
Value = 5,
|
||||
Precision = 0.1f,
|
||||
}
|
||||
},
|
||||
TabbableContentContainer = this,
|
||||
},
|
||||
new FormSliderBar<float>
|
||||
{
|
||||
@ -91,6 +92,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
Precision = 0.1f,
|
||||
},
|
||||
Instantaneous = false,
|
||||
TabbableContentContainer = this,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -48,6 +48,19 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
}
|
||||
}
|
||||
|
||||
private CompositeDrawable? tabbableContentContainer;
|
||||
|
||||
public CompositeDrawable? TabbableContentContainer
|
||||
{
|
||||
set
|
||||
{
|
||||
tabbableContentContainer = value;
|
||||
|
||||
if (textBox.IsNotNull())
|
||||
textBox.TabbableContentContainer = tabbableContentContainer;
|
||||
}
|
||||
}
|
||||
|
||||
private readonly BindableNumberWithCurrent<T> current = new BindableNumberWithCurrent<T>();
|
||||
|
||||
/// <summary>
|
||||
@ -117,7 +130,8 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
{
|
||||
flashLayer.Colour = ColourInfo.GradientVertical(colours.Red3.Opacity(0), colours.Red3);
|
||||
flashLayer.FadeOutFromOne(200, Easing.OutQuint);
|
||||
}
|
||||
},
|
||||
TabbableContentContainer = tabbableContentContainer,
|
||||
},
|
||||
slider = new Slider
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user