예제 #1
0
        private void load()
        {
            selectionBox             = composer.CreateSelectionBox();
            selectionBox.DeselectAll = deselectAll;

            var dragBox = new DragBox(select);

            dragBox.DragEnd += () => selectionBox.UpdateVisibility();

            InternalChildren = new[]
            {
                dragBox,
                selectionBox,
                selectionBlueprints = new SelectionBlueprintContainer {
                    RelativeSizeAxes = Axes.Both
                },
                placementBlueprintContainer = new Container <PlacementBlueprint> {
                    RelativeSizeAxes = Axes.Both
                },
                dragBox.CreateProxy()
            };

            foreach (var obj in composer.HitObjects)
            {
                AddBlueprintFor(obj);
            }
        }
예제 #2
0
        private void load()
        {
            selectionHandler             = CreateSelectionHandler();
            selectionHandler.DeselectAll = deselectAll;

            AddRangeInternal(new[]
            {
                DragBox = CreateDragBox(select),
                selectionHandler,
                selectionBlueprints = new SelectionBlueprintContainer {
                    RelativeSizeAxes = Axes.Both
                },
                DragBox.CreateProxy().With(p => p.Depth = float.MinValue)
            });

            foreach (var obj in beatmap.HitObjects)
            {
                AddBlueprintFor(obj);
            }
        }
예제 #3
0
        private void load()
        {
            selectionHandler             = composer.CreateSelectionHandler();
            selectionHandler.DeselectAll = deselectAll;

            InternalChildren = new[]
            {
                dragBox = new DragBox(select),
                selectionHandler,
                selectionBlueprints = new SelectionBlueprintContainer {
                    RelativeSizeAxes = Axes.Both
                },
                placementBlueprintContainer = new Container <PlacementBlueprint> {
                    RelativeSizeAxes = Axes.Both
                },
                dragBox.CreateProxy()
            };

            foreach (var obj in composer.HitObjects)
            {
                addBlueprintFor(obj);
            }
        }