-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathNodeViewSettings.cs
59 lines (33 loc) · 1.56 KB
/
NodeViewSettings.cs
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(menuName = "Node Editor/Node View Settings")]
public class NodeViewSettings : ScriptableObject
{
[Header("Layout Settings")]
[SerializeField] Vector2 minimumSize;
public Vector2 MinimumSize { get { return minimumSize; } }
[SerializeField] Vector2 minimumSizeCollapsed;
public Vector2 MinimumSizeCollapsed { get { return minimumSizeCollapsed; } }
[SerializeField] float minimumLabelWidth;
public float MinimumLabelWidth { get { return minimumLabelWidth; } }
[SerializeField] float minimumFieldWidth;
public float MinimumFieldWidth { get { return minimumFieldWidth; } }
[SerializeField] bool indentNested = true;
public bool IndentNested { get { return indentNested; } }
[SerializeField] bool indentHeadersOnly = true;
public bool IndentHeadersOnly { get { return indentHeadersOnly; } }
[Header("GUI Styles")]
[SerializeField] GUIStyle guiStyle;
public GUIStyle GUIStyle { get { return guiStyle; } }
[SerializeField] GUIStyle nodeHeaderStyle;
public GUIStyle NodeHeaderStyle { get { return nodeHeaderStyle; } }
[SerializeField] GUIStyle separatorStyle;
public GUIStyle SeparatorStyle { get { return separatorStyle; } }
[SerializeField] GUIStyle leftConnectorStyle;
public GUIStyle LeftConnectorStyle { get { return leftConnectorStyle; } }
[SerializeField] GUIStyle rightConnectorStyle;
public GUIStyle RightConnectorStyle { get { return rightConnectorStyle; } }
[SerializeField] GUIStyle tagStyle;
public GUIStyle TagStyle { get { return tagStyle; } }
}