1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

55 Commits

Author SHA1 Message Date
Icarus
7a7c0ffdd0 !I Siccity/master -> yika-aixi/Cabin_Icarus
# Conflicts:
#	.gitignore
#	Scripts/Editor/NodeEditor.cs
#	Scripts/Editor/NodeEditorAction.cs
#	Scripts/Editor/NodeEditorGUILayout.cs
#	Scripts/Editor/NodeGraphEditor.cs
#	Scripts/NodeDataCache.cs
2020-05-28 19:04:33 +08:00
Thor Brigsted
d9d90f0f7b
Add [RequireNode] attribute to graphs (#254) 2020-04-24 15:57:50 +02:00
Romain Théry
c298b5ee53
Add virtual OnWindowFocus and OnWindowFocusLost in NodeGraphEditor(#253) 2020-04-23 15:08:43 +02:00
Romain Théry
ff2c1e8158
Mark CopyNode as virtual (#252) 2020-04-23 11:27:02 +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
Simon Rodriguez
a61bb3f87e
Implemented OrderBy in Add Node Menu (#247) 2020-04-14 08:11:21 +02:00
Thor Brigsted
e2c7934f1e Limit the OnDropObjects warning to only show when a node graph editor is present 2020-04-04 14:01:05 +02:00
Thor Brigsted
f3b211ed83 Fixed error on adding nodes in scene graphs 2020-04-03 11:26:12 +02:00
Icarus
6ecef29f07 !TX(Code format) 2019-12-23 23:30:04 +08:00
Icarus
7624d4ad1f !OA(Menu Popup Window) Move to MenuPopup folder 2019-12-21 20:47:18 +08:00
Icarus
c0b80b59da !B(Create Node) pos error 2019-12-09 15:51:47 +08:00
Icarus
f77183cca3 Sync Siccity https://github.com/Siccity/xNode
# Conflicts:
#	Scripts/Editor/NodeEditor.cs
#	Scripts/Editor/NodeEditorAction.cs
#	Scripts/Editor/NodeEditorPreferences.cs
2019-12-09 14:02:28 +08:00
Icarus
cf6cddeae5 !BO(Menu Tree View) 可能会出现多个相同菜单,删除了OnFocus 2019-12-09 11:11:31 +08:00
Icarus
fe313be5ee !B NullReferenceException 2019-12-04 10:33:49 +08:00
Icarus
15ef25888c !TX 2019-12-03 22:30:35 +08:00
Icarus
efbab70191 !WF(Node Editor) OnFocus Trigger OnInit 2019-12-01 21:09:58 +08:00
Icarus
07217505e6 !W 搜索时按下键切换焦点到TreeView 2019-11-26 17:42:30 +08:00
Icarus
eb3d24ff1d !W 右键添加节点的方式从GenericMenu改为PopupWindow,目前有个小bug,点出线后,右键本来应该是取消线的选择状态,但目前无法,后续在解决,问题不大=-= 2019-11-24 04:56:46 +08:00
Marco Secchi
be0d452d12 Fix wrong override message. (#204) 2019-11-06 11:53:13 +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
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
Icarus
7c3c106eeb !W 加了一个创建当前Group所支持的所有节点功能,用于调试 2019-09-25 16:59:43 +08: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
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
Thor Brigsted
788b8d8a0b Automatically remove "Node" postfix from creation menu 2019-08-12 00:11:14 +02:00
Thor Brigsted
891ecebc3f Put NodeEditorReflection into its own static class 2019-07-24 10:04:05 +02:00
Thor Brigsted
d0e1cd5d66 Fixed #144 - Added virtual GetPortTooltip in NodeGraphEditor 2019-06-29 16:56:50 +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
5d45300935 Unified all functions that set the default node name (#161) 2019-06-23 11:54:14 +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
Simon Rodriguez
833e26ccc3 Make RemoveNode + switch order
* made RemoveNode function virtual
used for example when a graph wants to block a delete

* switched order of remove function and destroy function.
target.RemoveNode was always getting a null value
2019-05-13 20:53:34 +02:00
Thor Brigsted
d68aea2a8a Fixed #142 - New feature: Automatically remove "Node" postfix in names 2019-05-10 09:55:10 +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
3972ac5abf Allow naming nodes in Init 2019-01-21 22:25:05 +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
Thor Brigsted
b9bd67bd28 Cleanup
Removed unused code, added/fixed comments
2018-10-30 09:38:44 +01:00
Thor Brigsted
c202829c9d Bugfix and old code removal
Fixed NodeEditorGUILayout.PortField being inconsistent with Ports drawn by NodeEditorGUILayout.PropertyField
Removed obsolete NodeEditorGraph.GetNodePath
2018-06-21 23:21:32 +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
2582d5aaf3 Added option to disable autosave in preferences 2018-04-13 10:46:51 +02:00
Thor Brigsted
bab898e489 Exposed virtual OnGUI() and 'position' for graph editors 2018-04-10 22:59:32 +02:00
Thor Brigsted
ba8b9ef447 Removed unused dictionary 2018-04-10 22:57:25 +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
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
66de07e1a7 More strongly typed namespaces to prevent import conflicts 2017-12-18 10:37:02 +01:00
neko1990
ec4429e969 compatibility patches, make xNode work on Unity 5.4. 2017-12-03 23:50:54 +08:00