SpotItem.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace SOTF_Savegame_Editor.PictureZBoxHelper {
  7. public class SpotItem {
  8. public SpotItem() { }
  9. public SpotItem(Point location) {
  10. this.Location = location;
  11. }
  12. public SpotItem(Point location, int size) : this(location) {
  13. this.Size = size;
  14. }
  15. public SpotItem(Point location, Color color) : this(location) {
  16. this.Color = color;
  17. }
  18. public SpotItem(Point location, int size, Color color) : this(location) {
  19. Size = size;
  20. Color = color;
  21. }
  22. public Point Location { get; set; } = new Point(0, 0);
  23. private int _size = 16;
  24. public int Size {
  25. get => this._size;
  26. set {
  27. if (value < 4)
  28. this._size = 4;
  29. else
  30. this._size = value;
  31. }
  32. }
  33. public Color Color { get; set; } = Color.Black;
  34. }
  35. }