From d46bdb6d6f8f29aead49c6424fb109389ce21a5a Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Fri, 25 Jul 2014 17:42:42 +0100 Subject: [PATCH] Moved Fungus Editor label to bottom --- Assets/Fungus/Editor/FungusEditorWindow.cs | 37 +++++++++++----------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/Assets/Fungus/Editor/FungusEditorWindow.cs b/Assets/Fungus/Editor/FungusEditorWindow.cs index dd6a579e..1aec64a3 100755 --- a/Assets/Fungus/Editor/FungusEditorWindow.cs +++ b/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(); 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)