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

390 Commits

Author SHA1 Message Date
Thor Brigsted
4edcc3f099 Fixed formatting, fixed dashed stroke style 2019-11-14 17:40:09 +01:00
Simon Rodriguez
ec9c5a99de optimized linq function 2019-11-13 01:14:09 +01:00
Simon Rodriguez
71023e1d58 microoptimization, removes implicit case from vec2 to vec3. 2019-11-13 00:14:29 +01:00
Simon Rodriguez
91eafcc47d the + and * was creating a lot of new vector2s, went down 80% in call time with this 2019-11-13 00:10:45 +01:00
Simon Rodriguez
92ebd59539 reuse the list of grid points instead of creating a new one for each node->port 2019-11-12 23:19:51 +01:00
Simon Rodriguez
8b99a34a63 The in parameter was is available in C# 7.2 and later. This breaks compatibility with earlier versions. 2019-11-12 23:05:33 +01:00
apkd
e15076b34f Use Vector2 in bezier calculations 2019-10-27 16:37:31 +01:00
apkd
455107aabb Optimize NodeEditorGUI.DrawNoodle 2019-10-27 16:30:05 +01:00
DeepWolf413
aeaaf18099 Added a null check for NodeEditorWindow.current.
It returns a new instance of the Settings class if the NodeEditorWindow.current is null.
2019-10-23 12:01:20 +02:00
Thor Brigsted
421fb5747e Added virtual NodeEditorGraph.GetNoodlePath and GetNoodleStroke for additional customization 2019-10-17 00:16:36 +02:00
Thor Brigsted
08af93c2e3 Added NodeGraphEditor.GetNoodleThickness 2019-10-16 23:08:07 +02:00
Igor Vasiak
63b0bf428b Added gradients to connection noodles (#191)
Upgrade notice: Override GetNoodleGradient instead of GetNoodleColor
2019-10-15 17:13:54 +02:00
Simon Rodriguez
1b9a04017b this action needs a repaint 2019-10-09 10:20:28 +02:00
Simon Rodriguez
6a1c1dbb4f This line was not present before commit 43bcb54fda4378e46a678c866242954248a63702 (Odin inspector support (#182) and causes the window to repaint every frame but only if you have a custom node editor. 2019-10-09 10:20:11 +02:00
Thor Brigsted
810960e4a6 Fixed #190 - OnWillDeleteAsset() conflicts with lighting data regeneration 2019-09-27 18:49:11 +02:00
Thor Brigsted
085906efd2 Moved default EditorGUIUtility.labelWidth so that it can be overwritten in OnBodyGUI 2019-09-25 16:39:52 +02:00
Thor Brigsted
4b073648c9 Added noodle hover highlight 2019-09-25 10:48:36 +02:00
Thor Brigsted
979bd5f7cf Added nodeGraphEditor.GetNoodleColor
Now you can override the color of noodles!
2019-09-23 23:25:23 +02:00
Thor Brigsted
445a47cd1d Autoconnect bugfix
1. Add a node
2. Drag a port and create a new node that it connects to
3. Delete that latest node
4. Create it with just right click, the first node will autoconnect to it
2019-09-09 00:44:36 +02:00
Thor Brigsted
4e1b2e1fe6 Fixed warning 2019-09-07 04:03:00 +02:00
Thor Brigsted
1254836a84 .NET 3.5 compatability 2019-09-07 04:01:15 +02:00
MowfaqAlarbi
c51a3a8f67 Select All Feature (#184)
If anything is selected, A deselects all.
If nothing is selected, A selects all.
2019-09-07 00:57:34 +02:00
Thor Brigsted
305af376c5 Added link to documentation in preferences 2019-09-06 19:26:01 +02:00
MowfaqAlarbi
5433e36837 Show Node Create list When Dragging To Nothing (#183)
And a user setting to disable it, of course
2019-09-06 19:13:00 +02:00
Simon Rodriguez
c16ad1fff0 Added functionality that focuses on selected nodes. (#173)
Resets view if no nodes are selected.
2019-09-03 22:18:30 +02:00
Thor Brigsted
43bcb54fda Odin inspector support (#182)
* Added Odin Inspector support
* Added support for ports
2019-09-02 00:41:57 +02:00
Thor Brigsted
6fa3bdf2ad Marked NodeEnumDrawer ShowContextMenuAtMouse public 2019-08-12 22:07:27 +02:00
Thor Brigsted
c995bdf0bc Added NodeEnumDrawer.EnumPopup so you can use it from your own node editor scripts 2019-08-12 01:01:57 +02:00
Thor Brigsted
788b8d8a0b Automatically remove "Node" postfix from creation menu 2019-08-12 00:11:14 +02:00
Thor Brigsted
650522223c Fixed minor jittering with tooltips 2019-08-11 23:52:33 +02:00
Thor Brigsted
25d208d278 Fixed #156 - Incorrect drawing of custom graph editor OnGUI 2019-08-08 09:56:10 +02:00
Thor Brigsted
80c8b36ab8 Removed unused hashset 2019-08-05 00:51:47 +02:00
Thor Brigsted
f38ff44261 Fixed #175 - Adjusted skipped DLLs check 2019-08-05 00:26:10 +02:00
Thor Brigsted
d45f396ebf Revert "Improved zoom with the help of Jeroenimoo0's PR"
This commit caused issues with the selection box
2019-08-04 22:41:38 +02:00
Thor Brigsted
ba48e32a22 Moved RerouteReference to own script 2019-08-04 22:25:51 +02:00
Thor Brigsted
5bc267d23b Fixed #119 - node port background color inconsistency 2019-07-24 23:52:31 +02:00
Thor Brigsted
bb847a3044 Moved IsMac to NodeEditorUtilities 2019-07-24 10:25:29 +02:00
Thor Brigsted
891ecebc3f Put NodeEditorReflection into its own static class 2019-07-24 10:04:05 +02:00
Mikhail
93fa101af8 Multiple dynamicPortList IndexOutofRange fix. (#176) 2019-07-22 00:41:58 +02:00
Simon Rodriguez
723ecc43c1 Ports losing connections (#171)
* clear connections before removing port, so the connected nodes don't have invalid references.

* Try reconnecting the previous ports connections in the new port.
Skip reconnecting if the port is dynamic or if the direction has changed.
2019-07-10 00:07:23 +01:00
Simon Rodriguez
6a629d159c Added type constraints to output port (#170) 2019-07-09 10:44:00 +01:00
Thor Brigsted
8e0bd964ad Fixed #107 - OnValidate
OnValidate is now called on rename as well.
Removed outdated OnValidate fix. It probably never worked anyway.
2019-07-01 09:58:47 +02:00
Thor Brigsted
d0e1cd5d66 Fixed #144 - Added virtual GetPortTooltip in NodeGraphEditor 2019-06-29 16:56:50 +02:00
elrod
95884080b0 Resetting random generator state/seed after random color extraction. (#160) 2019-06-29 16:38:25 +02:00
William Henry
9b239c3564 Added Drop event to Node Graph (#157)
Override NodeGraphEditor.OnDropObjects to deal with items dropped into the graph through DragAndDrop
2019-06-29 00:04:39 +02:00
Thor Brigsted
8d64843d42 Node skin is now white with default grey tint
This lets you get more outrageous colors with [NodeTint]
2019-06-28 23:08:18 +02:00
Greg Poole
f0fd6b9634 Add Unity Package Manager support (#165) 2019-06-26 23:42:36 +02:00
Hao Wu
f8ba6339c8 Added validation support for Context Menu items (#162)
* Added validation support for Context Menu items
2019-06-26 10:25:01 +02:00
Thor Brigsted
4e1d9b6721 Reformat RenamePopup.cs
Was inconsistently formatted as tabs instead of spaces
2019-06-26 10:13:12 +02:00
Adsitoz
55dddf8142 Rename Revert (#164)
- Not working the same way across all versions of Unity.
2019-06-26 10:08:22 +02:00