Add control sections and hook up bindable control groups

This commit is contained in:
Dean Herbert
2019-10-21 00:06:38 +09:00
parent 0fbba9a5e5
commit 80bf68c108
3 changed files with 131 additions and 6 deletions

View File

@ -27,7 +27,7 @@ namespace osu.Game.Screens.Edit.Timing
private readonly FillFlowContainer backgroundFlow;
[Resolved]
private Bindable<ControlPoint> controlPoint { get; set; }
private Bindable<IEnumerable<ControlPoint>> selectedPoints { get; set; }
public ControlPointTable()
{
@ -60,7 +60,7 @@ namespace osu.Game.Screens.Edit.Timing
foreach (var group in grouped)
{
backgroundFlow.Add(new RowBackground { Action = () => controlPoint.Value = group.First() });
backgroundFlow.Add(new RowBackground { Action = () => selectedPoints.Value = group });
}
Columns = createHeaders();