net.dreditor.flairs 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/DREditor.Flairs.asmdef +18 -18
- package/DREditor.Flairs.asmdef.meta +7 -7
- package/DestroyFlairHandler.cs +89 -89
- package/DestroyFlairHandler.cs.meta +1 -1
- package/DestroyFlairOnDirectorComplete.cs +73 -73
- package/DestroyFlairOnDirectorComplete.cs.meta +11 -11
- package/DestroyFlairOnNextLine.cs +77 -77
- package/DestroyFlairOnNextLine.cs.meta +1 -1
- package/Editor/AllCharactersOption.cs +42 -42
- package/Editor/AllCharactersOption.cs.meta +1 -1
- package/Editor/AllFlairsOneCharacterOption.cs +46 -46
- package/Editor/AllFlairsOneCharacterOption.cs.meta +1 -1
- package/Editor/AllSpritesOption.cs +53 -53
- package/Editor/AllSpritesOption.cs.meta +1 -1
- package/Editor/DREditor.Flairs.Editor.asmdef +17 -17
- package/Editor/DREditor.Flairs.Editor.asmdef.meta +7 -7
- package/Editor/FlairEditorTools.cs +86 -86
- package/Editor/FlairEditorTools.cs.meta +1 -1
- package/Editor/GenerateFlairDebugDialogue.cs +61 -61
- package/Editor/GenerateFlairDebugDialogue.cs.meta +1 -1
- package/Editor/GenerateFlairDialogueOptionBase.cs +111 -111
- package/Editor/GenerateFlairDialogueOptionBase.cs.meta +1 -1
- package/Editor/IGenerateFlairDialogueSetting.cs +18 -18
- package/Editor/IGenerateFlairDialogueSetting.cs.meta +1 -1
- package/Editor.meta +8 -8
- package/EnableFlairCanvas.cs +77 -77
- package/EnableFlairCanvas.cs.meta +1 -1
- package/FadeFlairDestroyer.cs +58 -58
- package/FadeFlairDestroyer.cs.meta +1 -1
- package/Flair.cs +31 -31
- package/Flair.cs.meta +1 -1
- package/FlairDestroyer.cs +26 -26
- package/FlairDestroyer.cs.meta +1 -1
- package/FlairEvent.cs +45 -45
- package/FlairEvent.cs.meta +1 -1
- package/FlairEventHandler.cs +33 -33
- package/FlairEventHandler.cs.meta +1 -1
- package/FlairOffset.cs +47 -47
- package/FlairOffset.cs.meta +1 -1
- package/FlairSpawner.cs +28 -28
- package/FlairSpawner.cs.meta +1 -1
- package/FlairSpawnerBase.cs +16 -16
- package/FlairSpawnerBase.cs.meta +1 -1
- package/FlairStrategy.cs +48 -48
- package/FlairStrategy.cs.meta +1 -1
- package/FlairStrategyBase.cs +57 -57
- package/FlairStrategyBase.cs.meta +1 -1
- package/Flair_Question.controller +72 -72
- package/Flair_Question.controller.meta +8 -8
- package/Flair_QuestionAnim.anim +693 -693
- package/Flair_QuestionAnim.anim.meta +8 -8
- package/Flair_QuestionTimeline.playable +2198 -2198
- package/Flair_QuestionTimeline.playable.meta +8 -8
- package/IFlair.cs +16 -16
- package/IFlair.cs.meta +1 -1
- package/IFlairDestroyable.cs +15 -15
- package/IFlairDestroyable.cs.meta +1 -1
- package/IFlairEvent.cs +29 -29
- package/IFlairEvent.cs.meta +1 -1
- package/IFlairSetting.cs +16 -16
- package/IFlairSetting.cs.meta +1 -1
- package/IFlairSpawnStep.cs +17 -17
- package/IFlairSpawnStep.cs.meta +1 -1
- package/IFlairStep.cs +17 -17
- package/IFlairStep.cs.meta +1 -1
- package/LayerFlair.cs +38 -38
- package/LayerFlair.cs.meta +1 -1
- package/ProtagFlairStrategy.cs +68 -68
- package/ProtagFlairStrategy.cs.meta +1 -1
- package/{Samples → Samples~}/Flair.prefab +145 -145
- package/{Samples → Samples~}/Flair.prefab.meta +7 -7
- package/{Samples → Samples~}/Flair_Event_Handler.prefab +238 -238
- package/{Samples → Samples~}/Flair_Event_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/Flair_Question.asset +15 -15
- package/{Samples → Samples~}/Flair_Question.asset.meta +8 -8
- package/{Samples → Samples~}/Flair_Question.prefab +412 -412
- package/{Samples → Samples~}/Flair_Question.prefab.meta +7 -7
- package/{Samples → Samples~}/Flair_Strategy.prefab +64 -64
- package/{Samples → Samples~}/Flair_Strategy.prefab.meta +7 -7
- package/{Samples → Samples~}/Protag_Flair_Strategy.prefab +186 -186
- package/{Samples → Samples~}/Protag_Flair_Strategy.prefab.meta +7 -7
- package/SpawnFlairOnHead.cs +36 -36
- package/SpawnFlairOnHead.cs.meta +1 -1
- package/SpawnFlairOnParent.cs +24 -24
- package/SpawnFlairOnParent.cs.meta +1 -1
- package/SpawnFlairStepBase.cs +44 -44
- package/SpawnFlairStepBase.cs.meta +1 -1
- package/SpawnFlairToParent.cs +38 -38
- package/SpawnFlairToParent.cs.meta +1 -1
- package/package.json +41 -36
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
package/SpawnFlairOnParent.cs
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using System;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
|
|
5
|
-
namespace DREditor.Flairs
|
|
6
|
-
{
|
|
7
|
-
/// <summary>
|
|
8
|
-
///
|
|
9
|
-
/// </summary>
|
|
10
|
-
[Serializable]
|
|
11
|
-
public class SpawnFlairOnParent : SpawnFlairToParent
|
|
12
|
-
{
|
|
13
|
-
/// <summary>
|
|
14
|
-
///
|
|
15
|
-
/// </summary>
|
|
16
|
-
[Header("")]
|
|
17
|
-
[Divider]
|
|
18
|
-
[Tooltip("")]
|
|
19
|
-
[SerializeField] protected RectTransform flairSpawnPoint = null;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/// <inheritdoc/>
|
|
23
|
-
protected override Transform GetFlairParent() => flairSpawnPoint;
|
|
24
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using System;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace DREditor.Flairs
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
///
|
|
9
|
+
/// </summary>
|
|
10
|
+
[Serializable]
|
|
11
|
+
public class SpawnFlairOnParent : SpawnFlairToParent
|
|
12
|
+
{
|
|
13
|
+
/// <summary>
|
|
14
|
+
///
|
|
15
|
+
/// </summary>
|
|
16
|
+
[Header("")]
|
|
17
|
+
[Divider]
|
|
18
|
+
[Tooltip("")]
|
|
19
|
+
[SerializeField] protected RectTransform flairSpawnPoint = null;
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/// <inheritdoc/>
|
|
23
|
+
protected override Transform GetFlairParent() => flairSpawnPoint;
|
|
24
|
+
}
|
|
25
25
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 1338aec7e0519a34daf379c44d3af7ce
|
package/SpawnFlairStepBase.cs
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using System;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
|
|
5
|
-
namespace DREditor.Flairs
|
|
6
|
-
{
|
|
7
|
-
/// <summary>
|
|
8
|
-
///
|
|
9
|
-
/// </summary>
|
|
10
|
-
[Serializable]
|
|
11
|
-
public abstract class SpawnFlairStepBase : IFlairSpawnStep
|
|
12
|
-
{
|
|
13
|
-
/// <inheritdoc/>
|
|
14
|
-
public virtual GameObject SpawnFlair(IFlairEvent eventInstance)
|
|
15
|
-
{
|
|
16
|
-
GameObject prefabToSpawn = GetPrefabToSpawn(eventInstance);
|
|
17
|
-
|
|
18
|
-
if (prefabToSpawn == null)
|
|
19
|
-
FailedToSpawnFlair("Either the event or flair inside the event has not been assigned!");
|
|
20
|
-
|
|
21
|
-
return prefabToSpawn != null ? Spawn(prefabToSpawn) : null;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/// <summary>
|
|
25
|
-
///
|
|
26
|
-
/// </summary>
|
|
27
|
-
/// <param name="eventInstance"></param>
|
|
28
|
-
/// <returns></returns>
|
|
29
|
-
protected virtual GameObject GetPrefabToSpawn(IFlairEvent eventInstance) => eventInstance?.GetFlair()?.GetPrefab();
|
|
30
|
-
|
|
31
|
-
/// <summary>
|
|
32
|
-
///
|
|
33
|
-
/// </summary>
|
|
34
|
-
/// <param name="prefab"></param>
|
|
35
|
-
/// <returns></returns>
|
|
36
|
-
protected virtual GameObject Spawn(GameObject prefab) => MonoBehaviour.Instantiate(prefab);
|
|
37
|
-
|
|
38
|
-
/// <summary>
|
|
39
|
-
///
|
|
40
|
-
/// </summary>
|
|
41
|
-
/// <param name="reason"></param>
|
|
42
|
-
protected virtual void FailedToSpawnFlair(string reason) =>
|
|
43
|
-
UnityEngine.Debug.LogWarning("ALERT: Spawning Flair Failed, Reason: " + reason);
|
|
44
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using System;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace DREditor.Flairs
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
///
|
|
9
|
+
/// </summary>
|
|
10
|
+
[Serializable]
|
|
11
|
+
public abstract class SpawnFlairStepBase : IFlairSpawnStep
|
|
12
|
+
{
|
|
13
|
+
/// <inheritdoc/>
|
|
14
|
+
public virtual GameObject SpawnFlair(IFlairEvent eventInstance)
|
|
15
|
+
{
|
|
16
|
+
GameObject prefabToSpawn = GetPrefabToSpawn(eventInstance);
|
|
17
|
+
|
|
18
|
+
if (prefabToSpawn == null)
|
|
19
|
+
FailedToSpawnFlair("Either the event or flair inside the event has not been assigned!");
|
|
20
|
+
|
|
21
|
+
return prefabToSpawn != null ? Spawn(prefabToSpawn) : null;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/// <summary>
|
|
25
|
+
///
|
|
26
|
+
/// </summary>
|
|
27
|
+
/// <param name="eventInstance"></param>
|
|
28
|
+
/// <returns></returns>
|
|
29
|
+
protected virtual GameObject GetPrefabToSpawn(IFlairEvent eventInstance) => eventInstance?.GetFlair()?.GetPrefab();
|
|
30
|
+
|
|
31
|
+
/// <summary>
|
|
32
|
+
///
|
|
33
|
+
/// </summary>
|
|
34
|
+
/// <param name="prefab"></param>
|
|
35
|
+
/// <returns></returns>
|
|
36
|
+
protected virtual GameObject Spawn(GameObject prefab) => MonoBehaviour.Instantiate(prefab);
|
|
37
|
+
|
|
38
|
+
/// <summary>
|
|
39
|
+
///
|
|
40
|
+
/// </summary>
|
|
41
|
+
/// <param name="reason"></param>
|
|
42
|
+
protected virtual void FailedToSpawnFlair(string reason) =>
|
|
43
|
+
UnityEngine.Debug.LogWarning("ALERT: Spawning Flair Failed, Reason: " + reason);
|
|
44
|
+
}
|
|
45
45
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 0ce5d4b3f4f7c6e40865ebf711a944cd
|
package/SpawnFlairToParent.cs
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
-
using System;
|
|
3
|
-
using UnityEngine;
|
|
4
|
-
|
|
5
|
-
namespace DREditor.Flairs
|
|
6
|
-
{
|
|
7
|
-
/// <summary>
|
|
8
|
-
///
|
|
9
|
-
/// </summary>
|
|
10
|
-
[Serializable]
|
|
11
|
-
public abstract class SpawnFlairToParent : SpawnFlairStepBase
|
|
12
|
-
{
|
|
13
|
-
/// <inheritdoc/>
|
|
14
|
-
protected override GameObject Spawn(GameObject prefab) =>
|
|
15
|
-
TryGetFlairParent(out Transform validParent) ? MonoBehaviour.Instantiate(prefab, validParent) : base.Spawn(prefab);
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
/// <summary>
|
|
19
|
-
///
|
|
20
|
-
/// </summary>
|
|
21
|
-
/// <param name="flairParent"></param>
|
|
22
|
-
/// <returns></returns>
|
|
23
|
-
private bool TryGetFlairParent(out Transform flairParent)
|
|
24
|
-
{
|
|
25
|
-
flairParent = GetFlairParent();
|
|
26
|
-
|
|
27
|
-
if (flairParent == null)
|
|
28
|
-
FailedToSpawnFlair($"The assigned flair parent was null!");
|
|
29
|
-
|
|
30
|
-
return flairParent;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/// <summary>
|
|
34
|
-
///
|
|
35
|
-
/// </summary>
|
|
36
|
-
/// <returns></returns>
|
|
37
|
-
protected abstract Transform GetFlairParent();
|
|
38
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Kill/Cure: Beautiful Vice
|
|
2
|
+
using System;
|
|
3
|
+
using UnityEngine;
|
|
4
|
+
|
|
5
|
+
namespace DREditor.Flairs
|
|
6
|
+
{
|
|
7
|
+
/// <summary>
|
|
8
|
+
///
|
|
9
|
+
/// </summary>
|
|
10
|
+
[Serializable]
|
|
11
|
+
public abstract class SpawnFlairToParent : SpawnFlairStepBase
|
|
12
|
+
{
|
|
13
|
+
/// <inheritdoc/>
|
|
14
|
+
protected override GameObject Spawn(GameObject prefab) =>
|
|
15
|
+
TryGetFlairParent(out Transform validParent) ? MonoBehaviour.Instantiate(prefab, validParent) : base.Spawn(prefab);
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
/// <summary>
|
|
19
|
+
///
|
|
20
|
+
/// </summary>
|
|
21
|
+
/// <param name="flairParent"></param>
|
|
22
|
+
/// <returns></returns>
|
|
23
|
+
private bool TryGetFlairParent(out Transform flairParent)
|
|
24
|
+
{
|
|
25
|
+
flairParent = GetFlairParent();
|
|
26
|
+
|
|
27
|
+
if (flairParent == null)
|
|
28
|
+
FailedToSpawnFlair($"The assigned flair parent was null!");
|
|
29
|
+
|
|
30
|
+
return flairParent;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/// <summary>
|
|
34
|
+
///
|
|
35
|
+
/// </summary>
|
|
36
|
+
/// <returns></returns>
|
|
37
|
+
protected abstract Transform GetFlairParent();
|
|
38
|
+
}
|
|
39
39
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: f9a24b554036d714fb5fbaa8d2212d05
|
package/package.json
CHANGED
|
@@ -1,36 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "net.dreditor.flairs",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"displayName": "DREditor Flairs",
|
|
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.
|
|
9
|
-
"net.dreditor.dialogueeventhandling": "0.1.
|
|
10
|
-
"com.unity.timeline": "1.8.12"
|
|
11
|
-
},
|
|
12
|
-
"publishConfig": {
|
|
13
|
-
"access": "public"
|
|
14
|
-
},
|
|
15
|
-
"author": {
|
|
16
|
-
"name": "Benjamin \"Sweden\" Jillson",
|
|
17
|
-
"email": "dreditortool@gmail.com",
|
|
18
|
-
"url": "https://dreditor.net"
|
|
19
|
-
},
|
|
20
|
-
"keywords": [
|
|
21
|
-
"editor",
|
|
22
|
-
"tool",
|
|
23
|
-
"dreditor"
|
|
24
|
-
],
|
|
25
|
-
"samples": [
|
|
26
|
-
{
|
|
27
|
-
"displayName": "Samples",
|
|
28
|
-
"description": "",
|
|
29
|
-
"path": "Samples~"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"documentationUrl": "https://dreditor.net",
|
|
33
|
-
"license": "Apache-2.0",
|
|
34
|
-
"licensesUrl": "https://dreditor.net/docs/LICENSE.html",
|
|
35
|
-
"changelogUrl": "https://dreditor.net/docs/CHANGELOG.html"
|
|
36
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "net.dreditor.flairs",
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"displayName": "DREditor Flairs",
|
|
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
|
+
"net.dreditor.dialogueeventhandling": "0.1.7",
|
|
10
|
+
"com.unity.timeline": "1.8.12"
|
|
11
|
+
},
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public"
|
|
14
|
+
},
|
|
15
|
+
"author": {
|
|
16
|
+
"name": "Benjamin \"Sweden\" Jillson",
|
|
17
|
+
"email": "dreditortool@gmail.com",
|
|
18
|
+
"url": "https://dreditor.net"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"editor",
|
|
22
|
+
"tool",
|
|
23
|
+
"dreditor"
|
|
24
|
+
],
|
|
25
|
+
"samples": [
|
|
26
|
+
{
|
|
27
|
+
"displayName": "Samples",
|
|
28
|
+
"description": "",
|
|
29
|
+
"path": "Samples~"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"documentationUrl": "https://dreditor.net",
|
|
33
|
+
"license": "Apache-2.0",
|
|
34
|
+
"licensesUrl": "https://dreditor.net/docs/LICENSE.html",
|
|
35
|
+
"changelogUrl": "https://dreditor.net/docs/CHANGELOG.html",
|
|
36
|
+
"repository": {
|
|
37
|
+
"url": "https://github.com/CertifiedSharp/DREditor",
|
|
38
|
+
"type": "git",
|
|
39
|
+
"revision": "14ca252fbb33eb6f53557ecaed1c10902877698f"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/package.json.meta
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 6c23ac9250cf02348bd99746352fe713
|
|
3
|
-
TextScriptImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 6c23ac9250cf02348bd99746352fe713
|
|
3
|
+
TextScriptImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|