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

114 Commits

Author SHA1 Message Date
Thor Brigsted
979bd5f7cf Added nodeGraphEditor.GetNoodleColor
Now you can override the color of noodles!
2019-09-23 23:25:23 +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
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
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
Adsitoz
3ba0b13c77 Zoom System Fixes (#155)
- Due to the OnGUI method being called last to draw over everything else in the window, the GUI.Group being created in the new zoom system was also moving around the GUI elements created in the NodeGraphEditor OnGUI method.
2019-06-18 11:34:23 +02:00
Michael Wigley
8b0eb6bb60 #144 Added option to disable tooltips 2019-06-08 21:01:45 +02:00
Thor Brigsted
53f85a5d22 Improved zoom with the help of Jeroenimoo0's PR 2019-06-08 14:25:07 +02:00
Thor Brigsted
91151b327a Bugfix: Calling base.OnBodyGUI after drawing ports would make noodles disappear 2019-05-09 00:02:58 +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
f6e0e3bc4d Added NodeGraphEditor.GetPortColor 2019-04-03 21:50:29 +02:00
Thor Brigsted
57d3a03a91 Removed GetHashCode override.
This should improve performance, but has previously caused a slew of bugs.
Bugtest thoroughly before merging
2019-02-16 12:21:21 +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
Thor Brigsted
6979333eb1 Added [NodeEnum] which fixes enum positions.
#28
2018-11-11 22:39:32 +01:00
Thor Brigsted
e9c6b6f221 Removed middleman function 2018-10-27 19:57:13 +02:00
Thor Brigsted
16992c3972 Added NodeEditor.GetBodyStyle, allowing per-node body styles 2018-10-27 18:41:13 +02:00
Thor Brigsted
f5856f7911 Fixed #66 Minor bug with noodle 2018-10-06 01:34:34 +02:00
Thor Brigsted
ff97cc4494 Switched Dict.ContainsKey out with Dict.TryGetValue for performance gain. 2018-09-09 18:25:41 +02:00
-rava
2f4ef6f5c3 Modify node culling to use node dimensions directly instead of (slowly) fetching NodeEditor first. 2018-08-30 05:05:43 +03:00
Thor Brigsted
a71cf4961d Small performance improvement. Nodes are now automatically marked dirty when changed. 2018-06-24 17:43:07 +02:00
Thor Brigsted
9c6fb74064 Fixed automatic caching and drawing noodles when intentionally hiding ports 2018-06-14 22:56:14 +02:00
Thor Brigsted
704730e59d Minor corrections
Instance ports now show value for tooltip
Edited comment
2018-06-10 21:17:17 +02:00
Thor Brigsted
3f405e318a Remove console spam 2018-05-23 10:58:36 +02:00
Thor Brigsted
f04629a120 Added experimental node culling for performance boost 2018-05-22 16:25:21 +02:00
Thor Brigsted
61ca00ce31 Renamed GetNodePath to GetNodeMenuName (consistency)
Empty menuNames now skips, just like null does
2018-05-13 12:18:16 +02:00
Thor Brigsted
75795c59b0 Added F2 to rename hotkey (return on mac) 2018-04-18 12:57:12 +02:00
Thor Brigsted
2582d5aaf3 Added option to disable autosave in preferences 2018-04-13 10:46:51 +02:00
Thor Brigsted
9f09452b43 Improved reroute point size, rendering, and enabled deletion of selected points 2018-04-12 09:27:50 +02:00
Thor Brigsted
bab898e489 Exposed virtual OnGUI() and 'position' for graph editors 2018-04-10 22:59:32 +02:00
Thor Brigsted
19e244212c Added NodeRename #11 2018-04-05 20:59:50 +02:00
Thor Brigsted
3e68635735 Finished Reroutes 2018-04-01 21:42:44 +02:00
Thor Brigsted
34e195e33d Visual representation in DrawConnections 2018-04-01 02:15:47 +02:00
Thor Brigsted
941189a4d6 Started work on Reroute nodes 2018-03-31 19:01:36 +02:00
Thor Brigsted
1fff90cbf2 Added 'Clear Connections' right-click option for NodePorts 2018-03-28 00:55:53 +02:00
Thor Brigsted
219c93557d Tooltip now shows value from GetValue instead of field variable 2018-03-22 23:25:51 +01:00
Thor Brigsted
63b51aaa10 Added more preferences control
Preferences can now be saved with a custom key, and custom default settings can be specified.

Other changes:
XNodeInternal renamed to XNodeEditor.Internal
NodeEditorWindow.graphEditor exposed as public
2018-01-30 12:27:17 +01:00
Thor Brigsted
ae2b8f1d38 Added noodle settings 2018-01-27 00:43:24 +01:00
Thor Brigsted
cf348d495b Fixed issue #15 2018-01-25 16:28:16 +01:00
Thor Brigsted
6758a1a7c4 Fixed box selection not working correctly when zoomed 2018-01-25 12:42:35 +01:00
Thor Brigsted
14c4d0b691 Added color settings for selection outlines 2018-01-25 10:43:03 +01:00
Thor Brigsted
d871b7bec4 Added node box selection 2018-01-24 12:23:12 +01:00
Thor Brigsted
5d113de554 Added multinode selection 2018-01-22 18:06:50 +01:00
Thor Kramer Brigsted
6e649dcc24 Automatically relink renamed Node scripts 2018-01-08 14:34:54 +01:00
Thor
66de07e1a7 More strongly typed namespaces to prevent import conflicts 2017-12-18 10:37:02 +01:00
Thor Brigsted
d7e133a822 Defined namespaces across all scripts prevent conflicts. 2017-12-02 09:56:41 +01:00
Thor Kramer Brigsted
aabd2e4145 Added NodeGraphEditor.GetTypeColor for custom node-graph specific type colors 2017-11-28 10:49:24 +01:00