mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 00:53:56 +09:00
Remove unnecessary schedule
This commit is contained in:
@ -123,20 +123,12 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
if (blueprint == null)
|
if (blueprint == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (hitObject.IsLoaded)
|
blueprint.Selected += onBlueprintSelected;
|
||||||
addBlueprint();
|
blueprint.Deselected += onBlueprintDeselected;
|
||||||
else
|
blueprint.SelectionRequested += onSelectionRequested;
|
||||||
hitObject.OnLoadComplete += _ => addBlueprint();
|
blueprint.DragRequested += onDragRequested;
|
||||||
|
|
||||||
void addBlueprint()
|
selectionBlueprints.Add(blueprint);
|
||||||
{
|
|
||||||
blueprint.Selected += onBlueprintSelected;
|
|
||||||
blueprint.Deselected += onBlueprintDeselected;
|
|
||||||
blueprint.SelectionRequested += onSelectionRequested;
|
|
||||||
blueprint.DragRequested += onDragRequested;
|
|
||||||
|
|
||||||
selectionBlueprints.Add(blueprint);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void removeBlueprintFor(DrawableHitObject hitObject) => removeBlueprintFor(hitObject.HitObject);
|
private void removeBlueprintFor(DrawableHitObject hitObject) => removeBlueprintFor(hitObject.HitObject);
|
||||||
|
Reference in New Issue
Block a user