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)
{
labelText += ": Idle";
labelText += " (Idle)";
}
else
{
labelText += ": Active";
labelText += " (Running)";
}
}
else
{
labelText += ": Edit";
labelText += " (Edit)";
}
GUILayout.BeginVertical();
GUILayout.FlexibleSpace();
GUILayout.Label(labelText);
GUILayout.Space(15);
GUILayout.BeginHorizontal();
GUILayout.Space(10);
if (GUILayout.Button(labelText))
{
Selection.activeGameObject = sequenceController.gameObject;
}
GUILayout.FlexibleSpace();
GUILayout.EndHorizontal();
GUILayout.Space(10);
GUILayout.EndVertical();
}

Loading…
Cancel
Save