A game about forced loneliness, made by TACStudios
1using System.Collections.Generic;
2
3namespace Unity.VisualScripting
4{
5 [Plugin(BoltFlow.ID)]
6 public sealed class BoltFlowConfiguration : PluginConfiguration
7 {
8 private BoltFlowConfiguration(BoltFlow plugin) : base(plugin) { }
9
10 public override string header => "Script Graphs";
11
12 /// <summary>
13 /// (Experimental) Whether the node database should be incrementally updated
14 /// whenever a codebase change is detected.
15 /// </summary>
16 [EditorPref, RenamedFrom("updateUnitsAutomatically")]
17 public bool updateNodesAutomatically { get; set; } = false;
18
19 /// <summary>
20 /// Whether predictive debugging should warn about null value inputs.
21 /// Note that in some cases, this setting may report false positives.
22 /// </summary>
23 [EditorPref]
24 public bool predictPotentialNullReferences { get; set; } = true;
25
26 /// <summary>
27 /// Whether predictive debugging should warn about missing components.
28 /// Note that in some cases, this setting may report false positives.
29 /// </summary>
30 [EditorPref]
31 public bool predictPotentialMissingComponents { get; set; } = true;
32
33 /// <summary>
34 /// Whether values should be shown on flow graph connections.
35 /// </summary>
36 [EditorPref]
37 public bool showConnectionValues { get; set; } = true;
38
39 /// <summary>
40 /// Whether predictable values should be shown on flow graph connections.
41 /// </summary>
42 [EditorPref]
43 public bool predictConnectionValues { get; set; } = false;
44
45 /// <summary>
46 /// Whether labels should be hidden on ports when the value can be deduced from the context.
47 /// Disabling will make nodes more explicit but less compact.
48 /// </summary>
49 [EditorPref]
50 public bool hidePortLabels { get; set; } = true;
51
52 /// <summary>
53 /// Whether active control connections should show a droplet animation.
54 /// </summary>
55 [EditorPref]
56 public bool animateControlConnections { get; set; } = true;
57
58 /// <summary>
59 /// Whether active value connections should show a droplet animation.
60 /// </summary>
61 [EditorPref]
62 public bool animateValueConnections { get; set; } = true;
63
64 /// <summary>
65 /// When active, right-clicking a flow graph will skip the context menu
66 /// and instantly open the fuzzy finder. To open the context menu, hold shift.
67 /// </summary>
68 [EditorPref]
69 public bool skipContextMenu { get; set; } = false;
70
71 [ProjectSetting(visible = false, resettable = false)]
72 public HashSet<string> favoriteUnitOptions { get; set; } = new HashSet<string>();
73 }
74}