Thor Brigsted
1d43244a8f
Simplified implementation
2019-12-23 13:52:53 +01:00
Lumos
23e369d38f
Fix auto-connection menu opening on invalid connections where a target node is present
2019-12-22 15:43:25 +01:00
Lumos
ede650c369
Added a big "edit graph" button to Node and Graph inspectors.
...
I was very confused that this isn't a thing already.
2019-12-21 20:33:34 +01: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
b4a6c6e733
Updated compatability with newest xNode version
2019-11-14 22:29:18 +01:00
Thor Brigsted
4c824d4b91
Merge branch 'refs/heads/master' into examples
2019-11-14 21:50:37 +01:00
Thor Brigsted
30b825ff1c
Merge pull request #207 from nostek/feature/masterfix
...
Optimize GC allocations in NodeEditorWindow
2019-11-14 18:22:49 +01:00
Thor Brigsted
4edcc3f099
Fixed formatting, fixed dashed stroke style
2019-11-14 17:40:09 +01:00
Thor Brigsted
d7f9ab975f
Merge pull request #206 from nostek/feature/headerattribute
...
Added support for [Header] attribute
2019-11-14 17:10:47 +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
Simon Rodriguez
72ff273b5c
Rewrite that caches the ordered property attributes so the gui layout drawer can draw them in the correct order.
...
Rewrote how the property attributes are drawn, more compact less messy code.
2019-11-12 22:37:29 +01:00
Simon Rodriguez
984fe730c0
Added support for [Header] attribute
2019-11-08 09:57:54 +01:00
Simon Rodriguez
63c3ae2f7d
Fixed TypeConstraint.Inherited, and added TypeConstraint.InheritedInverse ( #205 )
...
* Added TypeConstraint to check inheritance but inverted.
* Flipped output inherited type constraints, edited comments
2019-11-06 13:12:04 +01: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
a825af8192
Merge pull request #203 from nostek/fix/duplicateemptyselection
...
Duplicating a empty selection makes linq throw exception
2019-11-05 10:55:28 +01:00
Simon Rodriguez
7cd3077ff0
Duplicating a empty selection makes linq throw exception
...
InvalidOperationException: Sequence contains no elements
System.Linq.Enumerable.Aggregate[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`3[T1,T2,TResult] func) (at <fbb5ed17eb6e46c680000f8910ebb50c>:0)
2019-11-05 10:52:04 +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
a4ce09c212
Merge pull request #196 from DeepWolf413/master
...
Added a null check for NodeEditorWindow.current.
2019-10-23 12:08:14 +02:00
DeepWolf413
aeaaf18099
Added a null check for NodeEditorWindow.current.
...
It returns a new instance of the Settings class if the NodeEditorWindow.current is null.
2019-10-23 12:01:20 +02: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
ceb4700eda
Merge pull request #192 from nostek/fix/dontrepaintalways
...
* This line was not present before commit 43bcb54fda4378e46a678c866242954248a63702 (Odin inspector support (#182 ) and causes the window to repaint every frame but only if you have a custom node editor.
2019-10-09 10:28:45 +02:00
Simon Rodriguez
1b9a04017b
this action needs a repaint
2019-10-09 10:20:28 +02:00
Simon Rodriguez
6a1c1dbb4f
This line was not present before commit 43bcb54fda4378e46a678c866242954248a63702 (Odin inspector support ( #182 ) and causes the window to repaint every frame but only if you have a custom node editor.
2019-10-09 10:20:11 +02:00
Thor Brigsted
810960e4a6
Fixed #190 - OnWillDeleteAsset() conflicts with lighting data regeneration
2019-09-27 18:49:11 +02:00
Thor Brigsted
31c307190c
Merge branch 'master' into examples
2019-09-25 16:40:05 +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
e05327fc0c
Added simple styling
2019-09-25 16:36:50 +02:00
Thor Brigsted
247377793c
Added more nodes to LogicToy, improved editor code
2019-09-25 15:50:51 +02:00
Thor Brigsted
c43fcbe542
Merge branch 'master' into examples
2019-09-25 11:37:23 +02:00
Thor Brigsted
4b073648c9
Added noodle hover highlight
2019-09-25 10:48:36 +02:00
Thor Brigsted
9130237e3a
Added LogicToy example
2019-09-24 00:49:00 +02:00
Thor Brigsted
49e29a9f3e
Merge branch 'master' into examples
...
# Conflicts:
# .gitignore
2019-09-23 23:27:48 +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
f86b2b6d42
Create FUNDING.yml
2019-09-14 16:09:01 +02:00
Thor Brigsted
445a47cd1d
Autoconnect bugfix
...
1. Add a node
2. Drag a port and create a new node that it connects to
3. Delete that latest node
4. Create it with just right click, the first node will autoconnect to it
2019-09-09 00:44:36 +02:00
Thor Brigsted
4e1b2e1fe6
Fixed warning
2019-09-07 04:03:00 +02:00
Thor Brigsted
1254836a84
.NET 3.5 compatability
2019-09-07 04:01:15 +02:00
MowfaqAlarbi
c51a3a8f67
Select All Feature ( #184 )
...
If anything is selected, A deselects all.
If nothing is selected, A selects all.
2019-09-07 00:57:34 +02:00
Thor Brigsted
305af376c5
Added link to documentation in preferences
2019-09-06 19:26:01 +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
b7749e3b99
Update README.md
2019-09-05 10:06:10 +02:00