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.
Files changed (44) hide show
  1. package/.attestation.p7m +0 -0
  2. package/AnimData.cs +41 -41
  3. package/AnimData.cs.meta +11 -11
  4. package/DREditor.PhraseAnimations.asmdef +19 -19
  5. package/DREditor.PhraseAnimations.asmdef.meta +7 -7
  6. package/Editor/CompactPhraseTypeEditor.cs +96 -96
  7. package/Editor/CompactPhraseTypeEditor.cs.meta +11 -11
  8. package/Editor/PhraseAnimationEditor.cs +179 -179
  9. package/Editor/PhraseAnimationEditor.cs.meta +11 -11
  10. package/Editor/PhraseAnimationTypeEditor.cs +24 -24
  11. package/Editor/PhraseAnimationTypeEditor.cs.meta +11 -11
  12. package/Editor/PhraseAnimationTypeList.cs +23 -23
  13. package/Editor/PhraseAnimationTypeList.cs.meta +11 -11
  14. package/Editor/PhraseFadeTypeEditor.cs +18 -18
  15. package/Editor/PhraseFadeTypeEditor.cs.meta +11 -11
  16. package/Editor/PhraseRotationTypeEditor.cs +19 -19
  17. package/Editor/PhraseRotationTypeEditor.cs.meta +11 -11
  18. package/Editor/PhraseScaleTypeEditor.cs +19 -19
  19. package/Editor/PhraseScaleTypeEditor.cs.meta +11 -11
  20. package/Editor/PhraseTransformTypeEditor.cs +18 -18
  21. package/Editor/PhraseTransformTypeEditor.cs.meta +11 -11
  22. package/Editor/PhraseTypeEditor.cs +277 -277
  23. package/Editor/PhraseTypeEditor.cs.meta +11 -11
  24. package/Editor.meta +8 -8
  25. package/IPhraseAnimationType.cs +16 -16
  26. package/IPhraseAnimationType.cs.meta +11 -11
  27. package/PhraseAnimation.cs +73 -73
  28. package/PhraseAnimation.cs.meta +11 -11
  29. package/PhraseAnimationCompact.cs +44 -44
  30. package/PhraseAnimationCompact.cs.meta +11 -11
  31. package/PhraseAnimationHandler.cs +135 -135
  32. package/PhraseAnimationHandler.cs.meta +11 -11
  33. package/PhraseAnimationTypeBase.cs +53 -53
  34. package/PhraseAnimationTypeBase.cs.meta +11 -11
  35. package/PhraseFadeType.cs +19 -19
  36. package/PhraseFadeType.cs.meta +11 -11
  37. package/PhraseRotationType.cs +27 -27
  38. package/PhraseRotationType.cs.meta +11 -11
  39. package/PhraseScaleType.cs +25 -25
  40. package/PhraseScaleType.cs.meta +11 -11
  41. package/PhraseTransformType.cs +25 -25
  42. package/PhraseTransformType.cs.meta +11 -11
  43. package/package.json +42 -37
  44. package/package.json.meta +7 -7
