1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-21 01:36:03 +08:00

126 Commits

Author SHA1 Message Date
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
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
9ce5496b62 Fixed IndexOutOfRangeException issue #29 2018-04-09 09:38:09 +02:00
Thor Brigsted
1885d453a4 Removed #if UNITY_EDITOR from NodeGraph.cs #23 2018-04-05 21:53:03 +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
0132c16448 Fixed deselect out of range exception 2018-04-01 01:06:06 +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
ed2edab72f Added F for "Home" hotkey 2018-03-21 22:00:28 +01:00
Thor Brigsted
57b4287613 Fixed ctrl+d duplicate 2018-02-03 11:56:20 +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
2b529d8da3 Assimilated formatting 2018-01-30 08:56:35 +01:00
Vladan
e89f3a6e75 try ctrl modify grid snap 2018-01-30 01:12:01 +01:00
Thor Brigsted
5b79757667 Fixed issue #12 2018-01-26 17:58:48 +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
f87af8d62f Changed node selection to only react on header clicks 2018-01-24 09:44:55 +01:00
Thor Brigsted
a09cda1827 Block clicks from registering through node headers 2018-01-23 18:08:39 +01:00
Thor Brigsted
4e7d844ae5 Fixed minor multiselect bug 2018-01-22 18:10:52 +01:00
Thor Brigsted
5d113de554 Added multinode selection 2018-01-22 18:06:50 +01:00
Thor Brigsted
2651bfbeb5 Increase crispyness of UI text 2018-01-21 23:55:55 +01:00
Thor Brigsted
f7637abcc3 Allow dragging view with middle mouse button 2018-01-09 01:41:23 +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
5f161b80e7 Added grid snap and color settings. 2017-11-21 12:53:56 +01:00
Thor Brigsted
dabd55cf49 Context menu limited to graph background and node headers 2017-11-19 22:38:05 +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 Kramer Brigsted
455bb723d2 Improved editor responsiveness
No longer saves asset on right click drag
2017-11-07 09:45:34 +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
8eff75fa7f Bug fixes 2017-11-02 16:17:28 +01:00