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

585 Commits

Author SHA1 Message Date
Raistlin Wolfe
7473083b84
Update NodePort.cs 2022-09-12 18:25:14 -06:00
Raistlin Wolfe
d19ea40e38
Update Node.cs 2022-09-12 18:22:03 -06:00
Thor Brigsted
75078edd20
Merge pull request #352 from loomdoom/fix/RenameAndCopyFixForSceneGraphs
added cases to handle Copy and Rename for scenegraphs correctly
2022-08-30 15:42:22 +02:00
LoomDoom
b23e769c3b added cases to handle Copy and Rename for scenegraphs correctly 2022-08-27 13:28:00 +02:00
Thor Brigsted
37680daee7
Merge pull request #348 from NeedsLoomis/dynamic-port-fix
Fix DynamicPortList reordering operating on old data
2022-07-14 11:32:41 +02:00
David Pilles
36a1e8891b Fix DynamicPortList reordering operating on old data in NodeEditorGUILayout 2022-07-08 14:15:20 -07:00
Thor Brigsted
157489b3c3
Merge pull request #336 from KAJed82/AdvancedGenericMenu
Advanced generic menu
2022-04-28 16:51:49 +02:00
Thor Brigsted
4e15a2110e
Merge pull request #341 from RomanZanevski/patch-1
Fix OnRemoveConnection from calling side
2022-04-28 16:50:09 +02:00
RomanZanevski
46076527f8
Fix OnRemoveConnection from calling side
If we use the original:
if (port != null && port.IsConnectedTo(this)) port.node.OnRemoveConnection(port);
we going to have always wrong condition, about "IsConnectedTo(this)" and port.node.OnRemoveConnection(port) just won't be called, cause we already have disconnected ports. So we need to do it exactly at the moment of disconnection.
2022-04-25 16:24:08 +02:00
Kailey Joanette
f1cbe6191d Limit AdvancedGenericMenu to UNITY_2019_1_OR_NEWER 2021-12-26 15:12:46 -05:00
Kailey Joanette
840eb7818d Fixed menu item naming
Added min/maxwidth options
2021-12-26 15:07:00 -05:00
Kailey Joanette
3666509002 Advanced Generic menu that can be searched 2021-12-25 13:07:43 -05:00
Thor Brigsted
286b9a167a
Merge pull request #320 from IIzzaya/master
[BUG] Fix node order in AddContextMenuItems with filter
2021-06-11 14:09:02 +02:00
ZLX
e17e9a8ba1 Fix node order in AddContextMenuItems with filter 2021-06-11 13:41:34 +08:00
ZLX
a3f1394078 Compatible with C# 4.0 language feature. 2021-06-11 13:35:52 +08:00
Thor Brigsted
6cba54f3d4
Merge pull request #317 from nostek/feature/formerlyserializedas
Added support for unitys FormerlySerializedAsAttribute.
2021-05-11 13:27:06 +02:00
Simon Rodriguez
e1b564db1c added error handling 2021-05-04 08:38:25 +02:00
Simon Rodriguez
3287575dcd moved reflection code to cache part in initialization 2021-05-04 08:29:16 +02:00
Simon Rodriguez
2f69c4350d Added support for unitys FormerlySerializedAsAttribute. It reconnects ports that has the old name to its new name. 2021-05-01 18:47:39 +02:00
Thor Brigsted
93615e7722
Merge pull request #310 from GolfNorth/odin-issue-fix
Fix issue for older Odin version
2021-02-24 12:59:00 +01:00
GolfNorth
ea2e190d98 Fix issue for older Odin version 2021-02-20 08:38:49 +05:00
Thor Brigsted
5b42d2caeb
Merge pull request #309 from IIzzaya/master
[FIX] Copy & Paste in node's TextField
2021-02-17 08:36:49 +01:00
ZLX
0f84990968 [FIX] Copy & Paste in node's TextField 2021-02-15 17:02:48 +08:00
Thor Brigsted
75ee5d47ff Minor bugfix 2021-02-05 13:33:33 +01: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
6b893fd5a4 Merge branch 'context_menu_filter' 2020-12-17 13:53:26 +01:00
Thor Brigsted
822b7ae156 Formatting 2020-12-17 13:50:11 +01:00
Kailey Joanette
75a04920b1 Fixed an issue with Undo / Redo not working correctly with Odin PropertyTree 2020-12-16 10:55:45 +01:00
Simon Rodriguez
d4deeed45b Added support in preferences for default node tint 2020-11-18 08:41:49 +01:00
Thor Brigsted
6aacfbfd2d SceneGraph draw default inspector 2020-11-14 16:25:16 +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
e3127a9135
Merge pull request #300 from neoneper/Improvments - customization
Internal changes that allow for greater customization options
2020-10-12 09:47:29 +02:00
Thor Brigsted
cde52ff21a Formatting 2020-10-12 09:40:40 +02:00
juliocp
b0f20cafa4 renamed dragToCreate to createFilter
- Renamed the preferences dragToCreateFilter to createFilter
- Removed dragToCreate as a condition to use createFilter
2020-10-07 21:08:31 -03:00
juliocp
a03c4c5d0e Added filtered node at port contextMenu
Added compatible menus when the right mouse button is clicked on the port and preferences filter is active
2020-10-07 20:57:40 -03: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
2d91e45dba Added parameter to AddContexMenuItens
- Added parameters to get contextMenu with compatibles node filter.
These parameters are auto-filled and do not interfere with the standard operation of this function.

