-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVisualMarker.cs
More file actions
34 lines (30 loc) · 1.12 KB
/
VisualMarker.cs
File metadata and controls
34 lines (30 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
using KSP.UI.Screens;
using System;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
namespace com.github.lhervier.ksp {
[Serializable]
public class VisualMarker {
public string name = "New Marker";
public MarkerType type = MarkerType.CrossLines;
public float positionX = 50f; // % of the width
public float positionY = 50f; // % of the height
public float radius = 10f; // % of the width (for circles)
public int divisions = 12; // main graduation divisions (2, 4, 8, 12, 36)
public PredefinedColors color = PredefinedColors.White;
public bool visible = true;
public VisualMarker() {
}
public VisualMarker(VisualMarker other) {
this.name = other.name;
this.type = other.type;
this.positionX = other.positionX;
this.positionY = other.positionY;
this.radius = other.radius;
this.divisions = other.divisions;
this.color = other.color;
this.visible = other.visible;
}
}
}