|
|
@ -25,6 +25,11 @@ namespace Fungus.Script |
|
|
|
{ |
|
|
|
{ |
|
|
|
FungusCommand t = target as FungusCommand; |
|
|
|
FungusCommand t = target as FungusCommand; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (t == null) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
GUILayout.BeginVertical(); |
|
|
|
GUILayout.BeginVertical(); |
|
|
|
|
|
|
|
|
|
|
|
GUILayout.BeginHorizontal(); |
|
|
|
GUILayout.BeginHorizontal(); |
|
|
@ -44,20 +49,8 @@ namespace Fungus.Script |
|
|
|
|
|
|
|
|
|
|
|
GUILayout.EndHorizontal(); |
|
|
|
GUILayout.EndHorizontal(); |
|
|
|
|
|
|
|
|
|
|
|
if (!t.expanded) |
|
|
|
if (t.expanded) |
|
|
|
{ |
|
|
|
{ |
|
|
|
GUILayout.EndVertical(); |
|
|
|
|
|
|
|
if (Event.current.type == EventType.Repaint && |
|
|
|
|
|
|
|
t.IsExecuting()) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
Rect rect = GUILayoutUtility.GetLastRect(); |
|
|
|
|
|
|
|
rect.x -= 10; |
|
|
|
|
|
|
|
rect.width += 10; |
|
|
|
|
|
|
|
GLDraw.DrawBox(rect, Color.green, 1.5f); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GUILayout.BeginHorizontal(); |
|
|
|
GUILayout.BeginHorizontal(); |
|
|
|
|
|
|
|
|
|
|
|
GUILayout.FlexibleSpace(); |
|
|
|
GUILayout.FlexibleSpace(); |
|
|
@ -114,6 +107,7 @@ namespace Fungus.Script |
|
|
|
EditorGUILayout.LabelField(new GUIContent("Error: " + t.errorMessage), style); |
|
|
|
EditorGUILayout.LabelField(new GUIContent("Error: " + t.errorMessage), style); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
GUILayout.EndVertical(); |
|
|
|
GUILayout.EndVertical(); |
|
|
|
|
|
|
|
|
|
|
|