| 12345678910111213141516171819202122232425262728293031323334353637 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace SOTF_Savegame_Editor.PictureZBoxHelper {
- public class SpotItem {
- public SpotItem() { }
- public SpotItem(Point location) {
- this.Location = location;
- }
- public SpotItem(Point location, int size) : this(location) {
- this.Size = size;
- }
- public SpotItem(Point location, Color color) : this(location) {
- this.Color = color;
- }
- public SpotItem(Point location, int size, Color color) : this(location) {
- Size = size;
- Color = color;
- }
- public Point Location { get; set; } = new Point(0, 0);
- private int _size = 16;
- public int Size {
- get => this._size;
- set {
- if (value < 4)
- this._size = 4;
- else
- this._size = value;
- }
- }
- public Color Color { get; set; } = Color.Black;
- }
- }
|