@ -7,23 +7,23 @@ using System.Collections.Generic;
namespaceFungus.Script
namespaceFungus.Script
{
{
[CustomEditor (typeof(AddOption))]
[CustomEditor (typeof(Option))]
publicclassAddOptionEditor:FungusCommandEditor
publicclassOptionEditor:FungusCommandEditor
{
{
publicoverridevoidDrawCommandGUI()
publicoverridevoidDrawCommandGUI()
{
{
AddOptiont=targetasAddOption;
Optiont=targetasOption;
EditorGUI.BeginChangeCheck();
EditorGUI.BeginChangeCheck();
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"),t.GetFungusScript(),t.targetSequence);
AddOption.ShowConditionshowCondition=(AddOption.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);