mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
!TX
This commit is contained in:
parent
25053eaa2c
commit
ae9429fa3e
@ -11,17 +11,12 @@ namespace XNodeEditor {
|
|||||||
|
|
||||||
public bool Lock { get; private set; }
|
public bool Lock { get; private set; }
|
||||||
|
|
||||||
[System.NonSerialized]
|
|
||||||
GUIStyle lockButtonStyle;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Magic method which Unity detects automatically.
|
/// Magic method which Unity detects automatically.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="position">Position of button.</param>
|
/// <param name="position">Position of button.</param>
|
||||||
void ShowButton(Rect position) {
|
void ShowButton(Rect position) {
|
||||||
if (lockButtonStyle == null)
|
Lock = GUI.Toggle(position, Lock, GUIContent.none, "IN LockButton");
|
||||||
lockButtonStyle = "IN LockButton";
|
|
||||||
Lock = GUI.Toggle(position, Lock, GUIContent.none, lockButtonStyle);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddItemsToMenu(GenericMenu menu)
|
public void AddItemsToMenu(GenericMenu menu)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user