Browse Source

Changed SequenceController label to a button

master
chrisgregan 10 years ago
parent
commit
de04796665
  1. 17
      Assets/Fungus/Editor/FungusEditorWindow.cs

17
Assets/Fungus/Editor/FungusEditorWindow.cs

@ -112,22 +112,29 @@ public class FungusEditorWindow : EditorWindow
{ {
if (sequenceController.activeSequence == null) if (sequenceController.activeSequence == null)
{ {
labelText += ": Idle"; labelText += " (Idle)";
} }
else else
{ {
labelText += ": Active"; labelText += " (Running)";
} }
} }
else else
{ {
labelText += ": Edit"; labelText += " (Edit)";
} }
GUILayout.BeginVertical(); GUILayout.BeginVertical();
GUILayout.FlexibleSpace(); GUILayout.FlexibleSpace();
GUILayout.Label(labelText); GUILayout.BeginHorizontal();
GUILayout.Space(15); GUILayout.Space(10);
if (GUILayout.Button(labelText))
{
Selection.activeGameObject = sequenceController.gameObject;
}
GUILayout.FlexibleSpace();
GUILayout.EndHorizontal();
GUILayout.Space(10);
GUILayout.EndVertical(); GUILayout.EndVertical();
} }

Loading…
Cancel
Save