Browse Source

Renamed pauseAfterCommand to stepPause

master
chrisgregan 10 years ago
parent
commit
0fcd386cfd
  1. 6
      Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs
  2. 4
      Assets/Fungus/Flowchart/Scripts/Block.cs
  3. 4
      Assets/Fungus/Flowchart/Scripts/Flowchart.cs

6
Assets/Fungus/Flowchart/Editor/FlowchartEditor.cs

@ -21,7 +21,7 @@ namespace Fungus
protected SerializedProperty descriptionProp;
protected SerializedProperty colorCommandsProp;
protected SerializedProperty hideComponentsProp;
protected SerializedProperty pauseAfterCommandProp;
protected SerializedProperty stepPauseProp;
protected SerializedProperty saveSelectionProp;
protected SerializedProperty localizationIdProp;
protected SerializedProperty variablesProp;
@ -31,7 +31,7 @@ namespace Fungus
descriptionProp = serializedObject.FindProperty("description");
colorCommandsProp = serializedObject.FindProperty("colorCommands");
hideComponentsProp = serializedObject.FindProperty("hideComponents");
pauseAfterCommandProp = serializedObject.FindProperty("pauseAfterCommand");
stepPauseProp = serializedObject.FindProperty("stepPause");
saveSelectionProp = serializedObject.FindProperty("saveSelection");
localizationIdProp = serializedObject.FindProperty("localizationId");
variablesProp = serializedObject.FindProperty("variables");
@ -48,7 +48,7 @@ namespace Fungus
EditorGUILayout.PropertyField(descriptionProp);
EditorGUILayout.PropertyField(colorCommandsProp);
EditorGUILayout.PropertyField(hideComponentsProp);
EditorGUILayout.PropertyField(pauseAfterCommandProp);
EditorGUILayout.PropertyField(stepPauseProp);
EditorGUILayout.PropertyField(saveSelectionProp);
EditorGUILayout.PropertyField(localizationIdProp);

4
Assets/Fungus/Flowchart/Scripts/Block.cs

@ -231,9 +231,9 @@ namespace Fungus
}
#if UNITY_EDITOR
if (flowchart.pauseAfterCommand > 0f)
if (flowchart.stepPause > 0f)
{
yield return new WaitForSeconds(flowchart.pauseAfterCommand);
yield return new WaitForSeconds(flowchart.stepPause);
}
#endif

4
Assets/Fungus/Flowchart/Scripts/Flowchart.cs

@ -86,8 +86,8 @@ namespace Fungus
* Slow down execution in the editor to make it easier to visualise program flow.
*/
[Range(0f, 5f)]
[Tooltip("Slow down execution in the editor to make it easier to visualise program flow. Does not affect platform builds.")]
public float pauseAfterCommand = 0f;
[Tooltip("Adds a pause after each execution step to make it easier to visualise program flow. Editor only, has no effect in platform builds.")]
public float stepPause = 0f;
/**
* Use command color when displaying the command list in the inspector.

Loading…
Cancel
Save