Christopher
8 years ago
9 changed files with 1084 additions and 180 deletions
@ -0,0 +1,29 @@
|
||||
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,12 @@
|
||||
fileFormatVersion: 2 |
||||
guid: 395934d0b0e6a48a396a25348aeaade5 |
||||
timeCreated: 1484049679 |
||||
licenseType: Free |
||||
MonoImporter: |
||||
serializedVersion: 2 |
||||
defaultReferences: [] |
||||
executionOrder: 0 |
||||
icon: {instanceID: 0} |
||||
userData: |
||||
assetBundleName: |
||||
assetBundleVariant: |
Loading…
Reference in new issue