コード例 #1
0
ファイル: ToolPointer.cs プロジェクト: radtek/ZeldaOracle
 public override void Deselect()
 {
     selectedEventTile = null;
     selectedTile      = null;
     LevelDisplayControl.DeselectTiles();
     LevelDisplayControl.DeselectSelectionGrid();
     EditorControl.PropertyGrid.CloseProperties();
 }
コード例 #2
0
 public override void Paste()
 {
     if (clipboard != null)
     {
         LevelDisplayControl.DeselectSelectionGrid();
         LevelDisplayControl.SetSelectionGrid(
             clipboard.Duplicate(), Point2I.Zero, EditorControl.Level);
     }
 }
コード例 #3
0
        //-----------------------------------------------------------------------------
        // Selection
        //-----------------------------------------------------------------------------

        public override void Cut()
        {
            LevelDisplayControl.PickupSelectionGrid();
            if (LevelDisplayControl.SelectionGrid != null)
            {
                clipboard = LevelDisplayControl.SelectionGrid;
                LevelDisplayControl.SelectionGrid = null;
                LevelDisplayControl.DeselectSelectionGrid();
            }
        }
コード例 #4
0
 public override void Deselect()
 {
     isCreatingSelectionBox = false;
     isMovingSelectionBox   = false;
     LevelDisplayControl.DeselectSelectionGrid();
 }