> Param: Type compatibleType:
Use it to filter only nodes with ports value type, compatible with this type: Default null.

> Param: NodePor.IO:
Direction of the compatiblity: (Default Input)
2020-10-07 19:12:35 -03:00
juliocp
1b32e2ec03 Added new methods at NodeEditorUtilities
_ HasCompatiblePortType:
Looking for ports with value Type compatible with a given type.

- GetCompatibleNodesTypes:
Filter only node types that contains some port value type compatible with an given type
2020-10-07 19:00:56 -03:00
juliocp
72c7ca9d04 Port Padding BugFIX
Added the separate port padding to control the port's offset position in relation to the node content padding

Currently, if I try to create a custom theme for node, i will be stuck with the port padding, because currently there are not separate padding from the node,
2020-10-07 16:33:10 -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
juliocp
7c301c88a7 Virtual GetPortBackgroundColor at NodeGraph
Exposed virtual method to control the color of the background Port. Now it is possible to override in the NodeGraph.
Will be used to spotlight compatible ports!
2020-10-05 21:44:46 -03:00
juliocp
7aefddfaae Default background and grid Color
Changed the default background and grid colors of the graph in the preferences. This will maintain the new layout of nodes and ports uniform with the background. (More Clean)
2020-10-05 16:52:28 -03:00
juliocp
629474d042 Added Noodle Thickness at preferences
The default value for the thickness of the noodle can be modified from xNode preferences.

This value is only effective if the user does not make an override from the EditorGraph at GetNoodleThickness(...).

Many users do not like to edit from the script, this will help in the creation of my new layout template, similar to the new graphView from unity
2020-10-05 16:25:08 -03:00
Thor Brigsted
2c35e5ddb3
Update README.md 2020-09-24 21:50:47 +02:00
Thor Brigsted
af34ea6c47 Revert "Fixed mouse propagation in custom graph editors. Now you can use buttons and other controls."
This reverts commit 22b379353016739d0d537ee3920299a00ce451f5.
2020-09-09 11:53:51 +02:00
Thor Brigsted
22b3793530 Fixed mouse propagation in custom graph editors. Now you can use buttons and other controls. 2020-09-08 18:43:32 +02:00
Thor Brigsted
ae998a4e07
Update README.md 2020-09-07 09:13:29 +02:00