Browse Source
-some lists/arrays were reorderable when they did not need to be and thus are removed for right nowmaster
desktop-maesty/steve
7 years ago
15 changed files with 69 additions and 175 deletions
@ -1,34 +0,0 @@ |
|||||||
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). |
|
||||||
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) |
|
||||||
|
|
||||||
#if UNITY_5_3_OR_NEWER |
|
||||||
|
|
||||||
using UnityEngine; |
|
||||||
using UnityEditor; |
|
||||||
using Rotorz.ReorderableList; |
|
||||||
|
|
||||||
namespace Fungus.EditorUtils |
|
||||||
{ |
|
||||||
[CustomEditor (typeof(SaveData), true)] |
|
||||||
public class SaveDataEditor : 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(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#endif |
|
@ -1,12 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 395934d0b0e6a48a396a25348aeaade5 |
|
||||||
timeCreated: 1484049679 |
|
||||||
licenseType: Free |
|
||||||
MonoImporter: |
|
||||||
serializedVersion: 2 |
|
||||||
defaultReferences: [] |
|
||||||
executionOrder: 0 |
|
||||||
icon: {instanceID: 0} |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -1,30 +0,0 @@ |
|||||||
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). |
|
||||||
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) |
|
||||||
|
|
||||||
#if UNITY_5_3_OR_NEWER |
|
||||||
|
|
||||||
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"); |
|
||||||
} |
|
||||||
|
|
||||||
protected override void DrawProperties() |
|
||||||
{ |
|
||||||
ReorderableListGUI.Title("Save Point Keys"); |
|
||||||
ReorderableListGUI.ListField(savePointKeysProp); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
#endif |
|
@ -1,12 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 8514e225c506c4938a5da19210cc6217 |
|
||||||
timeCreated: 1484049679 |
|
||||||
licenseType: Free |
|
||||||
MonoImporter: |
|
||||||
serializedVersion: 2 |
|
||||||
defaultReferences: [] |
|
||||||
executionOrder: 0 |
|
||||||
icon: {instanceID: 0} |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
@ -1,40 +0,0 @@ |
|||||||
// This code is part of the Fungus library (http://fungusgames.com) maintained by Chris Gregan (http://twitter.com/gofungus). |
|
||||||
// It is released for free under the MIT open source license (https://github.com/snozbot/fungus/blob/master/LICENSE) |
|
||||||
|
|
||||||
using UnityEditor; |
|
||||||
using UnityEngine; |
|
||||||
using Rotorz.ReorderableList; |
|
||||||
|
|
||||||
namespace Fungus.EditorUtils |
|
||||||
{ |
|
||||||
[CustomEditor (typeof(SetCollider))] |
|
||||||
public class SetColliderEditor : CommandEditor |
|
||||||
{ |
|
||||||
protected SerializedProperty targetObjectsProp; |
|
||||||
protected SerializedProperty targetTagProp; |
|
||||||
protected SerializedProperty activeStateProp; |
|
||||||
|
|
||||||
protected virtual void OnEnable() |
|
||||||
{ |
|
||||||
if (NullTargetCheck()) // Check for an orphaned editor instance |
|
||||||
return; |
|
||||||
|
|
||||||
targetObjectsProp = serializedObject.FindProperty("targetObjects"); |
|
||||||
targetTagProp = serializedObject.FindProperty("targetTag"); |
|
||||||
activeStateProp = serializedObject.FindProperty("activeState"); |
|
||||||
} |
|
||||||
|
|
||||||
public override void DrawCommandGUI() |
|
||||||
{ |
|
||||||
serializedObject.Update(); |
|
||||||
|
|
||||||
ReorderableListGUI.Title(new GUIContent("Target Objects", "Objects containing collider components (2D or 3D)")); |
|
||||||
ReorderableListGUI.ListField(targetObjectsProp); |
|
||||||
|
|
||||||
EditorGUILayout.PropertyField(targetTagProp); |
|
||||||
EditorGUILayout.PropertyField(activeStateProp); |
|
||||||
|
|
||||||
serializedObject.ApplyModifiedProperties(); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
@ -1,12 +0,0 @@ |
|||||||
fileFormatVersion: 2 |
|
||||||
guid: 672281668cfa249738d9dbc91f96b88e |
|
||||||
timeCreated: 1432222536 |
|
||||||
licenseType: Free |
|
||||||
MonoImporter: |
|
||||||
serializedVersion: 2 |
|
||||||
defaultReferences: [] |
|
||||||
executionOrder: 0 |
|
||||||
icon: {instanceID: 0} |
|
||||||
userData: |
|
||||||
assetBundleName: |
|
||||||
assetBundleVariant: |
|
Loading…
Reference in new issue