Emre Dogan
26e5bf451e
Fixed resizing jittering due to node padding.
2023-10-08 23:22:25 +01:00
Emre Dogan
c58648d663
Fixed group resizing code to not jitter anymore.
...
Can now adjust color of group node resize icon.
Changed header label rendering to always be vertically centered.
Changed group node style.
Changed rename text field style.
2023-10-08 20:08:19 +01:00
Emre Dogan
ada6d85c51
Fixed flow of graphFindAttempted in NodeEditorGUI.cs.
...
Improved handling of drag threshold.
2023-10-08 16:00:53 +01:00
Emre Dogan
7ec429ba77
Changed node rendering. Header and Body (and optionally ports) sections are separate images. Allows more customizability.
...
Updated Node Editor Preferences window. Better separators. Added additional appearance options.
Removed Rounding in GridToWindowPositionNoClipped() (and DrawGrid()) which was originally meant to fix UI Sharpness. But it did not have impact in my case and without it made panning feel much smoother.
2023-10-08 07:05:11 +01:00
Emre Dogan
ef83d77a72
Fixed Editor Window losing SceneGraph reference when exiting play mode.
2023-10-06 21:23:33 +01:00
Emre Dogan
5ec46e53a1
Added inline UI for Node/Group renaming.
2023-10-06 00:55:54 +01:00
Emre Dogan
bfcef1ed34
Fixed broken namespaces.
2023-10-05 20:10:15 +01:00
Emre Dogan
b3465b269e
Simple refactoring.
2023-10-05 18:34:58 +01:00
Kailey Joanette
f1cbe6191d
Limit AdvancedGenericMenu to UNITY_2019_1_OR_NEWER
2021-12-26 15:12:46 -05:00
Kailey Joanette
3666509002
Advanced Generic menu that can be searched
2021-12-25 13:07:43 -05:00
ZLX
a3f1394078
Compatible with C# 4.0 language feature.
2021-06-11 13:35:52 +08:00
Thor Brigsted
822b7ae156
Formatting
2020-12-17 13:50:11 +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
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
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
MYTNB
85341bf4cc
Add Disconnect(Node) Menu And Node Header Tooltip ( #288 )
2020-08-11 08:31:53 +02:00
Christiaan Bloemendaal
6c85abf9bc
Fix handles color not being reset to original color ( #266 )
...
Co-authored-by: Christiaan Bloemendaal <christiaan@codeglue.com>
2020-05-27 14:20:37 +02:00
Dan Erhardt
bbdbee90a1
Fix to prevent division by 0 ( #251 )
2020-04-20 16:56:33 +02:00
Simon Rodriguez
76cf825090
Suggestion! A new way of drawing lines very similar to Unitys upcoming Shader Node Editor.
2020-04-13 19:35:52 +02:00
Andrei
5005b5e4f9
Made NodeGraphiEditor's OnGui method virtual and protected, so it can be extended by adding additional content/widgets to be drawn. ( #214 )
2019-12-15 11:52:22 +01:00
Fernando Molon Toigo
d54a03988a
Added virtual GetBodyHighlightStyle ( #197 )
2019-11-23 01:47:39 +01:00
Thor Brigsted
4edcc3f099
Fixed formatting, fixed dashed stroke style
2019-11-14 17:40:09 +01:00
Simon Rodriguez
ec9c5a99de
optimized linq function
2019-11-13 01:14:09 +01:00
Simon Rodriguez
71023e1d58
microoptimization, removes implicit case from vec2 to vec3.
2019-11-13 00:14:29 +01:00
Simon Rodriguez
91eafcc47d
the + and * was creating a lot of new vector2s, went down 80% in call time with this
2019-11-13 00:10:45 +01:00
Simon Rodriguez
92ebd59539
reuse the list of grid points instead of creating a new one for each node->port
2019-11-12 23:19:51 +01:00
Simon Rodriguez
8b99a34a63
The in parameter was is available in C# 7.2 and later. This breaks compatibility with earlier versions.
2019-11-12 23:05:33 +01:00
apkd
e15076b34f
Use Vector2 in bezier calculations
2019-10-27 16:37:31 +01:00
apkd
455107aabb
Optimize NodeEditorGUI.DrawNoodle
2019-10-27 16:30:05 +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
Thor Brigsted
085906efd2
Moved default EditorGUIUtility.labelWidth so that it can be overwritten in OnBodyGUI
2019-09-25 16:39:52 +02:00
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