stringoptionText=EditorGUILayout.TextField(newGUIContent("Option Text","Text to display on the option button."),
EditorGUILayout.PropertyField(optionTextProp,newGUIContent("Option Text","Text to display on the option button."));
t.optionText);
SequencetargetSequence=SequenceEditor.SequenceField(newGUIContent("Target Sequence","Sequence to execute when this option is selected by the player."),
SequenceEditor.SequenceField(targetSequenceProp,
newGUIContent("Target Sequence","Sequence to execute when this option is selected by the player."),
newGUIContent("<Continue>"),
newGUIContent("<Continue>"),
t.GetFungusScript(),
t.GetFungusScript());
t.targetSequence);
boolhideOnSelected=EditorGUILayout.Toggle(newGUIContent("Hide On Selected","Hide this option forever once the player has selected it."),t.hideOnSelected);
EditorGUILayout.PropertyField(hideOnSelectedProp,newGUIContent("Hide On Selected","Hide this option forever once the player has selected it."));
floatstepTime=EditorGUILayout.FloatField(newGUIContent("Step Time","Minimum time to execute each step"),t.stepTime);
EditorGUILayout.PropertyField(stepTimeProp,newGUIContent("Step Time","Minimum time to execute each step"));
SequencestartSequence=SequenceEditor.SequenceField(newGUIContent("Start Sequence","Sequence to be executed when controller starts."),
SequenceEditor.SequenceField(startSequenceProp,
newGUIContent("Start Sequence","Sequence to be executed when controller starts."),
newGUIContent("<None>"),
newGUIContent("<None>"),
t,
t);
t.startSequence);
if(t.startSequence==null)
if(t.startSequence==null)
{
{
GUIStylestyle=newGUIStyle(GUI.skin.label);
GUIStylestyle=newGUIStyle(GUI.skin.label);
@ -51,18 +64,9 @@ namespace Fungus.Script
EditorGUILayout.LabelField(newGUIContent("Error: Please select a Start Sequence"),style);
EditorGUILayout.LabelField(newGUIContent("Error: Please select a Start Sequence"),style);
}
}
boolstartAutomatically=EditorGUILayout.Toggle(newGUIContent("Start Automatically","Start this Fungus Script when the scene starts."),t.startAutomatically);
EditorGUILayout.PropertyField(startAutomaticallyProp,newGUIContent("Start Automatically","Start this Fungus Script when the scene starts."));
boolcolorCommands=EditorGUILayout.Toggle(newGUIContent("Color Commands","Display commands using colors in editor window."),t.colorCommands);
EditorGUILayout.PropertyField(colorCommandsProp,newGUIContent("Color Commands","Display commands using colors in editor window."));