Christopher
8 years ago
3 changed files with 27 additions and 29 deletions
@ -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(); |
||||
} |
||||
} |
||||
} |
@ -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(); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue