1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 06:43:21 +08:00

Revert changes to OnBlueprint methods and handle select-on-addition locally

This commit is contained in:
Dean Herbert 2021-04-27 18:33:39 +09:00
parent f97b14a20a
commit ff06a27a12
3 changed files with 2 additions and 9 deletions

View File

@ -251,7 +251,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
public virtual OverlaySelectionBlueprint CreateBlueprintFor(DrawableHitObject hitObject) => null;
protected override void OnBlueprintAdded(SelectionBlueprint<HitObject> item)
protected override void OnBlueprintAdded(HitObject item)
{
base.OnBlueprintAdded(item);

View File

@ -108,13 +108,6 @@ namespace osu.Game.Screens.Edit.Compose.Components
base.AddBlueprintFor(item);
}
protected override void OnBlueprintAdded(SelectionBlueprint<HitObject> blueprint)
{
base.OnBlueprintAdded(blueprint);
if (Beatmap.SelectedHitObjects.Contains(blueprint.Item))
blueprint.Select();
}
protected override void UpdateSelection()
{
base.UpdateSelection();

View File

@ -34,7 +34,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
/// </summary>
public IReadOnlyList<SelectionBlueprint<T>> SelectedBlueprints => selectedBlueprints;
protected BindableList<T> SelectedItems = new BindableList<T>();
public BindableList<T> SelectedItems = new BindableList<T>();
private readonly List<SelectionBlueprint<T>> selectedBlueprints;