Add OnRowSelected event to EditorTable

This commit is contained in:
Jai Sharma
2022-11-27 02:47:54 +00:00
parent 792334a190
commit 3c56b9c93a
4 changed files with 18 additions and 9 deletions

View File

@ -63,17 +63,11 @@ namespace osu.Game.Screens.Edit.Timing
selectedGroup.BindValueChanged(_ =>
{
// TODO: This should scroll the selected row into view.
updateSelectedGroup();
}, true);
}
private void updateSelectedGroup()
{
// TODO: This should scroll the selected row into view.
foreach (var b in BackgroundFlow)
b.Selected = ReferenceEquals(b.Item, selectedGroup?.Value);
}
private void updateSelectedGroup() => SetRowSelected(selectedGroup?.Value);
private TableColumn[] createHeaders()
{