Esempio n. 1
0
 public override void Deselect()
 {
     selectedEventTile = null;
     selectedTile      = null;
     LevelDisplayControl.DeselectTiles();
     LevelDisplayControl.DeselectSelectionGrid();
     EditorControl.PropertyGrid.CloseProperties();
 }
Esempio n. 2
0
 public override void Paste()
 {
     if (clipboard != null)
     {
         LevelDisplayControl.DeselectSelectionGrid();
         LevelDisplayControl.SetSelectionGrid(
             clipboard.Duplicate(), Point2I.Zero, EditorControl.Level);
     }
 }
Esempio n. 3
0
        //-----------------------------------------------------------------------------
        // Selection
        //-----------------------------------------------------------------------------

        public override void Cut()
        {
            LevelDisplayControl.PickupSelectionGrid();
            if (LevelDisplayControl.SelectionGrid != null)
            {
                clipboard = LevelDisplayControl.SelectionGrid;
                LevelDisplayControl.SelectionGrid = null;
                LevelDisplayControl.DeselectSelectionGrid();
            }
        }
Esempio n. 4
0
 public override void Deselect()
 {
     isCreatingSelectionBox = false;
     isMovingSelectionBox   = false;
     LevelDisplayControl.DeselectSelectionGrid();
 }