Browse Source

Updated MenuEditor to display intractable property

master
chrisgregan 10 years ago
parent
commit
3b98187975
  1. 3
      Assets/Fungus/Narrative/Editor/MenuEditor.cs

3
Assets/Fungus/Narrative/Editor/MenuEditor.cs

@ -14,6 +14,7 @@ namespace Fungus
protected SerializedProperty descriptionProp; protected SerializedProperty descriptionProp;
protected SerializedProperty targetBlockProp; protected SerializedProperty targetBlockProp;
protected SerializedProperty hideIfVisitedProp; protected SerializedProperty hideIfVisitedProp;
protected SerializedProperty interactableProp;
protected SerializedProperty setMenuDialogProp; protected SerializedProperty setMenuDialogProp;
protected virtual void OnEnable() protected virtual void OnEnable()
@ -22,6 +23,7 @@ namespace Fungus
descriptionProp = serializedObject.FindProperty("description"); descriptionProp = serializedObject.FindProperty("description");
targetBlockProp = serializedObject.FindProperty("targetBlock"); targetBlockProp = serializedObject.FindProperty("targetBlock");
hideIfVisitedProp = serializedObject.FindProperty("hideIfVisited"); hideIfVisitedProp = serializedObject.FindProperty("hideIfVisited");
interactableProp = serializedObject.FindProperty("interactable");
setMenuDialogProp = serializedObject.FindProperty("setMenuDialog"); setMenuDialogProp = serializedObject.FindProperty("setMenuDialog");
} }
@ -45,6 +47,7 @@ namespace Fungus
flowchart); flowchart);
EditorGUILayout.PropertyField(hideIfVisitedProp); EditorGUILayout.PropertyField(hideIfVisitedProp);
EditorGUILayout.PropertyField(interactableProp);
EditorGUILayout.PropertyField(setMenuDialogProp); EditorGUILayout.PropertyField(setMenuDialogProp);
serializedObject.ApplyModifiedProperties(); serializedObject.ApplyModifiedProperties();

Loading…
Cancel
Save