diff --git a/Assets/Fungus/Scripts/Editor/SavePointLoadedEditor.cs b/Assets/Fungus/Scripts/Editor/SavePointLoadedEditor.cs deleted file mode 100644 index 2957dc17..00000000 --- a/Assets/Fungus/Scripts/Editor/SavePointLoadedEditor.cs +++ /dev/null @@ -1,29 +0,0 @@ -using UnityEngine; -using UnityEditor; -using Rotorz.ReorderableList; - -namespace Fungus.EditorUtils -{ - [CustomEditor (typeof(SavePointLoaded), true)] - public class SavePointLoadedEditor : EventHandlerEditor - { - protected SerializedProperty savePointKeysProp; - - protected virtual void OnEnable() - { - savePointKeysProp = serializedObject.FindProperty("savePointKeys"); - } - - public override void DrawInspectorGUI() - { - serializedObject.Update(); - - ReorderableListGUI.Title("Save Point Keys"); - ReorderableListGUI.ListField(savePointKeysProp); - - DrawHelpBox(); - - serializedObject.ApplyModifiedProperties(); - } - } -} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Editor/SavedObjectsEditor.cs b/Assets/Fungus/Scripts/Editor/SavedObjectsEditor.cs new file mode 100644 index 00000000..7cbb0a7e --- /dev/null +++ b/Assets/Fungus/Scripts/Editor/SavedObjectsEditor.cs @@ -0,0 +1,27 @@ +using UnityEngine; +using UnityEditor; +using Rotorz.ReorderableList; + +namespace Fungus.EditorUtils +{ + [CustomEditor (typeof(SavedObjects), true)] + public class SavedObjectsEditor : Editor + { + protected SerializedProperty flowchartsProp; + + protected virtual void OnEnable() + { + flowchartsProp = serializedObject.FindProperty("flowcharts"); + } + + public override void OnInspectorGUI() + { + serializedObject.Update(); + + ReorderableListGUI.Title("Flowcharts"); + ReorderableListGUI.ListField(flowchartsProp); + + serializedObject.ApplyModifiedProperties(); + } + } +} \ No newline at end of file diff --git a/Assets/Fungus/Scripts/Editor/SavePointLoadedEditor.cs.meta b/Assets/Fungus/Scripts/Editor/SavedObjectsEditor.cs.meta similarity index 100% rename from Assets/Fungus/Scripts/Editor/SavePointLoadedEditor.cs.meta rename to Assets/Fungus/Scripts/Editor/SavedObjectsEditor.cs.meta