Beispiel #1
0
        public override void Execute()
        {
            _selectLayer.RestoreTileSelection(_selection);
            _selectLayer.FloatSelection();

            Rectangle bounds = _selectLayer.TileSelection.Bounds;
            TileCoord offset = new TileCoord(_centerOffset.X - bounds.Center.X, _centerOffset.Y - bounds.Center.Y);

            _selectLayer.SetSelectionOffset(offset);
        }
Beispiel #2
0
 public override void Undo()
 {
     _selectLayer.RestoreTileSelection(_selection);
 }