mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Removed middleman function
This commit is contained in:
parent
16992c3972
commit
e9c6b6f221
@ -15,13 +15,6 @@ namespace XNodeEditor {
|
|||||||
public static Dictionary<XNode.NodePort, Vector2> portPositions;
|
public static Dictionary<XNode.NodePort, Vector2> portPositions;
|
||||||
public static int renaming;
|
public static int renaming;
|
||||||
|
|
||||||
/// <summary> Draws the node GUI.</summary>
|
|
||||||
/// <param name="portPositions">Port handle positions need to be returned to the NodeEditorWindow </param>
|
|
||||||
public void OnNodeGUI() {
|
|
||||||
OnHeaderGUI();
|
|
||||||
OnBodyGUI();
|
|
||||||
}
|
|
||||||
|
|
||||||
public virtual void OnHeaderGUI() {
|
public virtual void OnHeaderGUI() {
|
||||||
string title = target.name;
|
string title = target.name;
|
||||||
if (renaming != 0 && Selection.Contains(target)) {
|
if (renaming != 0 && Selection.Contains(target)) {
|
||||||
|
|||||||
@ -366,7 +366,8 @@ namespace XNodeEditor {
|
|||||||
EditorGUI.BeginChangeCheck();
|
EditorGUI.BeginChangeCheck();
|
||||||
|
|
||||||
//Draw node contents
|
//Draw node contents
|
||||||
nodeEditor.OnNodeGUI();
|
nodeEditor.OnHeaderGUI();
|
||||||
|
nodeEditor.OnBodyGUI();
|
||||||
|
|
||||||
//If user changed a value, notify other scripts through onUpdateNode
|
//If user changed a value, notify other scripts through onUpdateNode
|
||||||
if (EditorGUI.EndChangeCheck()) {
|
if (EditorGUI.EndChangeCheck()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user