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

141 Commits

Author SHA1 Message Date
Thor Brigsted
b787b57eb3 Revert "Minor performance improvement (cachine serialized objects)"
This reverts commit dba4cd18429d0d2800d7391708f96da037ba8ce9.
2018-02-07 18:17:37 +01:00
Thor Brigsted
682dccdd9d Changed NodeEditorGUILayout labels to use dynamic output GUIStyle based on EditorStyles.label
This will make it easier to change node text color

Example:
[CustomNodeEditor(typeof(MyNode))]
public class MyNodeEditor : NodeEditor {
    private static GUIStyle editorLabelStyle;

    public override void OnBodyGUI() {
        if (editorLabelStyle == null) editorLabelStyle = new GUIStyle(EditorStyles.label);
        EditorStyles.label.normal.textColor = Color.green;
        base.OnBodyGUI();
        EditorStyles.label.normal = editorLabelStyle.normal;
    }
}
2018-02-05 02:07:22 +01:00
Thor Brigsted
57b4287613 Fixed ctrl+d duplicate 2018-02-03 11:56:20 +01:00
Thor Brigsted
63b51aaa10 Added more preferences control
Preferences can now be saved with a custom key, and custom default settings can be specified.

Other changes:
XNodeInternal renamed to XNodeEditor.Internal
NodeEditorWindow.graphEditor exposed as public
2018-01-30 12:27:17 +01:00
Thor Brigsted
2b529d8da3 Assimilated formatting 2018-01-30 08:56:35 +01:00
Vladan
e89f3a6e75 try ctrl modify grid snap 2018-01-30 01:12:01 +01:00
Thor Brigsted
ae2b8f1d38 Added noodle settings 2018-01-27 00:43:24 +01:00
Thor Brigsted
dba4cd1842 Minor performance improvement (cachine serialized objects) 2018-01-26 18:26:56 +01:00
Thor Brigsted
5b79757667 Fixed issue #12 2018-01-26 17:58:48 +01:00
Thor Brigsted
cf348d495b Fixed issue #15 2018-01-25 16:28:16 +01:00
Thor Brigsted
6758a1a7c4 Fixed box selection not working correctly when zoomed 2018-01-25 12:42:35 +01:00
Thor Brigsted
14c4d0b691 Added color settings for selection outlines 2018-01-25 10:43:03 +01:00
Thor Brigsted
9dc5653f27 Simplified editor preferences handling.
This update will reset your xnode editor preferences
2018-01-25 10:27:55 +01:00
Thor Brigsted
5ae1b16f14 Made type color preferences more intuitive 2018-01-25 00:49:17 +01:00
Thor Brigsted
d871b7bec4 Added node box selection 2018-01-24 12:23:12 +01:00
Thor Brigsted
f87af8d62f Changed node selection to only react on header clicks 2018-01-24 09:44:55 +01:00
Thor Brigsted
a09cda1827 Block clicks from registering through node headers 2018-01-23 18:08:39 +01:00
Thor Brigsted
4e7d844ae5 Fixed minor multiselect bug 2018-01-22 18:10:52 +01:00
Thor Brigsted
5d113de554 Added multinode selection 2018-01-22 18:06:50 +01:00
Thor Brigsted
2651bfbeb5 Increase crispyness of UI text 2018-01-21 23:55:55 +01:00
Thor Brigsted
f7637abcc3 Allow dragging view with middle mouse button 2018-01-09 01:41:23 +01:00
Thor Kramer Brigsted
6e649dcc24 Automatically relink renamed Node scripts 2018-01-08 14:34:54 +01:00
Thor Brigsted
5f900c0b14 Removed references to previous project name 2017-12-31 01:22:18 +01:00
Thor Brigsted
83b8a693e3 Node graphs now open in same window instead of a new one. 2017-12-29 12:12:54 +01:00
Thor Brigsted
18157226fa Renamed resources 2017-12-26 01:01:36 +01:00
Thor
66de07e1a7 More strongly typed namespaces to prevent import conflicts 2017-12-18 10:37:02 +01:00
Thor Brigsted
29dd6e0c62 Unity 5.3 compatibility patches. 2017-12-03 18:52:34 +01:00
neko1990
ec4429e969 compatibility patches, make xNode work on Unity 5.4. 2017-12-03 23:50:54 +08:00
Thor Brigsted
d7e133a822 Defined namespaces across all scripts prevent conflicts. 2017-12-02 09:56:41 +01:00
Thor Kramer Brigsted
d15b55745d Null check changes 2017-11-29 09:16:48 +01:00
Thor Kramer Brigsted
aabd2e4145 Added NodeGraphEditor.GetTypeColor for custom node-graph specific type colors 2017-11-28 10:49:24 +01:00
Thor Kramer Brigsted
9e68617cb8 Added NodeGraphEditor.GetNodePath
You now have more control over which nodes get displayed in the context menu, and how they are displayed
2017-11-28 10:17:21 +01:00
Thor Kramer Brigsted
869bd6a76d Reordered node context menu 2017-11-28 09:41:38 +01:00
Thor Kramer Brigsted
215a3475ea Small editor erformance gain. Removed PrettifyCamelCase.
Use ObjectNames.NicifyVariableName instead
2017-11-28 09:38:21 +01:00
Thor Kramer Brigsted
d1d2f9766c Added null check 2017-11-27 09:46:14 +01:00
Thor Kramer Brigsted
43df6ef75b Added GetSecondaryGridTexture 2017-11-27 09:41:47 +01:00
Thor Kramer Brigsted
639680b4f2 Merge branch 'master' of https://github.com/Siccity/xNode.git into development 2017-11-27 09:31:15 +01:00
Thor Kramer Brigsted
e7f759497b NodeGraphEditor work continued 2017-11-27 09:29:07 +01:00
Thor Brigsted
fe057a7be2 Added ShowBackingValue options for Input and Output
Added NodeEditorUtilities.GetAttrib<T>(Type classType, string fieldName, out T attribute)
2017-11-27 00:59:16 +01:00
Thor Brigsted
8c688b9f8b Changed default node width from 200 to 208 to match grid lines 2017-11-26 23:35:11 +01:00
Jason Beetham
0f6fca09bd Fixed issue with NodeTint not working properly. 2017-11-25 19:47:40 -07:00
Thor Kramer Brigsted
710692a326 Added virtual NodeEdutor.GetTint() 2017-11-23 10:06:57 +01:00
Thor Kramer Brigsted
4ea25f6aee Initial NodeGraphEditor implementation 2017-11-22 14:54:06 +01:00
Thor Kramer Brigsted
dcff69979c Moved NodeEditorGUI.TypeToString to NodeEditorUtilities.PrettyName
Improved custom type color handling
Removed default color overrides
2017-11-21 13:21:34 +01:00
Thor Kramer Brigsted
5f161b80e7 Added grid snap and color settings. 2017-11-21 12:53:56 +01:00
Thor Kramer Brigsted
81f5879e92 Started work on snap and grid color 2017-11-21 10:51:27 +01:00
Thor Kramer Brigsted
566a64b31f Added preferences shortcut to graph context menu 2017-11-20 15:45:30 +01:00
Thor Kramer Brigsted
07f1f9aac5 Maked NodeEditor.OnHeaderGUI as virtual 2017-11-20 09:51:12 +01:00
Thor Brigsted
8bfe09dfb7 Added Duplicate and Move To Top to node context menu 2017-11-20 00:54:04 +01:00
Thor Brigsted
69c2b254aa Added [ContextMenu] support 2017-11-20 00:11:17 +01:00