Browse Source

Renamed hideSequenceObjects to showSequenceObjects

master
chrisgregan 10 years ago
parent
commit
d050126edd
  1. 6
      Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs
  2. 4
      Assets/Fungus/FungusScript/Scripts/FungusScript.cs

6
Assets/Fungus/FungusScript/Editor/FungusScriptEditor.cs

@ -14,7 +14,7 @@ namespace Fungus
SerializedProperty startSequenceProp;
SerializedProperty startAutomaticallyProp;
SerializedProperty colorCommandsProp;
SerializedProperty hideSequenceObjectsProp;
SerializedProperty showSequenceObjectsProp;
SerializedProperty variablesProp;
void OnEnable()
@ -23,7 +23,7 @@ namespace Fungus
startSequenceProp = serializedObject.FindProperty("startSequence");
startAutomaticallyProp = serializedObject.FindProperty("startAutomatically");
colorCommandsProp = serializedObject.FindProperty("colorCommands");
hideSequenceObjectsProp = serializedObject.FindProperty("hideSequenceObjects");
showSequenceObjectsProp = serializedObject.FindProperty("showSequenceObjects");
variablesProp = serializedObject.FindProperty("variables");
}
@ -70,7 +70,7 @@ namespace Fungus
EditorGUILayout.PropertyField(colorCommandsProp, new GUIContent("Color Commands", "Display commands using colors in editor window."));
EditorGUILayout.PropertyField(hideSequenceObjectsProp, new GUIContent("Hide Sequence Objects", "Hides the Sequence game objects in the hierarchy view."));
EditorGUILayout.PropertyField(showSequenceObjectsProp, new GUIContent("Show Sequence Objects", "Display the child Sequence game objects in the hierarchy view."));
EditorGUILayout.Separator();

4
Assets/Fungus/FungusScript/Scripts/FungusScript.cs

@ -45,7 +45,7 @@ namespace Fungus
public bool colorCommands = true;
public bool hideSequenceObjects = true;
public bool showSequenceObjects = false;
public List<Variable> variables = new List<Variable>();
@ -140,7 +140,7 @@ namespace Fungus
Sequence[] sequences = GetComponentsInChildren<Sequence>();
foreach (Sequence sequence in sequences)
{
sequence.gameObject.hideFlags = hideSequenceObjects ? HideFlags.HideInHierarchy : HideFlags.None;
sequence.gameObject.hideFlags = showSequenceObjects ? HideFlags.None : HideFlags.HideInHierarchy;
}
}
}

Loading…
Cancel
Save