diff --git a/Assets/Fungus/Editor/FungusEditorWindow.cs b/Assets/Fungus/Editor/FungusEditorWindow.cs index 67946076..8d567109 100755 --- a/Assets/Fungus/Editor/FungusEditorWindow.cs +++ b/Assets/Fungus/Editor/FungusEditorWindow.cs @@ -130,14 +130,14 @@ public class FungusEditorWindow : EditorWindow GUILayout.BeginVertical(); GUILayout.FlexibleSpace(); GUILayout.BeginHorizontal(); - GUILayout.Space(10); + GUILayout.Space(15); if (GUILayout.Button(labelText)) { Selection.activeGameObject = sequenceController.gameObject; } GUILayout.FlexibleSpace(); GUILayout.EndHorizontal(); - GUILayout.Space(10); + GUILayout.Space(15); GUILayout.EndVertical(); } diff --git a/Assets/Fungus/Editor/SequenceControllerEditor.cs b/Assets/Fungus/Editor/SequenceControllerEditor.cs index 397cd9c9..2e1c85a9 100644 --- a/Assets/Fungus/Editor/SequenceControllerEditor.cs +++ b/Assets/Fungus/Editor/SequenceControllerEditor.cs @@ -11,9 +11,11 @@ public class SequenceControllerEditor : Editor { SequenceController t = target as SequenceController; - t.stepTime = EditorGUILayout.FloatField("Step Time", t.stepTime); + GUIContent stepTimeLabel = new GUIContent("Step Time", "Minimum time to execute each step"); + t.stepTime = EditorGUILayout.FloatField(stepTimeLabel, t.stepTime); - t.startSequence = SequenceEditor.SequenceField("Start Sequence", t, t.startSequence); + GUIContent startSequenceLabel = new GUIContent("Start Sequence", "Sequence to be executed when controller starts."); + t.startSequence = SequenceEditor.SequenceField(startSequenceLabel, t, t.startSequence); if (t.startSequence == null) { diff --git a/Assets/Fungus/Editor/SequenceEditor.cs b/Assets/Fungus/Editor/SequenceEditor.cs index 48d589c2..44619cad 100644 --- a/Assets/Fungus/Editor/SequenceEditor.cs +++ b/Assets/Fungus/Editor/SequenceEditor.cs @@ -8,7 +8,7 @@ using Fungus; public class SequenceEditor : Editor { - static public Sequence SequenceField(string label, SequenceController sequenceController, Sequence sequence) + static public Sequence SequenceField(GUIContent label, SequenceController sequenceController, Sequence sequence) { if (sequenceController == null) { @@ -18,14 +18,14 @@ public class SequenceEditor : Editor Sequence result = sequence; // Build dictionary of child sequences - List sequenceNames = new List(); + List sequenceNames = new List(); int selectedIndex = 0; - sequenceNames.Add("None"); + sequenceNames.Add(new GUIContent("None")); Sequence[] sequences = sequenceController.GetComponentsInChildren(); for (int i = 0; i < sequences.Length; ++i) { - sequenceNames.Add(sequences[i].name); + sequenceNames.Add(new GUIContent(sequences[i].name)); if (sequence == sequences[i]) { @@ -33,7 +33,7 @@ public class SequenceEditor : Editor } } - selectedIndex = EditorGUILayout.Popup("Start Sequence", selectedIndex, sequenceNames.ToArray()); + selectedIndex = EditorGUILayout.Popup(label, selectedIndex, sequenceNames.ToArray()); if (selectedIndex == 0) { result = null; // Option 'None'