fr.jeanf.questsystem 0.0.37 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Runtime/Scripts/Core/QuestManager.cs +7 -11
- package/Runtime/Scripts/Core/QuestStep.cs +6 -12
- package/package.json +1 -1
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/Comparison.cs +0 -39
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/Comparison.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/ConditionalLink.cs +0 -4
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/ConditionalLink.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/ConditionalNode.cs +0 -72
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/ConditionalNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/ConditionalProcessor.cs +0 -200
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/ConditionalProcessor.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/Editor/ComparisonView.cs +0 -49
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/Editor/ComparisonView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/Editor/ConditionalProcessorView.cs +0 -53
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/Editor/ConditionalProcessorView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/Editor.meta +0 -8
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/IConditionalNode.cs +0 -12
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/IConditionalNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/RuntimeConditionalGraph.cs +0 -19
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/RuntimeConditionalGraph.cs.meta +0 -3
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/StartNode.cs +0 -24
- package/Runtime/Scripts/NodeGraph/ConditionalGraph/StartNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/ConditionalGraph.meta +0 -8
- package/Runtime/Scripts/NodeGraph/CustomConvertions.cs +0 -17
- package/Runtime/Scripts/NodeGraph/CustomConvertions.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/AbstractNodeView.cs +0 -17
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/AbstractNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/CircleRadiansView.cs +0 -49
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/CircleRadiansView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/ColorNodeView.cs +0 -18
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/ColorNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/FloatNodeView.cs +0 -31
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/FloatNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/ForLoopNodeView.cs +0 -23
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/ForLoopNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/IfNodeView.cs +0 -22
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/IfNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/MessageNode2View.cs +0 -16
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/MessageNode2View.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/MutliAddNodeView.cs +0 -27
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/MutliAddNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/PrefabNodeView.cs +0 -41
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/PrefabNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/PrintNodeView.cs +0 -67
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/PrintNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/SettingsNodeView.cs +0 -32
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/SettingsNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/StringNodeView.cs +0 -28
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/StringNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/SwitchNodeView.cs +0 -21
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/SwitchNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/TypeSwitchNodeView.cs +0 -25
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor/TypeSwitchNodeView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Editor.meta +0 -8
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/AbstractNode.cs +0 -26
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/AbstractNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/CircleRadians.cs +0 -28
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/CircleRadians.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ColorNode.cs +0 -14
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ColorNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ConsoleLogNode.cs +0 -41
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ConsoleLogNode.cs.meta +0 -3
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/CustomPortDataNode.cs +0 -52
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/CustomPortDataNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/CustomPortsNode.cs +0 -64
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/CustomPortsNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/DrawerFieldTestNode.cs +0 -56
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/DrawerFieldTestNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/FieldTestNode.cs +0 -28
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/FieldTestNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/FloatNode.cs +0 -18
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/FloatNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ForLoopNode.cs +0 -42
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ForLoopNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/GameObjectNode.cs +0 -20
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/GameObjectNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/IfNode.cs +0 -33
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/IfNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/Inheritance1.cs +0 -24
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/Inheritance1.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/Inheritance2.cs +0 -24
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/Inheritance2.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/InheritanceBase.cs +0 -24
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/InheritanceBase.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/InspectorNode.cs +0 -27
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/InspectorNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ListNode.cs +0 -24
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/ListNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/MessageNode.cs +0 -27
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/MessageNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/MessageNode2.cs +0 -22
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/MessageNode2.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/MultiAddNode.cs +0 -40
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/MultiAddNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/OutputNode.cs +0 -21
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/OutputNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/PortConnectionTests.cs +0 -47
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/PortConnectionTests.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/PrefabNode.cs +0 -14
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/PrefabNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/PrintNode.cs +0 -23
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/PrintNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/RenamableNode.cs +0 -18
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/RenamableNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/SettingsNode.cs +0 -27
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/SettingsNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/StringNode.cs +0 -14
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/StringNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/SubNode.cs +0 -24
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/SubNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/SwitchNode.cs +0 -22
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/SwitchNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/TextNode.cs +0 -14
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/TextNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/TypeSwitchNode.cs +0 -32
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/TypeSwitchNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/UnityEventNode.cs +0 -22
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/UnityEventNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VectorNode.cs +0 -22
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VectorNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VerticalNode.cs +0 -23
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VerticalNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VerticalNode2.cs +0 -25
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VerticalNode2.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VisibleIfAttributeNode.cs +0 -49
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/VisibleIfAttributeNode.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/WaitFrameNode.cs +0 -48
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/WaitFrameNode.cs.meta +0 -3
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/WaitNode.cs +0 -48
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes/WaitNode.cs.meta +0 -3
- package/Runtime/Scripts/NodeGraph/DefaultNodes/Nodes.meta +0 -8
- package/Runtime/Scripts/NodeGraph/DefaultNodes.meta +0 -8
- package/Runtime/Scripts/NodeGraph/Editor/01_DefaultGraph/DefaultGraphWindow.cs +0 -41
- package/Runtime/Scripts/NodeGraph/Editor/01_DefaultGraph/DefaultGraphWindow.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/01_DefaultGraph.meta +0 -8
- package/Runtime/Scripts/NodeGraph/Editor/02_CustomContextMenu/CustomContextMenuGraphView.cs +0 -34
- package/Runtime/Scripts/NodeGraph/Editor/02_CustomContextMenu/CustomContextMenuGraphView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/02_CustomContextMenu/CustomContextMenuGraphWindow.cs +0 -44
- package/Runtime/Scripts/NodeGraph/Editor/02_CustomContextMenu/CustomContextMenuGraphWindow.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/02_CustomContextMenu.meta +0 -8
- package/Runtime/Scripts/NodeGraph/Editor/03_CustomToolbar/CustomToolbarGraphView.cs +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/03_CustomToolbar/CustomToolbarGraphView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/03_CustomToolbar/CustomToolbarGraphWindow.cs +0 -44
- package/Runtime/Scripts/NodeGraph/Editor/03_CustomToolbar/CustomToolbarGraphWindow.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/03_CustomToolbar/CustomToolbarView.cs +0 -23
- package/Runtime/Scripts/NodeGraph/Editor/03_CustomToolbar/CustomToolbarView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/03_CustomToolbar.meta +0 -8
- package/Runtime/Scripts/NodeGraph/Editor/04_ExposedProperties/ExposedPropertiesGraph.cs +0 -10
- package/Runtime/Scripts/NodeGraph/Editor/04_ExposedProperties/ExposedPropertiesGraph.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/04_ExposedProperties/ExposedPropertiesGraphView.cs +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/04_ExposedProperties/ExposedPropertiesGraphView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/04_ExposedProperties/ExposedPropertiesGraphWindow.cs +0 -46
- package/Runtime/Scripts/NodeGraph/Editor/04_ExposedProperties/ExposedPropertiesGraphWindow.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/04_ExposedProperties.meta +0 -8
- package/Runtime/Scripts/NodeGraph/Editor/05_All/AllGraphView.cs +0 -28
- package/Runtime/Scripts/NodeGraph/Editor/05_All/AllGraphView.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/05_All/AllGraphWindow.cs +0 -52
- package/Runtime/Scripts/NodeGraph/Editor/05_All/AllGraphWindow.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/05_All.meta +0 -8
- package/Runtime/Scripts/NodeGraph/Editor/GraphAssetCallbacks.cs +0 -30
- package/Runtime/Scripts/NodeGraph/Editor/GraphAssetCallbacks.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/GraphAssetInspector.cs +0 -36
- package/Runtime/Scripts/NodeGraph/Editor/GraphAssetInspector.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/GraphBehaviourEditor.cs +0 -35
- package/Runtime/Scripts/NodeGraph/Editor/GraphBehaviourEditor.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor/GraphProcessorMenuItems.cs +0 -13
- package/Runtime/Scripts/NodeGraph/Editor/GraphProcessorMenuItems.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/Editor.meta +0 -8
- package/Runtime/Scripts/NodeGraph/GraphBehaviour.cs +0 -16
- package/Runtime/Scripts/NodeGraph/GraphBehaviour.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/RuntimeGraph/RuntimeGraph.cs +0 -31
- package/Runtime/Scripts/NodeGraph/RuntimeGraph/RuntimeGraph.cs.meta +0 -11
- package/Runtime/Scripts/NodeGraph/RuntimeGraph.meta +0 -8
- package/Runtime/Scripts/NodeGraph.meta +0 -8
- package/Runtime/Scripts/Nodes/EndNode.cs +0 -14
- package/Runtime/Scripts/Nodes/EndNode.cs.meta +0 -11
- package/Runtime/Scripts/Nodes/QuestFinished.asset +0 -16
- package/Runtime/Scripts/Nodes/QuestFinished.asset.meta +0 -8
- package/Runtime/Scripts/Nodes/QuestStarted.asset +0 -16
- package/Runtime/Scripts/Nodes/QuestStarted.asset.meta +0 -8
- package/Runtime/Scripts/Nodes/QuestStepNode.cs +0 -64
- package/Runtime/Scripts/Nodes/QuestStepNode.cs.meta +0 -11
- package/Runtime/Scripts/Nodes/QuestTree.asset +0 -153
- package/Runtime/Scripts/Nodes/QuestTree.asset.meta +0 -8
- package/Runtime/Scripts/Nodes/StepStarted.asset +0 -16
- package/Runtime/Scripts/Nodes/StepStarted.asset.meta +0 -8
- package/Runtime/Scripts/Nodes.meta +0 -8
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
using UnityEngine;
|
|
2
|
-
using GraphProcessor;
|
|
3
|
-
using System;
|
|
4
|
-
using NodeGraphProcessor.Examples;
|
|
5
|
-
using System.Collections.Generic;
|
|
6
|
-
|
|
7
|
-
public class CustomConvertions : ITypeAdapter
|
|
8
|
-
{
|
|
9
|
-
public static Vector4 ConvertFloatToVector4(float from) => new Vector4(from, from, from, from);
|
|
10
|
-
public static float ConvertVector4ToFloat(Vector4 from) => from.x;
|
|
11
|
-
|
|
12
|
-
public override IEnumerable<(Type, Type)> GetIncompatibleTypes()
|
|
13
|
-
{
|
|
14
|
-
yield return (typeof(ConditionalLink), typeof(object));
|
|
15
|
-
yield return (typeof(RelayNode.PackedRelayData), typeof(object));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(AbstractNode))]
|
|
11
|
-
public class AbstractNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
controlsContainer.Add(new Label("Inheritance support"));
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(CircleRadians))]
|
|
11
|
-
public class CircleRadiansView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
CircleRadians node;
|
|
14
|
-
VisualElement listContainer;
|
|
15
|
-
|
|
16
|
-
public override void Enable()
|
|
17
|
-
{
|
|
18
|
-
node = nodeTarget as CircleRadians;
|
|
19
|
-
|
|
20
|
-
listContainer = new VisualElement();
|
|
21
|
-
// Create your fields using node's variables and add them to the controlsContainer
|
|
22
|
-
|
|
23
|
-
controlsContainer.Add(listContainer);
|
|
24
|
-
onPortConnected += OnPortUpdate;
|
|
25
|
-
onPortDisconnected += OnPortUpdate;
|
|
26
|
-
|
|
27
|
-
UpdateOutputRadians(GetFirstPortViewFromFieldName("outputRadians").connectionCount);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
void UpdateOutputRadians(int count)
|
|
31
|
-
{
|
|
32
|
-
node.outputRadians = new List<float>();
|
|
33
|
-
|
|
34
|
-
listContainer.Clear();
|
|
35
|
-
|
|
36
|
-
for (int i = 0; i < count; i++)
|
|
37
|
-
{
|
|
38
|
-
float r = (Mathf.PI * 2 / count) * i;
|
|
39
|
-
node.outputRadians.Add(r);
|
|
40
|
-
listContainer.Add(new Label(r.ToString("F3")));
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
public void OnPortUpdate(PortView port)
|
|
45
|
-
{
|
|
46
|
-
// There is only one port on this node so it can only be the output
|
|
47
|
-
UpdateOutputRadians(port.connectionCount);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(ColorNode))]
|
|
11
|
-
public class ColorNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
AddControlField(nameof(ColorNode.color));
|
|
16
|
-
style.width = 200;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(FloatNode))]
|
|
11
|
-
public class FloatNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
var floatNode = nodeTarget as FloatNode;
|
|
16
|
-
|
|
17
|
-
DoubleField floatField = new DoubleField
|
|
18
|
-
{
|
|
19
|
-
value = floatNode.input
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
floatNode.onProcessed += () => floatField.value = floatNode.input;
|
|
23
|
-
|
|
24
|
-
floatField.RegisterValueChangedCallback((v) => {
|
|
25
|
-
owner.RegisterCompleteObjectUndo("Updated floatNode input");
|
|
26
|
-
floatNode.input = (float)v.newValue;
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
controlsContainer.Add(floatField);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(ForLoopNode))]
|
|
11
|
-
public class ForLoopNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
var node = nodeTarget as ForLoopNode;
|
|
16
|
-
|
|
17
|
-
DrawDefaultInspector();
|
|
18
|
-
|
|
19
|
-
// Create your fields using node's variables and add them to the controlsContainer
|
|
20
|
-
|
|
21
|
-
// controlsContainer.Add(new Label("Hello World !"));
|
|
22
|
-
}
|
|
23
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(IfNode))]
|
|
11
|
-
public class IfNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
hasSettings = true; // or base.Enable();
|
|
16
|
-
var node = nodeTarget as IfNode;
|
|
17
|
-
|
|
18
|
-
// Create your fields using node's variables and add them to the controlsContainer
|
|
19
|
-
|
|
20
|
-
controlsContainer.Add(new Label($"Last Evaluation: {node.condition}"));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
using UnityEngine;
|
|
2
|
-
using UnityEditor;
|
|
3
|
-
using UnityEngine.UIElements;
|
|
4
|
-
using GraphProcessor;
|
|
5
|
-
|
|
6
|
-
[NodeCustomEditor(typeof(MessageNode2))]
|
|
7
|
-
public class MessageNode2View : BaseNodeView
|
|
8
|
-
{
|
|
9
|
-
public override void Enable()
|
|
10
|
-
{
|
|
11
|
-
var node = nodeTarget as MessageNode2;
|
|
12
|
-
|
|
13
|
-
var icon = EditorGUIUtility.IconContent("UnityLogo").image;
|
|
14
|
-
AddMessageView("Custom message !", icon, Color.green);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(MultiAddNode))]
|
|
11
|
-
public class MultiAddNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
var floatNode = nodeTarget as MultiAddNode;
|
|
16
|
-
|
|
17
|
-
DoubleField floatField = new DoubleField
|
|
18
|
-
{
|
|
19
|
-
value = floatNode.output
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
// Update the UI value after each processing
|
|
23
|
-
nodeTarget.onProcessed += () => floatField.value = floatNode.output;
|
|
24
|
-
|
|
25
|
-
controlsContainer.Add(floatField);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(PrefabNode))]
|
|
11
|
-
public class PrefabNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
var prefabNode = nodeTarget as PrefabNode;
|
|
16
|
-
|
|
17
|
-
var objField = new ObjectField
|
|
18
|
-
{
|
|
19
|
-
objectType = typeof(GameObject),
|
|
20
|
-
allowSceneObjects = false,
|
|
21
|
-
value = prefabNode.output,
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
var preview = new Image();
|
|
25
|
-
|
|
26
|
-
objField.RegisterValueChangedCallback(v => {
|
|
27
|
-
prefabNode.output = objField.value as GameObject;
|
|
28
|
-
UpdatePreviewImage(preview, objField.value);
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
UpdatePreviewImage(preview, prefabNode.output);
|
|
32
|
-
|
|
33
|
-
controlsContainer.Add(objField);
|
|
34
|
-
controlsContainer.Add(preview);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
void UpdatePreviewImage(Image image, Object obj)
|
|
38
|
-
{
|
|
39
|
-
image.image = AssetPreview.GetAssetPreview(obj) ?? AssetPreview.GetMiniThumbnail(obj);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
using Unity.Jobs;
|
|
10
|
-
|
|
11
|
-
[NodeCustomEditor(typeof(PrintNode))]
|
|
12
|
-
public class PrintNodeView : BaseNodeView
|
|
13
|
-
{
|
|
14
|
-
Label printLabel;
|
|
15
|
-
PrintNode printNode;
|
|
16
|
-
|
|
17
|
-
public override void Enable()
|
|
18
|
-
{
|
|
19
|
-
printNode = nodeTarget as PrintNode;
|
|
20
|
-
|
|
21
|
-
printLabel = new Label();
|
|
22
|
-
controlsContainer.Add(printLabel);
|
|
23
|
-
|
|
24
|
-
nodeTarget.onProcessed += UpdatePrintLabel;
|
|
25
|
-
onPortConnected += (p) => UpdatePrintLabel();
|
|
26
|
-
onPortDisconnected += (p) => UpdatePrintLabel();
|
|
27
|
-
|
|
28
|
-
UpdatePrintLabel();
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
void UpdatePrintLabel()
|
|
32
|
-
{
|
|
33
|
-
if (printNode.obj != null)
|
|
34
|
-
printLabel.text = printNode.obj.ToString();
|
|
35
|
-
else
|
|
36
|
-
printLabel.text = "null";
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
[NodeCustomEditor(typeof(ConditionalPrintNode))]
|
|
41
|
-
public class ConditionalPrintNodeView : BaseNodeView
|
|
42
|
-
{
|
|
43
|
-
Label printLabel;
|
|
44
|
-
ConditionalPrintNode printNode;
|
|
45
|
-
|
|
46
|
-
public override void Enable()
|
|
47
|
-
{
|
|
48
|
-
printNode = nodeTarget as ConditionalPrintNode;
|
|
49
|
-
|
|
50
|
-
printLabel = new Label();
|
|
51
|
-
controlsContainer.Add(printLabel);
|
|
52
|
-
|
|
53
|
-
nodeTarget.onProcessed += UpdatePrintLabel;
|
|
54
|
-
onPortConnected += (p) => UpdatePrintLabel();
|
|
55
|
-
onPortDisconnected += (p) => UpdatePrintLabel();
|
|
56
|
-
|
|
57
|
-
UpdatePrintLabel();
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
void UpdatePrintLabel()
|
|
61
|
-
{
|
|
62
|
-
if (printNode.obj != null)
|
|
63
|
-
printLabel.text = printNode.obj.ToString();
|
|
64
|
-
else
|
|
65
|
-
printLabel.text = "null";
|
|
66
|
-
}
|
|
67
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(SettingsNode))]
|
|
11
|
-
public class SettingsNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
protected override bool hasSettings => true;
|
|
14
|
-
|
|
15
|
-
SettingsNode settingsNode;
|
|
16
|
-
|
|
17
|
-
public override void Enable()
|
|
18
|
-
{
|
|
19
|
-
settingsNode = nodeTarget as SettingsNode;
|
|
20
|
-
|
|
21
|
-
controlsContainer.Add(new Label("Hello World !"));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
protected override VisualElement CreateSettingsView()
|
|
25
|
-
{
|
|
26
|
-
var settings = new VisualElement();
|
|
27
|
-
|
|
28
|
-
settings.Add(new EnumField("S", settingsNode.setting));
|
|
29
|
-
|
|
30
|
-
return settings;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
using System.Linq;
|
|
10
|
-
|
|
11
|
-
[NodeCustomEditor(typeof(StringNode))]
|
|
12
|
-
public class StringNodeView : BaseNodeView
|
|
13
|
-
{
|
|
14
|
-
public override void Enable()
|
|
15
|
-
{
|
|
16
|
-
var node = nodeTarget as StringNode;
|
|
17
|
-
|
|
18
|
-
var textArea = new TextField(-1, true, false, '*') { value = node.output };
|
|
19
|
-
textArea.Children().First().style.unityTextAlign = TextAnchor.UpperLeft;
|
|
20
|
-
textArea.style.width = 200;
|
|
21
|
-
textArea.style.height = 100;
|
|
22
|
-
textArea.RegisterValueChangedCallback(v => {
|
|
23
|
-
owner.RegisterCompleteObjectUndo("Edit string node");
|
|
24
|
-
node.output = v.newValue;
|
|
25
|
-
});
|
|
26
|
-
controlsContainer.Add(textArea);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(SwitchNode))]
|
|
11
|
-
public class SwitchNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
var node = nodeTarget as SwitchNode;
|
|
16
|
-
|
|
17
|
-
// Create your fields using node's variables and add them to the controlsContainer
|
|
18
|
-
|
|
19
|
-
controlsContainer.Add(new Label("Hello World !"));
|
|
20
|
-
}
|
|
21
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
using System.Collections;
|
|
2
|
-
using System.Collections.Generic;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
using UnityEditor;
|
|
5
|
-
using UnityEditor.UIElements;
|
|
6
|
-
using UnityEditor.Experimental.GraphView;
|
|
7
|
-
using UnityEngine.UIElements;
|
|
8
|
-
using GraphProcessor;
|
|
9
|
-
|
|
10
|
-
[NodeCustomEditor(typeof(TypeSwitchNode))]
|
|
11
|
-
public class TypeSwitchNodeView : BaseNodeView
|
|
12
|
-
{
|
|
13
|
-
public override void Enable()
|
|
14
|
-
{
|
|
15
|
-
var node = nodeTarget as TypeSwitchNode;
|
|
16
|
-
|
|
17
|
-
var t = new Toggle("Swith type"){ value = node.toggleType };
|
|
18
|
-
t.RegisterValueChangedCallback(e => {
|
|
19
|
-
node.toggleType = e.newValue;
|
|
20
|
-
ForceUpdatePorts();
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
controlsContainer.Add(t);
|
|
24
|
-
}
|
|
25
|
-
}
|