@@ -1,54 +1,54 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using System.Collections.Generic;
4
- using UnityEngine;
5
-
6
- namespace DREditor.PhraseAnimations
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- [Serializable]
12
- public abstract class PhraseAnimationTypeBase : IPhraseAnimationType
13
- {
14
- /// <summary>
15
- ///
16
- /// </summary>
17
- [SerializeField] public float startTime;
18
-
19
- /// <summary>
20
- ///
21
- /// </summary>
22
- [SerializeField] public float duration;
23
-
24
-
25
- /// <summary>
26
- ///
27
- /// </summary>
28
- public abstract int CurveCount { get; }
29
-
30
- /// <summary>
31
- ///
32
- /// </summary>
33
- public List<AnimationCurve> animationCurves = new();
34
-
35
-
36
- /// <summary>
37
- ///
38
- /// </summary>
39
- /// <param name="startTime"></param>
40
- public virtual void SetStartTime(float startTime) => this.startTime = startTime;
41
-
42
- /// <summary>
43
- ///
44
- /// </summary>
45
- /// <param name="duration"></param>
46
- public virtual void SetDuration(float duration) => this.duration = duration;
47
-
48
- /// <summary>
49
- ///
50
- /// </summary>
51
- /// <param name="clip"></param>
52
- public abstract void Initialize(AnimationClip clip);
53
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using System.Collections.Generic;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.PhraseAnimations
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ [Serializable]
12
+ public abstract class PhraseAnimationTypeBase : IPhraseAnimationType
13
+ {
14
+ /// <summary>
15
+ ///
16
+ /// </summary>
17
+ [SerializeField] public float startTime;
18
+
19
+ /// <summary>
20
+ ///
21
+ /// </summary>
22
+ [SerializeField] public float duration;
23
+
24
+
25
+ /// <summary>
26
+ ///
27
+ /// </summary>
28
+ public abstract int CurveCount { get; }
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ public List<AnimationCurve> animationCurves = new();
34
+
35
+
36
+ /// <summary>
37
+ ///
38
+ /// </summary>
39
+ /// <param name="startTime"></param>
40
+ public virtual void SetStartTime(float startTime) => this.startTime = startTime;
41
+
42
+ /// <summary>
43
+ ///
44
+ /// </summary>
45
+ /// <param name="duration"></param>
46
+ public virtual void SetDuration(float duration) => this.duration = duration;
47
+
48
+ /// <summary>
49
+ ///
50
+ /// </summary>
51
+ /// <param name="clip"></param>
52
+ public abstract void Initialize(AnimationClip clip);
53
+ }
54
54
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: b30ce01711e5da1448514e01a03deb03
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: b30ce01711e5da1448514e01a03deb03
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/PhraseFadeType.cs CHANGED
@@ -1,20 +1,20 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using UnityEngine;
4
-
5
- namespace DREditor.PhraseAnimations
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [Serializable]
11
- public class PhraseFadeType : PhraseAnimationCompact<float>
12
- {
13
- public override int CurveCount => 1;
14
-
15
-
16
- /// <inheritdoc/>
17
- public override void Initialize(AnimationClip clip)
18
- => clip.SetCurve("", typeof(TMPro.TMP_Text), "m_fontColor.a", animationCurves[0]);
19
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.PhraseAnimations
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [Serializable]
11
+ public class PhraseFadeType : PhraseAnimationCompact<float>
12
+ {
13
+ public override int CurveCount => 1;
14
+
15
+
16
+ /// <inheritdoc/>
17
+ public override void Initialize(AnimationClip clip)
18
+ => clip.SetCurve("", typeof(TMPro.TMP_Text), "m_fontColor.a", animationCurves[0]);
19
+ }
20
20
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 773d0840650cc7d4cacc822dc474824f
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: 773d0840650cc7d4cacc822dc474824f
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,28 +1,28 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using UnityEngine;
4
-
5
- namespace DREditor.PhraseAnimations
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [Serializable]
11
- public class PhraseRotationType : PhraseAnimationCompact<Vector4>
12
- {
13
- public override int CurveCount => 4;
14
-
15
-
16
- /// <inheritdoc/>
17
- public override void Initialize(AnimationClip clip)
18
- {
19
- clip.SetCurve("", typeof(Transform), "localEulerAngles.x", animationCurves[0]);
20
-
21
- clip.SetCurve("", typeof(Transform), "localEulerAngles.y", animationCurves[1]);
22
-
23
- clip.SetCurve("", typeof(Transform), "localEulerAngles.z", animationCurves[2]);
24
-
25
- clip.SetCurve("", typeof(Transform), "rotation.w", animationCurves[3]);
26
- }
27
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.PhraseAnimations
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [Serializable]
11
+ public class PhraseRotationType : PhraseAnimationCompact<Vector4>
12
+ {
13
+ public override int CurveCount => 4;
14
+
15
+
16
+ /// <inheritdoc/>
17
+ public override void Initialize(AnimationClip clip)
18
+ {
19
+ clip.SetCurve("", typeof(Transform), "localEulerAngles.x", animationCurves[0]);
20
+
21
+ clip.SetCurve("", typeof(Transform), "localEulerAngles.y", animationCurves[1]);
22
+
23
+ clip.SetCurve("", typeof(Transform), "localEulerAngles.z", animationCurves[2]);
24
+
25
+ clip.SetCurve("", typeof(Transform), "rotation.w", animationCurves[3]);
26
+ }
27
+ }
28
28
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 8767cfca8bbbcbb4197020e0bab24e47
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: 8767cfca8bbbcbb4197020e0bab24e47
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,26 +1,26 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using UnityEngine;
4
-
5
- namespace DREditor.PhraseAnimations
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [Serializable]
11
- public class PhraseScaleType : PhraseAnimationCompact<Vector3>
12
- {
13
- public override int CurveCount => 3;
14
-
15
-
16
- /// <inheritdoc/>
17
- public override void Initialize(AnimationClip clip)
18
- {
19
- clip.SetCurve("", typeof(Transform), "localScale.x", animationCurves[0]);
20
-
21
- clip.SetCurve("", typeof(Transform), "localScale.y", animationCurves[1]);
22
-
23
- clip.SetCurve("", typeof(Transform), "localScale.z", animationCurves[2]);
24
- }
25
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.PhraseAnimations
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [Serializable]
11
+ public class PhraseScaleType : PhraseAnimationCompact<Vector3>
12
+ {
13
+ public override int CurveCount => 3;
14
+
15
+
16
+ /// <inheritdoc/>
17
+ public override void Initialize(AnimationClip clip)
18
+ {
19
+ clip.SetCurve("", typeof(Transform), "localScale.x", animationCurves[0]);
20
+
21
+ clip.SetCurve("", typeof(Transform), "localScale.y", animationCurves[1]);
22
+
23
+ clip.SetCurve("", typeof(Transform), "localScale.z", animationCurves[2]);
24
+ }
25
+ }
26
26
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: b55d3e013b36eb343b791bee7c1ba096
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: b55d3e013b36eb343b791bee7c1ba096
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,26 +1,26 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using System;
3
- using UnityEngine;
4
-
5
- namespace DREditor.PhraseAnimations
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- [Serializable]
11
- public class PhraseTransformType : PhraseAnimationCompact<Vector3>
12
- {
13
- public override int CurveCount => 3;
14
-
15
-
16
- /// <inheritdoc/>
17
- public override void Initialize(AnimationClip clip)
18
- {
19
- clip.SetCurve("", typeof(Transform), "localPosition.x", animationCurves[0]);
20
-
21
- clip.SetCurve("", typeof(Transform), "localPosition.y", animationCurves[1]);
22
-
23
- clip.SetCurve("", typeof(Transform), "localPosition.z", animationCurves[2]);
24
- }
25
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using System;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.PhraseAnimations
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ [Serializable]
11
+ public class PhraseTransformType : PhraseAnimationCompact<Vector3>
12
+ {
13
+ public override int CurveCount => 3;
14
+
15
+
16
+ /// <inheritdoc/>
17
+ public override void Initialize(AnimationClip clip)
18
+ {
19
+ clip.SetCurve("", typeof(Transform), "localPosition.x", animationCurves[0]);
20
+
21
+ clip.SetCurve("", typeof(Transform), "localPosition.y", animationCurves[1]);
22
+
23
+ clip.SetCurve("", typeof(Transform), "localPosition.z", animationCurves[2]);
24
+ }
25
+ }
26
26
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 78fe7339a377df04eb799419fc081208
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: 78fe7339a377df04eb799419fc081208
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
package/package.json CHANGED
@@ -1,37 +1,42 @@
1
- {
2
- "name": "net.dreditor.phraseanimations",
3
- "version": "0.1.6",
4
- "displayName": "DREditor Phrase Animations",
5
- "description": "The beta for DREditor. A tool to create death game style projects without having to code.",
6
- "unity": "6000.4",
7
- "dependencies": {
8
- "net.dreditor.core": "0.1.6",
9
- "com.unity.ugui": "2.0.0",
10
- "net.dreditor.minigames": "0.1.6",
11
- "net.dreditor.minigames.debates": "0.1.6"
12
- },
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "author": {
17
- "name": "Benjamin \"Sweden\" Jillson",
18
- "email": "dreditortool@gmail.com",
19
- "url": "https://dreditor.net"
20
- },
21
- "keywords": [
22
- "editor",
23
- "tool",
24
- "dreditor"
25
- ],
26
- "samples": [
27
- {
28
- "displayName": "Samples",
29
- "description": "",
30
- "path": "Samples~"
31
- }
32
- ],
33
- "documentationUrl": "https://dreditor.net",
34
- "license": "Apache-2.0",
35
- "licensesUrl": "https://dreditor.net/docs/LICENSE.html",
36
- "changelogUrl": "https://dreditor.net/docs/CHANGELOG.html"
37
- }
1
+ {
2
+ "name": "net.dreditor.phraseanimations",
3
+ "version": "0.1.7",
4
+ "displayName": "DREditor Phrase Animations",
5
+ "description": "The beta for DREditor. A tool to create death game style projects without having to code.",
6
+ "unity": "6000.4",
7
+ "dependencies": {
8
+ "net.dreditor.core": "0.1.7",
9
+ "com.unity.ugui": "2.0.0",
10
+ "net.dreditor.minigames": "0.1.7",
11
+ "net.dreditor.minigames.debates": "0.1.7"
12
+ },
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "author": {
17
+ "name": "Benjamin \"Sweden\" Jillson",
18
+ "email": "dreditortool@gmail.com",
19
+ "url": "https://dreditor.net"
20
+ },
21
+ "keywords": [
22
+ "editor",
23
+ "tool",
24
+ "dreditor"
25
+ ],
26
+ "samples": [
27
+ {
28
+ "displayName": "Samples",
29
+ "description": "",
30
+ "path": "Samples~"
31
+ }
32
+ ],
33
+ "documentationUrl": "https://dreditor.net",
34
+ "license": "Apache-2.0",
35
+ "licensesUrl": "https://dreditor.net/docs/LICENSE.html",
36
+ "changelogUrl": "https://dreditor.net/docs/CHANGELOG.html",
37
+ "repository": {
38
+ "url": "https://github.com/CertifiedSharp/DREditor",
39
+ "type": "git",
40
+ "revision": "14ca252fbb33eb6f53557ecaed1c10902877698f"
41
+ }
42
+ }
package/package.json.meta CHANGED
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 29284081d83cbb14aacda4172d06570d
3
- TextScriptImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 29284081d83cbb14aacda4172d06570d
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: