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

454 Commits

Author SHA1 Message Date
Thor Brigsted
4516293214 Implemented add, remove. Reordering WIP 2018-10-18 10:07:48 +02:00
Thor Brigsted
671481f3b1 Begun working on ReorderableLists 2018-10-14 19:04:13 +02:00
Thor Brigsted
f5856f7911 Fixed #66 Minor bug with noodle 2018-10-06 01:34:34 +02:00
Simon Rodriguez
9fe26b2948 missing assignments in OutputAttribute and InputAttribute 2018-10-03 22:20:26 +02:00
Simon Rodriguez
58d32bfd85 OSX does not dispatch SoftDelete (tested on mbp no external keyboard), only Delete. 2018-09-27 21:54:10 +02:00
Simon Rodriguez
98edbf0c80 Added label before drawing InstancePortList 2018-09-22 11:09:08 +02:00
Thor Brigsted
7ee89ba79c Added instancePortList field to Input and Output attributes. 2018-09-19 23:17:08 +02:00
Simon Rodriguez
fc0f1983e0 Suggestion, better looking buttons for InstancePortList 2018-09-19 09:04:58 +02:00
Thor Brigsted
ff97cc4494 Switched Dict.ContainsKey out with Dict.TryGetValue for performance gain. 2018-09-09 18:25:41 +02:00
Thor Brigsted
c424dfa4d7
Merge pull request #63 from dashrava/Culling
Node Culling Optimization
2018-08-31 09:36:00 +02:00
Thor Brigsted
f9e024198e Improved InstancePortList. It now takes a NodePort.IO parameter 2018-08-30 15:52:30 +02:00
-rava
2f4ef6f5c3 Modify node culling to use node dimensions directly instead of (slowly) fetching NodeEditor first. 2018-08-30 05:05:43 +03:00
Thor Brigsted
372c968c85
Merge pull request #62 from phoenixanimations/patch-4
Fixes the undo bug, and hopefully the inconsistent values in inspector/node
2018-08-27 11:55:44 +02:00
Thor Brigsted
cc72e44895 Fixed reroute point snap centering 2018-08-27 11:29:34 +02:00
phoenixanimations
ffc061f64e
Update NodeEditor.cs
I initially found out about this through
https://docs.unity3d.com/ScriptReference/Editor.html 
specifically these two comments:

```csharp
// Update the serializedProperty - always do this in the beginning of OnInspectorGUI.
        serializedObject.Update ();
...
// Apply changes to the serializedProperty - always do this in the end of OnInspectorGUI.
        serializedObject.ApplyModifiedProperties ();
```

I'm assuming, although I don't know for sure, that since OnBodyGUI displays the serialize objects in the custom inspector, that it must follow the same rules as well. Either way these lines of code solve for me the glitch: pressing undo while typing and getting a disconnect between the node and the inspector.
2018-08-26 22:55:57 -04:00
Paul
cf48e8ec85 Fixed a bug that occured when begining to drag a reroute would move the reroute point -8 -8 no matter what 2018-07-27 18:36:57 +03:00
Thor Brigsted
f65d4a2dd7 Removed offsetting reroute points with output node. Reroute points should only move if dragged. 2018-07-27 14:33:59 +02:00
Thor Brigsted
6d0ce544c9 Small formatting changes and comments 2018-07-27 14:30:59 +02:00
Paul
ea14f27a23 Fixed missing connections after serialization/deserialization 2018-07-27 14:07:13 +03:00
Paul
ad5a8dfc25 Fix laggy connections 2018-07-27 13:25:07 +03:00
Thor Brigsted
632ae09e09 Added AddPortField to NodeEditorGUILayout
Call this after any GUILayout/EditorGUILayout method to add a port to it
2018-07-21 22:09:15 +02:00
Thor Brigsted
cd0a4ca64b Fixed bug in NodeEditorGUILayout.InstancePortList 2018-07-19 00:01:11 +02:00
Thor Brigsted
ac9db2a0b0 Fixed drawing arrays inside InstancePortList 2018-07-12 00:21:24 +02:00
Thor Brigsted
2ee0e42668 Faster editor caching and less error prone 2018-06-30 16:16:11 +02:00
Thor Brigsted
fb61577713 Fixed critical bug 2018-06-29 00:17:49 +02:00
Thor Brigsted
794d1aefc7 Begun reworking editor caching 2018-06-27 01:01:07 +02:00
Thor Brigsted
5a88ddbda6 Removed automatically setting header to white. Controlling header color is now easier 2018-06-25 22:46:07 +02:00
Thor Brigsted
6ee12afc84 Fixed not marking moved nodes as dirty 2018-06-24 23:38:19 +02:00
Thor Brigsted
12ddf51164 Fixed bug that ironically appeared in c202829c9da1a94496d0c864d79c1cf71cbf7e8f
Bug would cause ports drawn with InstancePortList to not appear at all
2018-06-24 23:20:29 +02:00
Thor Brigsted
a71cf4961d Small performance improvement. Nodes are now automatically marked dirty when changed. 2018-06-24 17:43:07 +02:00
Thor Brigsted
a0d86c895e Added convenience NodeEditorGUILayout.PortPair 2018-06-23 16:40:03 +02: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
4b274df205
Merge pull request #47 from nostek/bugfix/losefocus
This function releases the focus of text fields and dropdowns.
2018-06-20 12:18:21 +02:00
Simon Rodriguez
ba3c8bdac0 This function releases the focus of text fields and dropdowns. 2018-06-20 11:21:55 +02:00
Simon Rodriguez
efa44d2637 Panning was kept active if you used the middle button(button2) for panning. 2018-06-20 11:15:28 +02:00
Thor Brigsted
51bb98b4d1
Merge pull request #44 from Orcolom/fix/plugins
Fix for plugins bug #38
2018-06-18 22:32:24 +02:00
Joram
4bfb6c4b8b optimized dll caching 2018-06-18 20:52:58 +02:00
Joram
0331bde4e1 Plugin folder get recognized as seperate dll 2018-06-18 19:31:44 +02:00
Simon Rodriguez
1731f8161f Changed from .ToString() to .Name that omits the namespace from the name. 2018-06-18 15:28:56 +02:00
Simon Rodriguez
c015b6ec4b Added attribute NodeWidth.
Changes the width used when rendering the node in the editor.
2018-06-17 14:16:13 +02:00
Thor Brigsted
9c6fb74064 Fixed automatic caching and drawing noodles when intentionally hiding ports 2018-06-14 22:56:14 +02:00
Thor Brigsted
704730e59d Minor corrections
Instance ports now show value for tooltip
Edited comment
2018-06-10 21:17:17 +02:00
Thor Brigsted
dc9b11c5a3 Added NodeEditorGUILayout.InstancePortList.
Use it to draw lists of instance ports easily.
2018-06-10 21:16:18 +02:00
Thor Brigsted
3f405e318a Remove console spam 2018-05-23 10:58:36 +02:00
Thor Brigsted
f04629a120 Added experimental node culling for performance boost 2018-05-22 16:25:21 +02:00
Thor Brigsted
8f658d2762 Fixed error on graph open
Error introduced in commit 2582d5aaf3cac7c769ee21cde7de449bee353e6f
Caused by trying to get settings in OnFocus, before the graph is ready
2018-05-14 09:26:31 +02:00
Thor Brigsted
7a1726b342 Fixed commenting 2018-05-13 13:29:12 +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
97ec4bbf42 Improved warning message 2018-05-12 14:40:23 +02:00
Thor Brigsted
75795c59b0 Added F2 to rename hotkey (return on mac) 2018-04-18 12:57:12 +02:00