Thor Brigsted
0e7e4aa254
Added public overrides for custom NodePort CanConnect conditions in GraphEditor
2022-09-21 13:53:28 +02:00
Kailey Joanette
f1cbe6191d
Limit AdvancedGenericMenu to UNITY_2019_1_OR_NEWER
2021-12-26 15:12:46 -05:00
Kailey Joanette
3666509002
Advanced Generic menu that can be searched
2021-12-25 13:07:43 -05:00
ZLX
0f84990968
[FIX] Copy & Paste in node's TextField
2021-02-15 17:02:48 +08:00
Thor Brigsted
d58845ee15
Fixed #299 - Typing in TextArea in custom node editor triggers Hotkey
2021-01-26 09:14:56 +01:00
Thor Brigsted
822b7ae156
Formatting
2020-12-17 13:50:11 +01:00
juliocp
eba850ba98
Merge branch 'changes_to_theme_work' into context_menu_filter
2020-10-12 21:21:25 -03:00
juliocp
fdd9b24eca
Added Virtual portStyle
...
- Added the GetPortStyle(...) as virtual method at GraphEditor.
With this, users can customize the texture for different ports, and they can also modify the padding without having to overwrite the default xNode style.
This prevents many problems when working with multiple graphics.
The style properties used from Style is:
- padding-left.
- padding-right.
- normal.background, to border texture.
- active.background, to dot texture.
2020-10-12 21:17:53 -03:00
juliocp
c316f5d80f
Merge remote-tracking branch 'upstream/master' into context_menu_filter
2020-10-12 11:05:00 -03:00
Thor Brigsted
cde52ff21a
Formatting
2020-10-12 09:40:40 +02:00
juliocp
37d82ad215
Added DragToCreate compatible filter
...
- Added preference to filter the nodes from the draggable context menu, to show only nodes that have ports compatible with the dragged port
- Minor modification in NodeEditorActions, to allow the filter
- Minor modification in NodeGraphEditor to use or not the filter, based in preferences
2020-10-07 19:31:07 -03:00
juliocp
e820157fad
Some useful methods for research at NodeEditorAction
...
Some useful methods for research.
Now with these methods and the previous commit it is now possible to play not only with the theme of xNode but also with the functionality of ports, nodes and noodles.
2020-10-07 11:16:25 -03:00
juliocp
cce4b44091
Update NodeEditorAction.cs
...
I made these variables public to be able to work with more information from GraphEditor. They are only Boolean and do not pose any danger.
- IsDraggingPort:
- IsHoveringPort
- IsHoveringNode
- IsHoveringReroute
2020-10-06 11:11:29 -03:00
Meng Fanye
e2a0037b4d
fix: connections will break after InsertDuplicateNodes and restarting unity editor ( #290 )
2020-08-25 09:54:23 +02:00
chrisfairc
a8daac60b0
Add a dragthreshold to better distunguish right clicks and right drags ( #230 )
...
* add a drag threshold so right clicks are better distinguished from right drags especially on large screens
* ignore mac files too
* dont use less than 1 as a drag threshold
Co-authored-by: Chris Fairclough <chris@zulleon.com>
2020-05-27 08:20:20 +02:00
Dan Erhardt
a1cf78d3fb
Fix for AutoConnect method. ( #255 )
...
Prevents incompatible connections between node ports when creating a new node on connection drag.
2020-04-26 17:44:46 +02:00
Thor Brigsted
8965d365e6
Add [DisallowMultipleNodes] for limiting how many nodes of a certain type can exist on any graph
2020-04-21 15:31:07 +02:00
Thor Brigsted
049a62465c
Made nodeEditorWindow.selectedReroutes public
2020-04-19 20:41:12 +02:00
Lumos
7e93ffe4b7
Fix for the dynamic port "serialisation desync" problem. ( #223 )
...
* Exclude strings from array types manually to prevent them from being treated as char arrays.
2020-01-21 08:01:57 +01:00
Lumos
23e369d38f
Fix auto-connection menu opening on invalid connections where a target node is present
2019-12-22 15:43:25 +01:00
Wang Cong
2d1a671b71
Undo support ( #199 )
...
Added undo support for move, create, duplicate and delete node, and connect port
2019-11-06 11:42:22 +01:00
Simon Rodriguez
7cd3077ff0
Duplicating a empty selection makes linq throw exception
...
InvalidOperationException: Sequence contains no elements
System.Linq.Enumerable.Aggregate[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`3[T1,T2,TResult] func) (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)
2019-11-05 10:52:04 +01: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
Thor Brigsted
4b073648c9
Added noodle hover highlight
2019-09-25 10:48:36 +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
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
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
ba48e32a22
Moved RerouteReference to own script
2019-08-04 22:25:51 +02:00
Thor Brigsted
bb847a3044
Moved IsMac to NodeEditorUtilities
2019-07-24 10:25:29 +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
Simon Rodriguez
56e84b7c92
Changed so CopySelectedNodes uses the same Linq-select as DuplicateSelectedNodes does.
2019-06-18 22:17:56 +02:00
Thor Brigsted
6c38439e84
Built DuplicateSelectedNodes and PasteNodes together
2019-06-18 22:00:31 +02:00
Simon Rodriguez
fefea30594
Added support for copy paste in menu and ctrl+c / ctrl+v / cmd+c / cmd+v.
2019-06-13 18:36:40 +02:00
Thor Brigsted
4cf7113740
Improved noodle tangents ( #136 )
2019-04-14 19:01:26 +02:00
Thor Brigsted
8adc4fd459
Fixed #128 , #127 , #64 - Added NodeEditorBase.OnCreate, OnGraphEditor.OnOpen, and NodeEditorBase.window
2019-04-06 13:27:44 +02:00
Thor Brigsted
4263e45b24
Rework node renaming
...
Renaming now happens on a separate popup.
2019-03-08 19:50:31 +01:00
NoiseCrime
5acb7e4ba8
UI Sharpness complete fix ( #115 )
...
Complete fix to address bluriness of the UI in the Node Editor Window. Previous fixes were not all encompassing and failed to account for now even dimensions of Editor Window.
2019-02-18 13:28:35 +01:00
Simon Rodriguez
8cb647734a
EditorGUI.FocusTextInControl(null) sets editingTextField to true even if null is being sent in. ( #113 )
...
Then the editor won't listen to keyboard input.
2019-02-17 12:00:11 +01:00
Thor Brigsted
f6404e9d9d
Unity 5.3 support
2019-02-17 03:18:49 +01:00
Thor Brigsted
71defcbdd5
Implemented typeConstraint in InputAttribute
2019-02-16 02:36:42 +01:00
Thor Brigsted
2dfe6d3a91
Fixed formatting
2019-02-13 21:06:56 +01:00
NoiseCrime
0f5539e077
Support for DoubleClick on node to center it.
...
Added support for double clciking on Node header to center that node within the editor window.
2019-02-13 16:17:25 +00:00
Thor Brigsted
3ced922ce6
Add zoomToMouse setting in preferences
2018-12-23 10:21:03 +01:00
Patrik Lindberg
e6530d87d6
Zooming is now centered around the mouse position.
2018-12-21 11:48:09 +01:00
Thor Brigsted
5b11e81027
Move context menu functions around to allow more customization ( #87 )
...
Moved NodeEditorWindow.ShowNodeContextMenu to NodeEditor.AddContextMenuItems
Moved NodeEditorWindow.ShowGraphContextMenu to NodeGraphEditor.AddContextMenuItems
Moved NodeEditorWindow.CreateNode to NodeGraphEditor.CreateNode
2018-12-15 12:40:16 +01:00