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
Simon Rodriguez
6c1af6f4cd
Fix/error on duplicate ( #82 )
...
* Pressing CTRL+D (duplicate) threw editorgui exception "Getting control 0s position in a group with only 3 controls when doing ValidateCommand".
comparing to https://github.com/Unity-Technologies/UnityCsReference/blob/master/Editor/Mono/SceneHierarchyWindow.cs : row 211, the proper use of the event was not made.
also fixed spelling of Dublicate to Duplicate.
* Braces on wrong lines.
* Something got wrong with the comments.
2018-12-10 23:33:25 +01:00
Simon Rodriguez
58d32bfd85
OSX does not dispatch SoftDelete (tested on mbp no external keyboard), only Delete.
2018-09-27 21:54:10 +02:00
Thor Brigsted
ff97cc4494
Switched Dict.ContainsKey out with Dict.TryGetValue for performance gain.
2018-09-09 18:25:41 +02:00
Thor Brigsted
cc72e44895
Fixed reroute point snap centering
2018-08-27 11:29:34 +02:00
Paul
cf48e8ec85
Fixed a bug that occured when begining to drag a reroute would move the reroute point -8 -8 no matter what
2018-07-27 18:36:57 +03:00
Thor Brigsted
f65d4a2dd7
Removed offsetting reroute points with output node. Reroute points should only move if dragged.
2018-07-27 14:33:59 +02:00
Thor Brigsted
6d0ce544c9
Small formatting changes and comments
2018-07-27 14:30:59 +02:00
Paul
ad5a8dfc25
Fix laggy connections
2018-07-27 13:25:07 +03:00
Thor Brigsted
6ee12afc84
Fixed not marking moved nodes as dirty
2018-06-24 23:38:19 +02:00
Thor Brigsted
4b274df205
Merge pull request #47 from nostek/bugfix/losefocus
...
This function releases the focus of text fields and dropdowns.
2018-06-20 12:18:21 +02:00
Simon Rodriguez
ba3c8bdac0
This function releases the focus of text fields and dropdowns.
2018-06-20 11:21:55 +02:00
Simon Rodriguez
efa44d2637
Panning was kept active if you used the middle button(button2) for panning.
2018-06-20 11:15:28 +02:00
Simon Rodriguez
1731f8161f
Changed from .ToString() to .Name that omits the namespace from the name.
2018-06-18 15:28:56 +02:00
Thor Brigsted
f04629a120
Added experimental node culling for performance boost
2018-05-22 16:25:21 +02:00