mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 09:37:23 +08:00
Merge pull request #17116 from bdach/sample-popover-tabbing
Allow tabbing between textboxes in sample point popover
This commit is contained in:
commit
e322eb578a
@ -35,7 +35,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
|||||||
set => Component.Text = value;
|
set => Component.Text = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Container TabbableContentContainer
|
public CompositeDrawable TabbableContentContainer
|
||||||
{
|
{
|
||||||
set => Component.TabbableContentContainer = value;
|
set => Component.TabbableContentContainer = value;
|
||||||
}
|
}
|
||||||
|
@ -75,9 +75,11 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
|
FillFlowContainer flow;
|
||||||
|
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new FillFlowContainer
|
flow = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Width = 200,
|
Width = 200,
|
||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
@ -94,6 +96,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
bank.TabbableContentContainer = flow;
|
||||||
|
volume.TabbableContentContainer = flow;
|
||||||
|
|
||||||
// if the piece belongs to a currently selected object, assume that the user wants to change all selected objects.
|
// if the piece belongs to a currently selected object, assume that the user wants to change all selected objects.
|
||||||
// if the piece belongs to an unselected object, operate on that object alone, independently of the selection.
|
// if the piece belongs to an unselected object, operate on that object alone, independently of the selection.
|
||||||
var relevantObjects = (beatmap.SelectedHitObjects.Contains(hitObject) ? beatmap.SelectedHitObjects : hitObject.Yield()).ToArray();
|
var relevantObjects = (beatmap.SelectedHitObjects.Contains(hitObject) ? beatmap.SelectedHitObjects : hitObject.Yield()).ToArray();
|
||||||
|
@ -32,6 +32,11 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
set => slider.KeyboardStep = value;
|
set => slider.KeyboardStep = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public CompositeDrawable TabbableContentContainer
|
||||||
|
{
|
||||||
|
set => textBox.TabbableContentContainer = value;
|
||||||
|
}
|
||||||
|
|
||||||
private readonly BindableWithCurrent<T?> current = new BindableWithCurrent<T?>();
|
private readonly BindableWithCurrent<T?> current = new BindableWithCurrent<T?>();
|
||||||
|
|
||||||
public Bindable<T?> Current
|
public Bindable<T?> Current
|
||||||
|
Loading…
x
Reference in New Issue
Block a user