Thor Brigsted
c306701853
.Net 2.0 compatability
2019-02-17 12:39:25 +01:00
Simon Rodriguez
8cb647734a
EditorGUI.FocusTextInControl(null) sets editingTextField to true even if null is being sent in. ( #113 )
...
Then the editor won't listen to keyboard input.
2019-02-17 12:00:11 +01:00
Simon Rodriguez
662e919aaa
Renaming node to nothing ( #112 )
...
When the name is empty or just whitespaces, it reverts to the original node type name
2019-02-17 11:57:17 +01:00
Thor Brigsted
f6404e9d9d
Unity 5.3 support
2019-02-17 03:18:49 +01:00
Thor Brigsted
9875f8d4f0
Merge branch 'master' of git@github.com:Siccity/xNode.git
2019-02-17 02:00:26 +01:00
Thor Brigsted
57d3a03a91
Removed GetHashCode override.
...
This should improve performance, but has previously caused a slew of bugs.
Bugtest thoroughly before merging
2019-02-16 12:21:21 +01:00
Thor Brigsted
3a8ae366f2
Fixed #103
...
Similar issue as #100
GetField was not returning private fields. The method now not only looks for private fields, but also fields inside inherited classes
2019-02-16 03:06:25 +01:00
Thor Brigsted
71defcbdd5
Implemented typeConstraint in InputAttribute
2019-02-16 02:36:42 +01:00
Thor Brigsted
84e2af7916
Cleanup
...
Postfixed attribute classes with Attribute
Added Attributes region
2019-02-16 01:32:52 +01:00
Thor Brigsted
973f9beb1d
Added support for new SettingsProvider system #109
2019-02-16 01:22:05 +01:00
Thor Brigsted
2dfe6d3a91
Fixed formatting
2019-02-13 21:06:56 +01:00
NoiseCrime
0f5539e077
Support for DoubleClick on node to center it.
...
Added support for double clciking on Node header to center that node within the editor window.
2019-02-13 16:17:25 +00:00
Thor Brigsted
3972ac5abf
Allow naming nodes in Init
2019-01-21 22:25:05 +01:00
Thor Brigsted
8c731a9947
Fixed #100 again
2019-01-21 21:07:07 +01:00
Thor Brigsted
4c9264fed5
Fixed #100
2019-01-20 22:01:26 +01:00
Thor Brigsted
c9a4a81c31
InstandePortLists draw element include children
2019-01-12 02:23:00 +01:00
Thor Brigsted
5ee63d3ee5
Fixed #96
...
InstancePortLists no longer need to point to a serialized property
2019-01-11 18:54:44 +01:00
Thor Brigsted
432ca09274
Removed debug info
2019-01-11 18:38:54 +01:00
Thor Brigsted
d397e3a208
Improved NodeEnumDrawer serialization
2019-01-10 19:54:11 +01:00
Thor Brigsted
b08d706e0d
Changed custom InstancePortList API.
...
See: NodeEditorGUILayout.InstancePortList
2019-01-10 18:15:16 +01:00
Thor Brigsted
96d73bcb81
Better error handling for InstancePortLists
2019-01-05 22:02:00 +01:00
Thor Brigsted
8f33f5ddf3
Merge branch 'cachedAttributes'
2018-12-27 02:55:42 +01:00
Thor Brigsted
c321c276d1
Fixed formatting
2018-12-27 02:55:09 +01:00
Thor Brigsted
3450b5f208
Merge branch 'typeColors'
2018-12-27 02:50:02 +01:00
Thor Brigsted
8d445fa3f4
Fixed formatting
2018-12-27 02:47:15 +01:00
Thor Brigsted
3ced922ce6
Add zoomToMouse setting in preferences
2018-12-23 10:21:03 +01:00
Simon Rodriguez
3d1da00652
Caches attributes, generates no garbage after first fetch.
...
Cache gets reset on recompilation of code.
2018-12-21 14:54:12 +01:00
Simon Rodriguez
842101720e
Changed so Dictionary now uses Type as key.
...
Uses PrettyName less.
Also changed to TryGetValue instead of ContainsKey in GetTypeColor()
2018-12-21 13:39:52 +01:00
Patrik Lindberg
e6530d87d6
Zooming is now centered around the mouse position.
2018-12-21 11:48:09 +01:00
Simon Rodriguez
fe2b7a9684
Fix for [Space] attribute ( #90 )
...
* Fix for [Space] attribute.
Code is a bit messy.
* Exchanged EditorGUILayout.Space() to GUILayout.Space() that takes a parameter height, for custom space distances.
* Changed where implementation is added to not messy up the rest of the code.
2018-12-18 10:00:10 +01:00
Simon Rodriguez
3b18ca9b02
FetchSettingsProviders has been removed in 2018.3.0f2.
...
Now preferences is opened like this.
2018-12-15 14:33:34 +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
a0eee5b9ca
Fix misconfigured node.graph reference during node instantiation and graph cloning ( #85 )
...
* Attempting to fix #81 in a cleaner way. Still not perfect
* Fixed setting to null during OnEnable
* Fixed spelling
2018-12-12 00:57:31 +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
Thor Brigsted
5803ae45ba
Revert "Allow to trigger renames via F2 key"
2018-11-16 14:06:59 +01:00
Thor Brigsted
55e57dc2ac
Merge pull request #79 from tmorgner/TriggerRenameViaKeyboard
...
Allow to trigger renames via F2 key
2018-11-16 13:19:12 +01:00
Thomas Morgner
b138388c29
Allow to trigger renames via F2 key
2018-11-16 12:14:04 +00:00
Thomas Morgner
11c8f29672
Clear edit-mode when reselecting node while renaming node
2018-11-16 12:01:34 +00:00
Thor Brigsted
35861d20c6
Focus xNode in preferences window in >= 2018.3
2018-11-13 00:04:00 +01:00
Thor Brigsted
6979333eb1
Added [NodeEnum] which fixes enum positions.
...
#28
2018-11-11 22:39:32 +01:00
Thor Brigsted
604365ce67
Unity 2018.3 support
2018-11-07 20:24:33 +01:00
Thor Brigsted
dc608a3d1b
Added NodeEditorGUILayout.onCreateReorderableList action for reorderablelist customization
2018-11-01 00:46:38 +01:00
Thor Brigsted
b9bd67bd28
Cleanup
...
Removed unused code, added/fixed comments
2018-10-30 09:38:44 +01:00
Thor Brigsted
ba69380638
Fixed error on instanceportlists that aren't arrays
2018-10-29 21:20:22 +01:00
Thor Brigsted
e9c6b6f221
Removed middleman function
2018-10-27 19:57:13 +02:00
Thor Brigsted
16992c3972
Added NodeEditor.GetBodyStyle, allowing per-node body styles
2018-10-27 18:41:13 +02:00
Thor Brigsted
bad05a6e64
InstancePortList custom PropertyHeight supported
2018-10-26 18:42:16 +02:00
Thor Brigsted
0b008c77eb
Fixed edge case where swapping connections connected to the same port would cause a "port is already connected" error
2018-10-26 00:31:53 +02:00
Thor Brigsted
b186b7dd34
Finished reorderable instance port lists
2018-10-26 00:17:24 +02:00
Thor Brigsted
17ba6a880c
Ugh, this isn't easy
2018-10-22 00:46:49 +02:00