Exemple #1
0
        protected override bool OnDragStart(InputState state)
        {
            // Hide the previous drag box - we won't be working with it any longer
            selectionBoxBox?.Hide();

            AddInternal(selectionBoxBox = new HitObjectSelectionBox(ToLocalSpace(state.Mouse.NativeState.Position))
            {
                CapturableObjects = playfield.HitObjects.Objects,
            });

            Selection.BindTo(selectionBoxBox.Selection);

            return(true);
        }
Exemple #2
0
 protected override bool OnClick(InputState state)
 {
     selectionBoxBox?.Hide();
     return true;
 }