public void BrushSizeAdd(int i) { var brush = _draw.DrawTool.GetBrush(); var p = new Point { X = Mathf.Clamp(brush.BrushSize.X + i, 1, 9), Y = Mathf.Clamp(brush.BrushSize.Y + i, 1, 9) }; brush.BrushSize = p; _draw.Repaint(); }
public void SetBrush(int index) { _currentBrushIndex = index; if (index != -1) { var texture = _textures[index]; if (!_draw.SetBrush(texture)) { _currentBrushIndex = -1; } } else { _draw.SetBrush(TileTexture.None); } _draw.Repaint(); }