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

320 Commits

Author SHA1 Message Date
Thor Kramer Brigsted
5f161b80e7 Added grid snap and color settings. 2017-11-21 12:53:56 +01:00
Thor Kramer Brigsted
81f5879e92 Started work on snap and grid color 2017-11-21 10:51:27 +01:00
Thor Kramer Brigsted
566a64b31f Added preferences shortcut to graph context menu 2017-11-20 15:45:30 +01:00
Thor Kramer Brigsted
07f1f9aac5 Maked NodeEditor.OnHeaderGUI as virtual 2017-11-20 09:51:12 +01:00
Thor Brigsted
8bfe09dfb7 Added Duplicate and Move To Top to node context menu 2017-11-20 00:54:04 +01:00
Thor Brigsted
69c2b254aa Added [ContextMenu] support 2017-11-20 00:11:17 +01:00
Thor Brigsted
dabd55cf49 Context menu limited to graph background and node headers 2017-11-19 22:38:05 +01:00
Thor Brigsted
ad7d9360e5 More inclusive NodeEditorGUILayout 2017-11-16 01:59:46 +01:00
Thor Kramer Brigsted
d68d926a2d Added color32 support for NodeTint 2017-11-14 16:50:28 +01:00
Thor Brigsted
5267ac1a30 Merge branch 'development' 2017-11-14 01:07:59 +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 Kramer Brigsted
719171cef4 Improved NodeEditorGUILayout options 2017-11-09 22:03:28 +01:00
Thor Kramer Brigsted
60bece4e68 Removed F for "Home" hotkey. It was fighting with text inputs. 2017-11-09 22:02:08 +01:00
Thor Brigsted
dca06edd97 More NodeEditorGUILayout options 2017-11-09 02:12:55 +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
455bb723d2 Improved editor responsiveness
No longer saves asset on right click drag
2017-11-07 09:45:34 +01:00
Thor Brigsted
42d13ad6a9 Added null check 2017-11-06 01:32:29 +01:00
Thor Brigsted
a1dd3bb9df Changed window name to xNode 2017-11-06 01:12:49 +01:00
Thor Brigsted
05f7b4ca82 Tooltip shows static output values 2017-11-06 00:36:25 +01:00
Thor Brigsted
9784bebd88 Added null check 2017-11-05 23:54:53 +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
432ce05bb5 Fixed dynamic node width.
Fixed field widths.
2017-11-03 10:11:07 +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
b70ba44c23 Added NodeEditorGUILayout.PortField for drawing ports without a serializable property 2017-11-02 16:18:03 +01:00
Thor Kramer Brigsted
8eff75fa7f Bug fixes 2017-11-02 16:17:28 +01:00
Thor Kramer Brigsted
cfccc4f89a Made NodePort.type serializable - needed for instance ports 2017-11-02 16:12:26 +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
028c481a9d Made NodePort.node private with a getter 2017-11-02 01:49:17 +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 Kramer Brigsted
ace1e8ccd8 PropertyField null check and default includeChildren value 2017-11-01 17:41:43 +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 Kramer Brigsted
f335ecfbb5 Nodes now show unsupported value types as labels. 2017-10-31 11:25:49 +01:00
Thor Kramer Brigsted
eaeca48f69 Improved null handling 2017-10-30 11:38:36 +01:00
Thor Brigsted
b9e06be096 Made the tooltip type info more readable 2017-10-30 01:33:06 +01:00
Thor Brigsted
cb3424d6eb Fixed potential null errors 2017-10-29 21:16:23 +01:00
Thor Brigsted
29b9841014 Fixed bug where a null node would stop node drawing 2017-10-29 21:11:39 +01:00
Thor Brigsted
b48f7d63b4 Null check 2017-10-28 19:11:13 +02:00
Thor Brigsted
0150a7bb81 Improved GetInputsByFieldName<T> usage. Added getvalue type checks 2017-10-28 19:03:21 +02:00
Thor Brigsted
38d45d0486 Fixed enum field inspector 2017-10-28 00:06:07 +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 Kramer Brigsted
4c6c10f15b Fixed incorrect position checking while zoomed 2017-10-26 13:33:55 +02:00
Thor Kramer Brigsted
ac4fb1efd9 Added editor onUpdateNode callback on Connect/Disconnect 2017-10-26 12:40:34 +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
49c12ec87e Added NodePort.GetInputSum 2017-10-20 12:34:49 +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
9dd784d21e Improved handling of null object fields 2017-10-20 11:39:11 +02:00