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:
parent
f97b14a20a
commit
ff06a27a12
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user