Browse Source

Improved layout of Flowchart name and description

https://trello.com/c/vwnzaOh2
master
chrisgregan 10 years ago
parent
commit
0f3f580c6f
  1. 17
      Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs

17
Assets/Fungus/Flowchart/Editor/FlowchartWindow.cs

@ -160,6 +160,14 @@ namespace Fungus
GUILayout.FlexibleSpace(); GUILayout.FlexibleSpace();
GUILayout.BeginVertical();
GUILayout.Label(flowchart.name, EditorStyles.whiteBoldLabel);
if (flowchart.description.Length > 0)
{
GUILayout.Label(flowchart.description, EditorStyles.helpBox);
}
GUILayout.EndVertical();
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
GUILayout.FlexibleSpace(); GUILayout.FlexibleSpace();
@ -198,15 +206,6 @@ namespace Fungus
GUILayout.FlexibleSpace(); GUILayout.FlexibleSpace();
GUILayout.BeginVertical();
GUILayout.FlexibleSpace();
GUILayout.Label(flowchart.name, EditorStyles.whiteBoldLabel);
if (flowchart.description.Length > 0)
{
GUILayout.Label(flowchart.description, EditorStyles.whiteLargeLabel);
}
GUILayout.EndVertical();
GUILayout.EndHorizontal(); GUILayout.EndHorizontal();
} }

Loading…
Cancel
Save