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

55 Commits

Author SHA1 Message Date
Thor Brigsted
7a1726b342 Fixed commenting 2018-05-13 13:29:12 +02:00
Thor Brigsted
61ca00ce31 Renamed GetNodePath to GetNodeMenuName (consistency)
Empty menuNames now skips, just like null does
2018-05-13 12:18:16 +02:00
Thor Brigsted
19e244212c Added NodeRename #11 2018-04-05 20:59:50 +02:00
Thor Brigsted
1fff90cbf2 Added 'Clear Connections' right-click option for NodePorts 2018-03-28 00:55:53 +02:00
Thor Brigsted
71cde080b6 Revert "Performance improvement. (removed unnecessary override)"
This reverts commit 51e77a227956dd043b6a6b7b19ef440a10518909.
2018-02-05 03:12:50 +01:00
Thor Brigsted
51e77a2279 Performance improvement. (removed unnecessary override) 2018-01-30 20:31:31 +01:00
Thor Brigsted
5b79757667 Fixed issue #12 2018-01-26 17:58:48 +01:00
Thor Brigsted
73172a1c48 Fixed outOfSync bug in ClearInstancePorts 2018-01-26 12:16:11 +01:00
Thor Brigsted
51746307b1 Documentation corrections 2018-01-23 12:32:59 +01:00
Thor Brigsted
08582d9536
Merge branch 'master' into master 2018-01-09 01:23:31 +01:00
Thor Kramer Brigsted
6e649dcc24 Automatically relink renamed Node scripts 2018-01-08 14:34:54 +01:00
Thor Brigsted
0c6466f0b6 Documentation 2018-01-07 23:32:16 +01:00
Joram
477c5b16a0 added port setting 2018-01-03 18:35:02 +01:00
Thor Brigsted
e21398cd19 Added Node.ClearInstancePorts
Fixed System.Exception
2017-12-19 19:18:35 +01:00
Thor
247482d555 Added overload for RemoveInstancePort. Removed return bool. 2017-12-19 10:42:48 +01:00
Thor Brigsted
2291531ceb Added Node.OnRemoveConnection 2017-12-03 23:23:00 +01:00
Thor Brigsted
fe057a7be2 Added ShowBackingValue options for Input and Output
Added NodeEditorUtilities.GetAttrib<T>(Type classType, string fieldName, out T attribute)
2017-11-27 00:59:16 +01:00
Thor Kramer Brigsted
d68d926a2d Added color32 support for NodeTint 2017-11-14 16:50:28 +01:00
Thor Brigsted
fc16f69710 Nodes can now define a unique color per type using [NodeColor] 2017-11-14 01:07:26 +01:00
Thor Brigsted
c6a4735c71 Renamed to xNode
Added XNode and XNodeEDitor namespaces
Removed unnecessary usings
2017-11-05 23:42:31 +01:00
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