public override void OnMouseRightUp(System.Drawing.Point location) { if (drawing && !drawMode) { drawing = false; drawAction = null; } }
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); } }
private void setCell(System.Drawing.Point location, bool setTo) { location = LayerEditor.Layer.Definition.ConvertToGrid(location); LevelEditor.Perform(drawAction = new GridDrawAction(LayerEditor.Layer, location, setTo)); }