From de047966650a85309dbd4c1e4783045083779f7d Mon Sep 17 00:00:00 2001 From: chrisgregan Date: Mon, 28 Jul 2014 10:07:42 +0100 Subject: [PATCH] Changed SequenceController label to a button --- Assets/Fungus/Editor/FungusEditorWindow.cs | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/Assets/Fungus/Editor/FungusEditorWindow.cs b/Assets/Fungus/Editor/FungusEditorWindow.cs index 1214025b..5a90622a 100755 --- a/Assets/Fungus/Editor/FungusEditorWindow.cs +++ b/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(); }