1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

35 Commits

Author SHA1 Message Date
Thor Kramer Brigsted
90c3621795 Moved NodeEditor.[CustomNodeEditor].contextMenuName to Node.[CreateNodeMenu].menuName 2017-11-02 17:37:11 +01:00
Thor Kramer Brigsted
8eff75fa7f Bug fixes 2017-11-02 16:17:28 +01:00
Thor Kramer Brigsted
702f34161a Fixed Node port enumerables not returning the right ports 2017-11-02 16:11:41 +01:00
Thor Kramer Brigsted
d3bb36fe0e Big update: Warning: Updating to this commit will break all node connections.
Internal NodePorts now uses dicts instead of lists. This is faster and more manageable.
Added instance ports.
Added Node.Ports, Node.Outputs, Node.Inputs, Node.InstanceOutputs, Node.InstanceInputs
Changed public GetInputByFieldName to GetInputValue and GetInputPort
2017-11-02 14:54:03 +01:00
Thor Brigsted
5f394581d6 Made Node.inputs and Node.outputs private. Started introducing instanceInputs and instanceOutputs. 2017-11-02 01:47:22 +01:00
Thor Brigsted
0150a7bb81 Improved GetInputsByFieldName<T> usage. Added getvalue type checks 2017-10-28 19:03:21 +02:00
Thor Kramer Brigsted
4de58ad0db Added T GetInputByFieldName<T>(string fieldName, T fallback = default<T>();
Now retrieving input values is much easier.
As simple as
Material material = GetInputByFieldName("material", this.material);
2017-10-27 14:06:39 +02:00
Thor Brigsted
d3a057b9af Cleaned Node.cs 2017-10-21 12:01:34 +02:00
Thor Brigsted
2dc7450661 Improved userfriendlyness of [Input] and [Output] 2017-10-20 23:01:38 +02:00
Thor
c1b2d2ff87 Started work on [Input] and [Output] improvements 2017-10-20 15:55:34 +02:00
Thor
9db84d1608 Replaced node Rect rect with node Vector2 position. Improved node hover check. 2017-10-19 15:15:34 +02:00
Thor Brigsted
5e68b6bcdc Big update.
Removal of scripts now also clears dependant nodes, to avoid null objects.
NodePorts now support fallback values.
UI Changes.
node.graph is now serialized as well.
2017-10-14 16:19:24 +02:00
Thor Brigsted
64282028aa Code FixFormat
None of the code was changed, just moved around.
2017-10-14 08:37:33 +02:00
Thor Brigsted
3dae0910dc Serialization now works correctly. Removal of nodes still broken 2017-10-13 00:08:33 +02:00
Thor Brigsted
8ce0d63903 NodeDataCache changed from ScriptableObject to static class.
Nodes still don't load properly, but we're getting there.
2017-10-12 00:18:40 +02:00
Thor Brigsted
d52ecf1931 Fixed compile errors. Still doesn't initialize correctly, nor saves connections 2017-10-10 00:30:24 +02:00
Thor Brigsted
76e8b70316 Initialization performance updates (wip) 2017-10-09 19:52:41 +02:00
Thor Brigsted
147424ca73 Added DisplayValue and GetValue 2017-10-09 00:29:40 +02:00
Thor Brigsted
6a4c29410a Added VerifyConnections, Added GetPortByFieldName. 2017-10-08 02:00:33 +02:00
Thor Brigsted
698f02d716 Serialization now works. Node.cs is now a ScriptableObject. 2017-10-07 01:54:10 +02:00
Thor Brigsted
5f4da093f3 Fixed node headers 2017-10-01 21:53:29 +02:00
Thor Brigsted
f8a0bb8f7c Started work on NodeGraphExample 2017-09-27 23:41:01 +02:00
Thor Brigsted
63808eb6a2 Removed GetInput and GetOutput and made inputs and outputs public 2017-09-27 22:45:28 +02:00
Thor Brigsted
2b0cf61435 Removed more JSON serialization
Also changed Rect "position" to Rect "rect"
2017-09-27 22:33:01 +02:00
Thor Brigsted
ae9943fae1 Removed JSON serialization.
Might re-add later. Removed because current implementation is hacky and i don't believe it is very future proof.
For now, you can create and save ScriptableObjects in the editor, and use them at runtime.
2017-09-27 00:01:09 +02:00
Unknown
59085db16a Streamlined creation of custom node ports
Instead of initializing port arrays in Init();, ports are now defined by attributes on public fields
2017-09-24 21:54:53 +02:00
Thor Brigsted
d88cf5b53d OnValidate added for nodes 2017-09-22 12:46:45 +02:00
Thor Brigsted
9ef6069ea7 Exposed node name 2017-09-22 10:28:44 +02:00
Thor Brigsted
b7543df012 Serialized connections
Nodes now also have a reference to their NodeGraph
2017-09-21 10:54:49 +02:00
Thor Brigsted
1606c583f9 Basic serialization 2017-09-20 23:04:49 +02:00
Thor Brigsted
d3f0d96954 Cleaned up 2017-09-20 20:25:21 +02:00
Thor Brigsted
f9152bf891 Editor core complete
Removed NodeConnection.cs: Node ports now operate by crossreferencing eachother
Changed from separate static classes to partial class
Removed UNEC Namespace
Added live hover info
2017-09-20 17:22:23 +02:00
Unknown
36ecfde3fe Connections, Ports 2017-09-19 00:15:17 +02:00
Thor Brigsted
5f0a776350 Started work on node graphs 2017-09-15 15:56:17 +02:00
Thor Brigsted
23c1d87988 Basic grid background 2017-09-15 00:46:21 +02:00