diff --git a/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs b/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs index f5371a95..ad0d9ec8 100644 --- a/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs +++ b/Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs @@ -82,6 +82,12 @@ namespace Fungus { t.variablesExpanded = true; } + + // Draw disclosure triangle + Rect lastRect = GUILayoutUtility.GetLastRect(); + lastRect.x += 5; + lastRect.y += 5; + EditorGUI.Foldout(lastRect, false, ""); } else { @@ -132,6 +138,12 @@ namespace Fungus t.variablesExpanded = false; } + // Draw disclosure triangle + Rect lastRect = buttonRect; + lastRect.x += 5; + lastRect.y += 5; + EditorGUI.Foldout(lastRect, true, ""); + Rect plusRect = listRect; plusRect.x += plusRect.width - plusWidth; plusRect.y -= plusHeight - 1;