1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 17:26:02 +08:00

30 Commits

Author SHA1 Message Date
Thor Brigsted
d7e133a822 Defined namespaces across all scripts prevent conflicts. 2017-12-02 09:56:41 +01:00
Thor Kramer Brigsted
4f65fcefc6 Fixed bug that would cause nodes without static ports to not properly remove old static ports 2017-11-07 10:02:58 +01:00
Thor Kramer Brigsted
8bb30e2f87 Example Display node init fix. Release version. 2017-11-06 12:04:14 +01:00
Thor Brigsted
05f7b4ca82 Tooltip shows static output values 2017-11-06 00:36:25 +01:00
Thor Brigsted
031e1d83df Updated Examples 2017-11-05 23:55:44 +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
86c7966fe6 Changed NodeEditor.OnHeaderGUI and NodeEditorOnBodyGUI to public 2017-11-02 17:46:44 +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
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 Kramer Brigsted
ab74f8fd36 OnBodyGUI() remake
Default OnBodyGUI now uses default PropertyFields as suppied by UnityEditor.
This means fields are drawn on nodes the same way as they are drawn in the inspector.
out portPosition has also been moved to a static field. It is set automatically using the NodeEditorGuiLayout methods.
Alternatively, you can alter it manually during your node GUI drawing.
2017-10-31 14:52:10 +01:00
Thor Brigsted
199ac1ba78 Example changes. 2017-10-29 21:35:01 +01:00
Thor Brigsted
3e91a30e88 Updated examples 2017-10-28 00:06:25 +02:00
Thor Brigsted
2dc7450661 Improved userfriendlyness of [Input] and [Output] 2017-10-20 23:01:38 +02:00
Thor
4fcaede3b0 NodePort.GetValue changes
Removed NodePort.GetValue
Added NodePort.GetOutputValue
Added NodePort.GetInputValue
Added NodePort.GetInputValue<T>
Added NodePort.GetInputValues
Added NodePort.GetInputValues<T>
Added NodePort.TryGetInputValue<T>
2017-10-20 11:41:16 +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
94b9318858 Renamed some methods 2017-10-16 21:08:35 +02:00
Thor Brigsted
5b1026e698 Fixed field editor bug, added tooltip. 2017-10-14 18:18:25 +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
427dc8d53c Added NodeEditorGUILayout static class. Improved int, float, double, long editor fields. 2017-10-14 10:47:16 +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
9abdf2995e Added Node Editor entry in Preferences. Custom colors for value types can now be assigned 2017-10-14 08:33:46 +02:00
Thor Brigsted
bc5c060dee Improved broken connection cleanup. Example updates 2017-10-13 20:28:40 +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
d608eaab9a NodeDataCache initialization now works correctly
Still needs work on GetPorts, keep connections, disconnect invalid, etc.
2017-10-11 09:03:20 +02:00
Thor Brigsted
984364f08f Still haven't found a solution to initializing a static scriptableObject instance 2017-10-10 23:53:27 +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
147424ca73 Added DisplayValue and GetValue 2017-10-09 00:29:40 +02:00
Thor Brigsted
cd1864fce3 Better asset handling on add/remove node 2017-10-08 23:44:08 +02:00
Thor Brigsted
3e54f60188 Moved example files around 2017-10-08 23:33:08 +02:00