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; }
|
||||
|
||||
[System.NonSerialized]
|
||||
GUIStyle lockButtonStyle;
|
||||
|
||||
/// <summary>
|
||||
/// Magic method which Unity detects automatically.
|
||||
/// </summary>
|
||||
/// <param name="position">Position of button.</param>
|
||||
void ShowButton(Rect position) {
|
||||
if (lockButtonStyle == null)
|
||||
lockButtonStyle = "IN LockButton";
|
||||
Lock = GUI.Toggle(position, Lock, GUIContent.none, lockButtonStyle);
|
||||
Lock = GUI.Toggle(position, Lock, GUIContent.none, "IN LockButton");
|
||||
}
|
||||
|
||||
public void AddItemsToMenu(GenericMenu menu)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user