SequencestartSequence=SequenceEditor.SequenceField(newGUIContent("Start Sequence","Sequence to be executed when controller starts."),
newGUIContent("<None>"),
t,
t.startSequence);
if(t.startSequence==null)
if(t.startSequence==null)
{
{
GUIStylestyle=newGUIStyle(GUI.skin.label);
GUIStylestyle=newGUIStyle(GUI.skin.label);
@ -51,8 +53,17 @@ namespace Fungus.Script
EditorGUILayout.LabelField(newGUIContent("Error: Please select a Start Sequence"),style);
EditorGUILayout.LabelField(newGUIContent("Error: Please select a Start Sequence"),style);
}
}
GUIContentstartAutomaticallyLabel=newGUIContent("Start Automatically","Start this Fungus Script when the scene starts.");
boolstartAutomatically=EditorGUILayout.Toggle(newGUIContent("Start Automatically","Start this Fungus Script when the scene starts."),t.startAutomatically);
stringoptionText=EditorGUILayout.TextField(newGUIContent("Option Text","Text for option button label"),t.optionText);
stringoptionText=EditorGUILayout.TextField(newGUIContent("Option Text","Text for option button label"),t.optionText);
SequencetargetSequence=SequenceEditor.SequenceField(newGUIContent("Target Sequence","Sequence to execute when option is selected"),t.GetFungusScript(),t.targetSequence);
SequencetargetSequence=SequenceEditor.SequenceField(newGUIContent("Target Sequence","Sequence to execute when option is selected"),
newGUIContent("<Continue>"),
t.GetFungusScript(),
t.targetSequence);
Option.ShowConditionshowCondition=(Option.ShowCondition)EditorGUILayout.EnumPopup(newGUIContent("Show Condition","Condition when this option should be visible."),t.showCondition);
Option.ShowConditionshowCondition=(Option.ShowCondition)EditorGUILayout.EnumPopup(newGUIContent("Show Condition","Condition when this option should be visible."),t.showCondition);