public override bool HandleFlip(Direction direction, bool flipOverOrigin) { if (SelectedItems.Count == 0) { return(false); } // This could be implemented in the future if there's a requirement for it. if (direction == Direction.Vertical) { return(false); } var selectionRange = CatchHitObjectUtils.GetPositionRange(SelectedItems); bool changed = false; EditorBeatmap.PerformOnSelection(h => { if (h is CatchHitObject catchObject) { changed |= handleFlip(selectionRange, catchObject, flipOverOrigin); } }); return(changed); }
public override bool HandleFlip(Direction direction) { var selectionRange = CatchHitObjectUtils.GetPositionRange(SelectedItems); bool changed = false; EditorBeatmap.PerformOnSelection(h => { if (h is CatchHitObject catchObject) { changed |= handleFlip(selectionRange, catchObject); } }); return(changed); }