mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-21 01:36:03 +08:00
Changed NodeEditor.OnHeaderGUI and NodeEditorOnBodyGUI to public
This commit is contained in:
parent
90c3621795
commit
86c7966fe6
@ -7,7 +7,7 @@ namespace BasicNodes {
|
||||
[CustomNodeEditor(typeof(DisplayValue))]
|
||||
public class DisplayValueEditor : NodeEditor {
|
||||
|
||||
protected override void OnBodyGUI() {
|
||||
public override void OnBodyGUI() {
|
||||
base.OnBodyGUI();
|
||||
object obj = target.GetValue(null);
|
||||
if (obj != null) EditorGUILayout.LabelField(target.GetValue(null).ToString());
|
||||
|
||||
@ -20,14 +20,14 @@ public class NodeEditor {
|
||||
OnBodyGUI();
|
||||
}
|
||||
|
||||
protected void OnHeaderGUI() {
|
||||
public void OnHeaderGUI() {
|
||||
GUI.color = Color.white;
|
||||
string title = NodeEditorUtilities.PrettifyCamelCase(target.name);
|
||||
GUILayout.Label(title, NodeEditorResources.styles.nodeHeader, GUILayout.Height(30));
|
||||
}
|
||||
|
||||
/// <summary> Draws standard field editors for all public fields </summary>
|
||||
protected virtual void OnBodyGUI() {
|
||||
public virtual void OnBodyGUI() {
|
||||
string[] excludes = { "m_Script", "graph", "position", "ports" };
|
||||
portPositions = new Dictionary<NodePort, Vector2>();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user