From 5f3ac8fa6e9e034b85196c08d17137254799117a Mon Sep 17 00:00:00 2001 From: Zulfa Juniadi Date: Sun, 8 Jul 2018 23:19:18 +0800 Subject: [PATCH] Changed GetNodePath to GetNodeMenuName as per master branch --- Examples/MathGraph/Editor/MathGraphEditor.cs | 6 +++--- Examples/StateMachine/Editor/StateGraphEditor.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Examples/MathGraph/Editor/MathGraphEditor.cs b/Examples/MathGraph/Editor/MathGraphEditor.cs index 06cd431..7a580bf 100644 --- a/Examples/MathGraph/Editor/MathGraphEditor.cs +++ b/Examples/MathGraph/Editor/MathGraphEditor.cs @@ -8,12 +8,12 @@ namespace XNodeEditor.Examples { public class MathGraphEditor : NodeGraphEditor { /// - /// Overriding GetNodePath lets you control if and how nodes are categorized. + /// Overriding GetNodeMenuName lets you control if and how nodes are categorized. /// In this example we are sorting out all node types that are not in the XNode.Examples namespace. /// - public override string GetNodePath(System.Type type) { + public override string GetNodeMenuName(System.Type type) { if (type.Namespace == "XNode.Examples.MathNodes") { - return base.GetNodePath(type).Replace("X Node/Examples/Math Nodes/", ""); + return base.GetNodeMenuName(type).Replace("X Node/Examples/Math Nodes/", ""); } else return null; } } diff --git a/Examples/StateMachine/Editor/StateGraphEditor.cs b/Examples/StateMachine/Editor/StateGraphEditor.cs index f1b9cab..cbc810a 100644 --- a/Examples/StateMachine/Editor/StateGraphEditor.cs +++ b/Examples/StateMachine/Editor/StateGraphEditor.cs @@ -9,12 +9,12 @@ namespace XNodeEditor.Examples { public class StateGraphEditor : NodeGraphEditor { /// - /// Overriding GetNodePath lets you control if and how nodes are categorized. + /// Overriding GetNodeMenuName lets you control if and how nodes are categorized. /// In this example we are sorting out all node types that are not in the XNode.Examples namespace. /// - public override string GetNodePath(System.Type type) { + public override string GetNodeMenuName(System.Type type) { if (type.Namespace == "XNode.Examples.StateGraph") { - return base.GetNodePath(type).Replace("X Node/Examples/State Graph/", ""); + return base.GetNodeMenuName(type).Replace("X Node/Examples/State Graph/", ""); } else return null; } }