Beispiel #1
0
 public override void OnMouseRightUp(System.Drawing.Point location)
 {
     if (drawing && !drawMode)
     {
         drawing = false;
         drawAction = null;
     }
 }
Beispiel #2
0
        private void setCell(System.Drawing.Point location, bool setTo)
        {
            location = LayerEditor.Layer.Definition.ConvertToGrid(location);
            if (!IsValidGridCell(location) || LayerEditor.Layer.Grid[location.X, location.Y] == setTo)
                return;

            if (drawAction == null)
                LevelEditor.Perform(drawAction = new GridDrawAction(LayerEditor.Layer, location, setTo));
            else
                drawAction.DoAgain(location);
        }