|
|
@ -97,17 +97,10 @@ namespace Fungus.Script |
|
|
|
|
|
|
|
|
|
|
|
if (GUILayout.Button(command.GetCommandTitle())) |
|
|
|
if (GUILayout.Button(command.GetCommandTitle())) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (activeCommand == command) |
|
|
|
command.expanded = !command.expanded; |
|
|
|
{ |
|
|
|
|
|
|
|
activeCommand = null; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
activeCommand = command; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (showCommandInspector) |
|
|
|
if (command.expanded) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Editor commandEditor = Editor.CreateEditor(command); |
|
|
|
Editor commandEditor = Editor.CreateEditor(command); |
|
|
|
commandEditor.OnInspectorGUI(); |
|
|
|
commandEditor.OnInspectorGUI(); |
|
|
|