Browse Source

Moved Fungus Editor label to bottom

master
chrisgregan 11 years ago
parent
commit
d46bdb6d6f
  1. 37
      Assets/Fungus/Editor/FungusEditorWindow.cs

37
Assets/Fungus/Editor/FungusEditorWindow.cs

@ -59,25 +59,6 @@ public class FungusEditorWindow : EditorWindow
return;
}
string labelText = sequenceController.name;
if (Application.isPlaying)
{
if (sequenceController.activeSequence == null)
{
labelText += ": Idle";
}
else
{
labelText += ": Active";
}
}
GUILayout.BeginHorizontal();
GUILayout.FlexibleSpace();
GUILayout.Label(labelText);
GUILayout.Space(30);
GUILayout.EndHorizontal();
Sequence[] sequences = sequenceController.GetComponentsInChildren<Sequence>();
Rect scrollViewRect = new Rect();
@ -119,6 +100,24 @@ public class FungusEditorWindow : EditorWindow
EndWindows();
GUI.EndScrollView();
string labelText = sequenceController.name;
if (Application.isPlaying)
{
if (sequenceController.activeSequence == null)
{
labelText += ": Idle";
}
else
{
labelText += ": Active";
}
}
GUILayout.BeginVertical();
GUILayout.FlexibleSpace();
GUILayout.Label(labelText);
GUILayout.EndVertical();
}
void DrawWindow(int windowId)

Loading…
Cancel
Save