コード例 #1
0
ファイル: CatchSelectionHandler.cs プロジェクト: Wieku/osu
        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);
        }
コード例 #2
0
ファイル: CatchSelectionHandler.cs プロジェクト: zi-jing/osu
        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);
        }