net.dreditor.phraseanimations 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.attestation.p7m +0 -0
- package/AnimData.cs +41 -41
- package/AnimData.cs.meta +11 -11
- package/DREditor.PhraseAnimations.asmdef +19 -19
- package/DREditor.PhraseAnimations.asmdef.meta +7 -7
- package/Editor/CompactPhraseTypeEditor.cs +96 -96
- package/Editor/CompactPhraseTypeEditor.cs.meta +11 -11
- package/Editor/PhraseAnimationEditor.cs +179 -179
- package/Editor/PhraseAnimationEditor.cs.meta +11 -11
- package/Editor/PhraseAnimationTypeEditor.cs +24 -24
- package/Editor/PhraseAnimationTypeEditor.cs.meta +11 -11
- package/Editor/PhraseAnimationTypeList.cs +23 -23
- package/Editor/PhraseAnimationTypeList.cs.meta +11 -11
- package/Editor/PhraseFadeTypeEditor.cs +18 -18
- package/Editor/PhraseFadeTypeEditor.cs.meta +11 -11
- package/Editor/PhraseRotationTypeEditor.cs +19 -19
- package/Editor/PhraseRotationTypeEditor.cs.meta +11 -11
- package/Editor/PhraseScaleTypeEditor.cs +19 -19
- package/Editor/PhraseScaleTypeEditor.cs.meta +11 -11
- package/Editor/PhraseTransformTypeEditor.cs +18 -18
- package/Editor/PhraseTransformTypeEditor.cs.meta +11 -11
- package/Editor/PhraseTypeEditor.cs +277 -277
- package/Editor/PhraseTypeEditor.cs.meta +11 -11
- package/Editor.meta +8 -8
- package/IPhraseAnimationType.cs +16 -16
- package/IPhraseAnimationType.cs.meta +11 -11
- package/PhraseAnimation.cs +73 -73
- package/PhraseAnimation.cs.meta +11 -11
- package/PhraseAnimationCompact.cs +44 -44
- package/PhraseAnimationCompact.cs.meta +11 -11
- package/PhraseAnimationHandler.cs +135 -135
- package/PhraseAnimationHandler.cs.meta +11 -11
- package/PhraseAnimationTypeBase.cs +53 -53
- package/PhraseAnimationTypeBase.cs.meta +11 -11
- package/PhraseFadeType.cs +19 -19
- package/PhraseFadeType.cs.meta +11 -11
- package/PhraseRotationType.cs +27 -27
- package/PhraseRotationType.cs.meta +11 -11
- package/PhraseScaleType.cs +25 -25
- package/PhraseScaleType.cs.meta +11 -11
- package/PhraseTransformType.cs +25 -25
- package/PhraseTransformType.cs.meta +11 -11
- package/package.json +42 -37
- package/package.json.meta +7 -7
|
@@ -1,180 +1,180 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
using DREditor.Editor.Utility;
|
|
4
|
-
using System;
|
|
5
|
-
using System.Collections.Generic;
|
|
6
|
-
using UnityEditor;
|
|
7
|
-
using UnityEngine;
|
|
8
|
-
|
|
9
|
-
namespace DREditor.PhraseAnimations.Editor
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
[CustomClassEditor(typeof(PhraseAnimation))]
|
|
15
|
-
public class PhraseAnimationEditor : ClassEditorBase
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
protected List<Type> _types;
|
|
21
|
-
|
|
22
|
-
/// <summary>
|
|
23
|
-
///
|
|
24
|
-
/// </summary>
|
|
25
|
-
protected string[] choices;
|
|
26
|
-
|
|
27
|
-
/// <summary>
|
|
28
|
-
///
|
|
29
|
-
/// </summary>
|
|
30
|
-
protected PhraseAnimation target;
|
|
31
|
-
|
|
32
|
-
/// <summary>
|
|
33
|
-
///
|
|
34
|
-
/// </summary>
|
|
35
|
-
protected AnimData anim;
|
|
36
|
-
|
|
37
|
-
// Since this assembly is self contained, Phrase Animation Presets will come in a TBD future update.
|
|
38
|
-
//protected readonly PhrasePresetEditor presetEditor = new();
|
|
39
|
-
|
|
40
|
-
/// <inheritdoc/>
|
|
41
|
-
protected override void OnInspectorGUI()
|
|
42
|
-
{
|
|
43
|
-
target = baseTarget as PhraseAnimation;
|
|
44
|
-
|
|
45
|
-
DisplaySpawnData();
|
|
46
|
-
|
|
47
|
-
if (target.animations.Count > 0)
|
|
48
|
-
DisplayPhraseAnimations();
|
|
49
|
-
|
|
50
|
-
DisplayAddAnimationButton();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/// <summary>
|
|
54
|
-
///
|
|
55
|
-
/// </summary>
|
|
56
|
-
protected virtual void DisplaySpawnData()
|
|
57
|
-
{
|
|
58
|
-
target.SetSpawnPoint(HandyFields.Vector3Field("Spawn Point: ", target.spawnPoint, 200, 7));
|
|
59
|
-
|
|
60
|
-
target.SetSpawnAngle(HandyFields.Vector4Field("Spawn Angle: ", target.spawnAngle, 200, 7));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/// <summary>
|
|
64
|
-
///
|
|
65
|
-
/// </summary>
|
|
66
|
-
protected virtual void DisplayPhraseAnimations()
|
|
67
|
-
{
|
|
68
|
-
for (int i = 0; i < target.animations.Count; i++)
|
|
69
|
-
DisplayPhraseAnimation(i);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/// <summary>
|
|
73
|
-
///
|
|
74
|
-
/// </summary>
|
|
75
|
-
/// <param name="i"></param>
|
|
76
|
-
protected virtual void DisplayPhraseAnimation(int i)
|
|
77
|
-
{
|
|
78
|
-
anim = target.animations[i];
|
|
79
|
-
|
|
80
|
-
// Since this assembly is self contained, Phrase Animation Presets will come in a TBD future update.
|
|
81
|
-
//presetEditor.EditPhrasePreset(currPhrase);
|
|
82
|
-
|
|
83
|
-
InitializeTypeList();
|
|
84
|
-
|
|
85
|
-
using (new EditorGUILayout.VerticalScope("Box"))
|
|
86
|
-
{
|
|
87
|
-
EditorGUILayout.LabelField("Animation " + (i + 1) + ": ");
|
|
88
|
-
|
|
89
|
-
DisplayPhraseAnimationType();
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/// <summary>
|
|
94
|
-
///
|
|
95
|
-
/// </summary>
|
|
96
|
-
protected virtual void InitializeTypeList()
|
|
97
|
-
{
|
|
98
|
-
if (_types == null || _types.Count == 0)
|
|
99
|
-
PhraseAnimationTypeList.UpdateTypeList(out _types, out choices);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/// <summary>
|
|
103
|
-
///
|
|
104
|
-
/// </summary>
|
|
105
|
-
protected virtual void DisplayPhraseAnimationType()
|
|
106
|
-
{
|
|
107
|
-
DisplayPhraseAnimationTypeDropdown();
|
|
108
|
-
|
|
109
|
-
DisplayReplaceAnimationButton();
|
|
110
|
-
|
|
111
|
-
DisplayPhraseAnimationEditor();
|
|
112
|
-
|
|
113
|
-
DisplaySpawnAnimationButton();
|
|
114
|
-
|
|
115
|
-
DisplayRemoveAnimationButton();
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
/// <summary>
|
|
119
|
-
///
|
|
120
|
-
/// </summary>
|
|
121
|
-
protected virtual void DisplayPhraseAnimationTypeDropdown()
|
|
122
|
-
{
|
|
123
|
-
if (anim.animationType != null &&
|
|
124
|
-
_types[anim.typeIndex] != anim.animationType.GetType())
|
|
125
|
-
anim.SetIndex(_types.IndexOf(anim.animationType.GetType()));
|
|
126
|
-
|
|
127
|
-
anim.SetIndex(EditorGUILayout.Popup(anim.typeIndex, choices));
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/// <summary>
|
|
131
|
-
///
|
|
132
|
-
/// </summary>
|
|
133
|
-
protected virtual void DisplayReplaceAnimationButton()
|
|
134
|
-
{
|
|
135
|
-
if (anim.animationType != null &&
|
|
136
|
-
_types[anim.typeIndex] != anim.animationType.GetType() &&
|
|
137
|
-
GUILayout.Button("Replace Animation"))
|
|
138
|
-
anim.SetType((IPhraseAnimationType)Activator.CreateInstance(_types[anim.typeIndex]));
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/// <summary>
|
|
142
|
-
///
|
|
143
|
-
/// </summary>
|
|
144
|
-
protected virtual void DisplayPhraseAnimationEditor()
|
|
145
|
-
{
|
|
146
|
-
if (anim.animationType != null)
|
|
147
|
-
ClassEditorFactory.DrawEditorFor(anim.animationType);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/// <summary>
|
|
151
|
-
///
|
|
152
|
-
/// </summary>
|
|
153
|
-
protected virtual void DisplaySpawnAnimationButton()
|
|
154
|
-
{
|
|
155
|
-
if (anim.animationType == null && GUILayout.Button("Spawn Animation"))
|
|
156
|
-
anim.SetType((IPhraseAnimationType)Activator.CreateInstance(_types[anim.typeIndex]));
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/// <summary>
|
|
160
|
-
///
|
|
161
|
-
/// </summary>
|
|
162
|
-
protected virtual void DisplayRemoveAnimationButton()
|
|
163
|
-
{
|
|
164
|
-
if (GUILayout.Button("Remove Animation") &&
|
|
165
|
-
EditorUtility.DisplayDialog("Remove Animation", "Are you sure you want to Delete this Animation?",
|
|
166
|
-
"Yes", "No"))
|
|
167
|
-
target.animations.Remove(anim);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/// <summary>
|
|
171
|
-
///
|
|
172
|
-
/// </summary>
|
|
173
|
-
protected virtual void DisplayAddAnimationButton()
|
|
174
|
-
{
|
|
175
|
-
if (GUILayout.Button("Add Animation"))
|
|
176
|
-
target.animations.Add(new AnimData());
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
using DREditor.Editor.Utility;
|
|
4
|
+
using System;
|
|
5
|
+
using System.Collections.Generic;
|
|
6
|
+
using UnityEditor;
|
|
7
|
+
using UnityEngine;
|
|
8
|
+
|
|
9
|
+
namespace DREditor.PhraseAnimations.Editor
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
[CustomClassEditor(typeof(PhraseAnimation))]
|
|
15
|
+
public class PhraseAnimationEditor : ClassEditorBase
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
protected List<Type> _types;
|
|
21
|
+
|
|
22
|
+
/// <summary>
|
|
23
|
+
///
|
|
24
|
+
/// </summary>
|
|
25
|
+
protected string[] choices;
|
|
26
|
+
|
|
27
|
+
/// <summary>
|
|
28
|
+
///
|
|
29
|
+
/// </summary>
|
|
30
|
+
protected PhraseAnimation target;
|
|
31
|
+
|
|
32
|
+
/// <summary>
|
|
33
|
+
///
|
|
34
|
+
/// </summary>
|
|
35
|
+
protected AnimData anim;
|
|
36
|
+
|
|
37
|
+
// Since this assembly is self contained, Phrase Animation Presets will come in a TBD future update.
|
|
38
|
+
//protected readonly PhrasePresetEditor presetEditor = new();
|
|
39
|
+
|
|
40
|
+
/// <inheritdoc/>
|
|
41
|
+
protected override void OnInspectorGUI()
|
|
42
|
+
{
|
|
43
|
+
target = baseTarget as PhraseAnimation;
|
|
44
|
+
|
|
45
|
+
DisplaySpawnData();
|
|
46
|
+
|
|
47
|
+
if (target.animations.Count > 0)
|
|
48
|
+
DisplayPhraseAnimations();
|
|
49
|
+
|
|
50
|
+
DisplayAddAnimationButton();
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/// <summary>
|
|
54
|
+
///
|
|
55
|
+
/// </summary>
|
|
56
|
+
protected virtual void DisplaySpawnData()
|
|
57
|
+
{
|
|
58
|
+
target.SetSpawnPoint(HandyFields.Vector3Field("Spawn Point: ", target.spawnPoint, 200, 7));
|
|
59
|
+
|
|
60
|
+
target.SetSpawnAngle(HandyFields.Vector4Field("Spawn Angle: ", target.spawnAngle, 200, 7));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/// <summary>
|
|
64
|
+
///
|
|
65
|
+
/// </summary>
|
|
66
|
+
protected virtual void DisplayPhraseAnimations()
|
|
67
|
+
{
|
|
68
|
+
for (int i = 0; i < target.animations.Count; i++)
|
|
69
|
+
DisplayPhraseAnimation(i);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/// <summary>
|
|
73
|
+
///
|
|
74
|
+
/// </summary>
|
|
75
|
+
/// <param name="i"></param>
|
|
76
|
+
protected virtual void DisplayPhraseAnimation(int i)
|
|
77
|
+
{
|
|
78
|
+
anim = target.animations[i];
|
|
79
|
+
|
|
80
|
+
// Since this assembly is self contained, Phrase Animation Presets will come in a TBD future update.
|
|
81
|
+
//presetEditor.EditPhrasePreset(currPhrase);
|
|
82
|
+
|
|
83
|
+
InitializeTypeList();
|
|
84
|
+
|
|
85
|
+
using (new EditorGUILayout.VerticalScope("Box"))
|
|
86
|
+
{
|
|
87
|
+
EditorGUILayout.LabelField("Animation " + (i + 1) + ": ");
|
|
88
|
+
|
|
89
|
+
DisplayPhraseAnimationType();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/// <summary>
|
|
94
|
+
///
|
|
95
|
+
/// </summary>
|
|
96
|
+
protected virtual void InitializeTypeList()
|
|
97
|
+
{
|
|
98
|
+
if (_types == null || _types.Count == 0)
|
|
99
|
+
PhraseAnimationTypeList.UpdateTypeList(out _types, out choices);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/// <summary>
|
|
103
|
+
///
|
|
104
|
+
/// </summary>
|
|
105
|
+
protected virtual void DisplayPhraseAnimationType()
|
|
106
|
+
{
|
|
107
|
+
DisplayPhraseAnimationTypeDropdown();
|
|
108
|
+
|
|
109
|
+
DisplayReplaceAnimationButton();
|
|
110
|
+
|
|
111
|
+
DisplayPhraseAnimationEditor();
|
|
112
|
+
|
|
113
|
+
DisplaySpawnAnimationButton();
|
|
114
|
+
|
|
115
|
+
DisplayRemoveAnimationButton();
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/// <summary>
|
|
119
|
+
///
|
|
120
|
+
/// </summary>
|
|
121
|
+
protected virtual void DisplayPhraseAnimationTypeDropdown()
|
|
122
|
+
{
|
|
123
|
+
if (anim.animationType != null &&
|
|
124
|
+
_types[anim.typeIndex] != anim.animationType.GetType())
|
|
125
|
+
anim.SetIndex(_types.IndexOf(anim.animationType.GetType()));
|
|
126
|
+
|
|
127
|
+
anim.SetIndex(EditorGUILayout.Popup(anim.typeIndex, choices));
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/// <summary>
|
|
131
|
+
///
|
|
132
|
+
/// </summary>
|
|
133
|
+
protected virtual void DisplayReplaceAnimationButton()
|
|
134
|
+
{
|
|
135
|
+
if (anim.animationType != null &&
|
|
136
|
+
_types[anim.typeIndex] != anim.animationType.GetType() &&
|
|
137
|
+
GUILayout.Button("Replace Animation"))
|
|
138
|
+
anim.SetType((IPhraseAnimationType)Activator.CreateInstance(_types[anim.typeIndex]));
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/// <summary>
|
|
142
|
+
///
|
|
143
|
+
/// </summary>
|
|
144
|
+
protected virtual void DisplayPhraseAnimationEditor()
|
|
145
|
+
{
|
|
146
|
+
if (anim.animationType != null)
|
|
147
|
+
ClassEditorFactory.DrawEditorFor(anim.animationType);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/// <summary>
|
|
151
|
+
///
|
|
152
|
+
/// </summary>
|
|
153
|
+
protected virtual void DisplaySpawnAnimationButton()
|
|
154
|
+
{
|
|
155
|
+
if (anim.animationType == null && GUILayout.Button("Spawn Animation"))
|
|
156
|
+
anim.SetType((IPhraseAnimationType)Activator.CreateInstance(_types[anim.typeIndex]));
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/// <summary>
|
|
160
|
+
///
|
|
161
|
+
/// </summary>
|
|
162
|
+
protected virtual void DisplayRemoveAnimationButton()
|
|
163
|
+
{
|
|
164
|
+
if (GUILayout.Button("Remove Animation") &&
|
|
165
|
+
EditorUtility.DisplayDialog("Remove Animation", "Are you sure you want to Delete this Animation?",
|
|
166
|
+
"Yes", "No"))
|
|
167
|
+
target.animations.Remove(anim);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/// <summary>
|
|
171
|
+
///
|
|
172
|
+
/// </summary>
|
|
173
|
+
protected virtual void DisplayAddAnimationButton()
|
|
174
|
+
{
|
|
175
|
+
if (GUILayout.Button("Add Animation"))
|
|
176
|
+
target.animations.Add(new AnimData());
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
180
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: d8b7235b29ad7334f840a2aeda774c05
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: d8b7235b29ad7334f840a2aeda774c05
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
namespace DREditor.PhraseAnimations.Editor
|
|
4
|
-
{
|
|
5
|
-
/// <summary>
|
|
6
|
-
///
|
|
7
|
-
/// </summary>
|
|
8
|
-
/// <typeparam name="T"></typeparam>
|
|
9
|
-
public abstract class PhraseAnimationTypeEditor<T> : PhraseTypeEditor where T : class
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
protected T typeTarget;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
protected override void OnInspectorGUI()
|
|
18
|
-
{
|
|
19
|
-
typeTarget = baseTarget as T;
|
|
20
|
-
|
|
21
|
-
base.OnInspectorGUI();
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
namespace DREditor.PhraseAnimations.Editor
|
|
4
|
+
{
|
|
5
|
+
/// <summary>
|
|
6
|
+
///
|
|
7
|
+
/// </summary>
|
|
8
|
+
/// <typeparam name="T"></typeparam>
|
|
9
|
+
public abstract class PhraseAnimationTypeEditor<T> : PhraseTypeEditor where T : class
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
protected T typeTarget;
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
protected override void OnInspectorGUI()
|
|
18
|
+
{
|
|
19
|
+
typeTarget = baseTarget as T;
|
|
20
|
+
|
|
21
|
+
base.OnInspectorGUI();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
25
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: a0cd9d7d83af7e244ba0cbee6651e021
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: a0cd9d7d83af7e244ba0cbee6651e021
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
using UnityEditor;
|
|
4
|
-
|
|
5
|
-
namespace DREditor.PhraseAnimations.Editor
|
|
6
|
-
{
|
|
7
|
-
/// <summary>
|
|
8
|
-
///
|
|
9
|
-
/// </summary>
|
|
10
|
-
[InitializeOnLoad]
|
|
11
|
-
public class PhraseAnimationTypeList : TypeListBase<IPhraseAnimationType>
|
|
12
|
-
{
|
|
13
|
-
static PhraseAnimationTypeList()
|
|
14
|
-
{
|
|
15
|
-
if (!SessionState.GetBool("PhraseAnimationTypeInitDone", false))
|
|
16
|
-
{
|
|
17
|
-
UpdateList();
|
|
18
|
-
|
|
19
|
-
SessionState.SetBool("PhraseAnimationTypeInitDone", true);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
using UnityEditor;
|
|
4
|
+
|
|
5
|
+
namespace DREditor.PhraseAnimations.Editor
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
///
|
|
9
|
+
/// </summary>
|
|
10
|
+
[InitializeOnLoad]
|
|
11
|
+
public class PhraseAnimationTypeList : TypeListBase<IPhraseAnimationType>
|
|
12
|
+
{
|
|
13
|
+
static PhraseAnimationTypeList()
|
|
14
|
+
{
|
|
15
|
+
if (!SessionState.GetBool("PhraseAnimationTypeInitDone", false))
|
|
16
|
+
{
|
|
17
|
+
UpdateList();
|
|
18
|
+
|
|
19
|
+
SessionState.SetBool("PhraseAnimationTypeInitDone", true);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
24
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: e35746afdc91169478b58d7f23eeb98f
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: e35746afdc91169478b58d7f23eeb98f
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
using DREditor.Editor.Utility;
|
|
4
|
-
using System;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.PhraseAnimations.Editor
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[CustomClassEditor(typeof(PhraseFadeType))]
|
|
12
|
-
public class PhraseFadeTypeEditor : CompactPhraseTypeEditor<PhraseFadeType, float>
|
|
13
|
-
{
|
|
14
|
-
public override string TypeName => "Fade";
|
|
15
|
-
|
|
16
|
-
public override Func<string, float, int, int, float> FieldFunc => HandyFields.FloatField;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
using DREditor.Editor.Utility;
|
|
4
|
+
using System;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.PhraseAnimations.Editor
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[CustomClassEditor(typeof(PhraseFadeType))]
|
|
12
|
+
public class PhraseFadeTypeEditor : CompactPhraseTypeEditor<PhraseFadeType, float>
|
|
13
|
+
{
|
|
14
|
+
public override string TypeName => "Fade";
|
|
15
|
+
|
|
16
|
+
public override Func<string, float, int, int, float> FieldFunc => HandyFields.FloatField;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
19
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 31b47eee6b502fc4aa5a70ba64060fa8
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 31b47eee6b502fc4aa5a70ba64060fa8
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
using DREditor.Editor.Utility;
|
|
4
|
-
using System;
|
|
5
|
-
using UnityEngine;
|
|
6
|
-
|
|
7
|
-
namespace DREditor.PhraseAnimations.Editor
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
///
|
|
11
|
-
/// </summary>
|
|
12
|
-
[CustomClassEditor(typeof(PhraseRotationType))]
|
|
13
|
-
public class PhraseRotationTypeEditor : CompactPhraseTypeEditor<PhraseRotationType, Vector4>
|
|
14
|
-
{
|
|
15
|
-
public override string TypeName => "Rotation";
|
|
16
|
-
|
|
17
|
-
public override Func<string, Vector4, int, int, Vector4> FieldFunc => HandyFields.Vector4Field;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
using DREditor.Editor.Utility;
|
|
4
|
+
using System;
|
|
5
|
+
using UnityEngine;
|
|
6
|
+
|
|
7
|
+
namespace DREditor.PhraseAnimations.Editor
|
|
8
|
+
{
|
|
9
|
+
/// <summary>
|
|
10
|
+
///
|
|
11
|
+
/// </summary>
|
|
12
|
+
[CustomClassEditor(typeof(PhraseRotationType))]
|
|
13
|
+
public class PhraseRotationTypeEditor : CompactPhraseTypeEditor<PhraseRotationType, Vector4>
|
|
14
|
+
{
|
|
15
|
+
public override string TypeName => "Rotation";
|
|
16
|
+
|
|
17
|
+
public override Func<string, Vector4, int, int, Vector4> FieldFunc => HandyFields.Vector4Field;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
20
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: ab789603dfdc5604e9078144a90d2a8e
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: ab789603dfdc5604e9078144a90d2a8e
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|