mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
Add virtual methods for NodeEditorWindow focus
This commit is contained in:
parent
c2a99ba2b5
commit
4386099d59
@ -17,6 +17,12 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
/// <summary> Called when opened by NodeEditorWindow </summary>
|
/// <summary> Called when opened by NodeEditorWindow </summary>
|
||||||
public virtual void OnOpen() { }
|
public virtual void OnOpen() { }
|
||||||
|
|
||||||
|
/// <summary> Called when NodeEditorWindow gains focus </summary>
|
||||||
|
public virtual void OnWindowFocus() { }
|
||||||
|
|
||||||
|
/// <summary> Called when NodeEditorWindow loses focus </summary>
|
||||||
|
public virtual void OnWindowFocusLost() { }
|
||||||
|
|
||||||
public virtual Texture2D GetGridTexture() {
|
public virtual Texture2D GetGridTexture() {
|
||||||
return NodeEditorPreferences.GetSettings().gridTexture;
|
return NodeEditorPreferences.GetSettings().gridTexture;
|
||||||
@ -211,4 +217,4 @@ namespace XNodeEditor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user