You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
739 B
29 lines
739 B
8 years ago
|
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();
|
||
|
}
|
||
|
}
|
||
|
}
|