net.dreditor.customevents 0.1.6 → 0.1.8
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/BoolCapsulate.cs +48 -48
- package/BoolCapsulate.cs.meta +11 -11
- package/CaptureFrameMain.cs +103 -103
- package/CaptureFrameMain.cs.meta +11 -11
- package/DREditor.CustomEvents.asmdef +17 -17
- package/DREditor.CustomEvents.asmdef.meta +7 -7
- package/DialogueEventObjectHandler.cs +65 -65
- package/DialogueEventObjectHandler.cs.meta +11 -11
- package/ForceProtagViewCustomEvent.cs +39 -39
- package/ForceProtagViewCustomEvent.cs.meta +11 -11
- package/GameObjectCapsulate.cs +32 -32
- package/GameObjectCapsulate.cs.meta +11 -11
- package/{Samples → Samples~}/Dialogue_Event_Object_Handler.prefab +46 -46
- package/{Samples → Samples~}/Dialogue_Event_Object_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/Force_Protag_View_Custom_Event.prefab +52 -52
- package/{Samples → Samples~}/Force_Protag_View_Custom_Event.prefab.meta +7 -7
- package/StringCapsulate.cs +47 -47
- package/StringCapsulate.cs.meta +1 -1
- package/package.json +40 -35
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
package/.attestation.p7m
ADDED
|
Binary file
|
package/BoolCapsulate.cs
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Dialogues.Events;
|
|
3
|
-
using System;
|
|
4
|
-
|
|
5
|
-
#if UNITY_EDITOR
|
|
6
|
-
using DREditor.Editor.Utility;
|
|
7
|
-
#endif
|
|
8
|
-
|
|
9
|
-
namespace DREditor.CustomEvents
|
|
10
|
-
{
|
|
11
|
-
/// <summary>
|
|
12
|
-
///
|
|
13
|
-
/// </summary>
|
|
14
|
-
[Serializable]
|
|
15
|
-
public class BoolCapsulate : IDataCapsulate
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
public bool value;
|
|
21
|
-
|
|
22
|
-
/// <summary>
|
|
23
|
-
///
|
|
24
|
-
/// </summary>
|
|
25
|
-
public string displayString;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
#if UNITY_EDITOR
|
|
29
|
-
/// <inheritdoc/>
|
|
30
|
-
public virtual void Display(object o = null)
|
|
31
|
-
{
|
|
32
|
-
if (o is string s)
|
|
33
|
-
{
|
|
34
|
-
displayString = s;
|
|
35
|
-
|
|
36
|
-
value = HandyFields.BoolField(value, s);
|
|
37
|
-
}
|
|
38
|
-
else if (!string.IsNullOrEmpty(displayString))
|
|
39
|
-
value = HandyFields.BoolField(value, displayString);
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
#else
|
|
43
|
-
public void Display(object o = null)
|
|
44
|
-
{
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
#endif
|
|
48
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Dialogues.Events;
|
|
3
|
+
using System;
|
|
4
|
+
|
|
5
|
+
#if UNITY_EDITOR
|
|
6
|
+
using DREditor.Editor.Utility;
|
|
7
|
+
#endif
|
|
8
|
+
|
|
9
|
+
namespace DREditor.CustomEvents
|
|
10
|
+
{
|
|
11
|
+
/// <summary>
|
|
12
|
+
///
|
|
13
|
+
/// </summary>
|
|
14
|
+
[Serializable]
|
|
15
|
+
public class BoolCapsulate : IDataCapsulate
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
public bool value;
|
|
21
|
+
|
|
22
|
+
/// <summary>
|
|
23
|
+
///
|
|
24
|
+
/// </summary>
|
|
25
|
+
public string displayString;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
#if UNITY_EDITOR
|
|
29
|
+
/// <inheritdoc/>
|
|
30
|
+
public virtual void Display(object o = null)
|
|
31
|
+
{
|
|
32
|
+
if (o is string s)
|
|
33
|
+
{
|
|
34
|
+
displayString = s;
|
|
35
|
+
|
|
36
|
+
value = HandyFields.BoolField(value, s);
|
|
37
|
+
}
|
|
38
|
+
else if (!string.IsNullOrEmpty(displayString))
|
|
39
|
+
value = HandyFields.BoolField(value, displayString);
|
|
40
|
+
|
|
41
|
+
}
|
|
42
|
+
#else
|
|
43
|
+
public void Display(object o = null)
|
|
44
|
+
{
|
|
45
|
+
|
|
46
|
+
}
|
|
47
|
+
#endif
|
|
48
|
+
}
|
|
49
49
|
}
|
package/BoolCapsulate.cs.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 06bde8827e1bb0f469f31f04e5c4b27b
|
|
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: 06bde8827e1bb0f469f31f04e5c4b27b
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/CaptureFrameMain.cs
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if DOTWEEN
|
|
3
|
-
using DG.Tweening;
|
|
4
|
-
#endif
|
|
5
|
-
using DREditor.DialogueEventHandling;
|
|
6
|
-
using DREditor.Dialogues.Events;
|
|
7
|
-
using DREditor.EventObjects;
|
|
8
|
-
using DREditor.Services;
|
|
9
|
-
using UnityEngine;
|
|
10
|
-
using UnityEngine.UI;
|
|
11
|
-
|
|
12
|
-
namespace DREditor.CustomEvents
|
|
13
|
-
{
|
|
14
|
-
/// <summary>
|
|
15
|
-
///
|
|
16
|
-
/// </summary>
|
|
17
|
-
[ClassHeader(nameof(DialogueEventHandler) + ", " + nameof(IToTitleScreen) +
|
|
18
|
-
"\n\n")]
|
|
19
|
-
public class CaptureFrameMain : DialogueEventHandler, IToTitleScreen
|
|
20
|
-
{
|
|
21
|
-
/// <summary>
|
|
22
|
-
///
|
|
23
|
-
/// </summary>
|
|
24
|
-
[Tooltip("")]
|
|
25
|
-
[SerializeField] protected RawImage captureImage = null;
|
|
26
|
-
|
|
27
|
-
/// <summary>
|
|
28
|
-
///
|
|
29
|
-
/// </summary>
|
|
30
|
-
[Tooltip("")]
|
|
31
|
-
[SerializeField] protected BoolWithEvent freezeUIVisible = null;
|
|
32
|
-
|
|
33
|
-
/// <summary>
|
|
34
|
-
///
|
|
35
|
-
/// </summary>
|
|
36
|
-
[Tooltip("")]
|
|
37
|
-
[SerializeField] protected string captureCameraEventString = "CaptureMainCamera";
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/// <summary>
|
|
41
|
-
///
|
|
42
|
-
/// </summary>
|
|
43
|
-
[Header("")]
|
|
44
|
-
[Divider]
|
|
45
|
-
[Tooltip("")]
|
|
46
|
-
[SerializeField] protected BoolWithEvent inInstant = null;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
/// <summary>
|
|
50
|
-
///
|
|
51
|
-
/// </summary>
|
|
52
|
-
/// <param name="o"></param>
|
|
53
|
-
protected override void OnDialogueEventTriggered(object o = null)
|
|
54
|
-
{
|
|
55
|
-
bool overriding = o != null && (bool)o;
|
|
56
|
-
|
|
57
|
-
bool inInstantMode = inInstant != null && inInstant.Value;
|
|
58
|
-
|
|
59
|
-
if (!overriding && (inInstantMode || freezeUIVisible.Value))
|
|
60
|
-
{
|
|
61
|
-
UnityEngine.Debug.Log($"REPORT: {nameof(CaptureFrameMain)}: NOTICE: Ignored Trying to Capture Main");
|
|
62
|
-
|
|
63
|
-
return;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
UnityEngine.Debug.Log($"REPORT: {nameof(CaptureFrameMain)}: Captured Main, Freeze Image on.");
|
|
67
|
-
|
|
68
|
-
DialogueEventSystem.TriggerEvent(captureCameraEventString, captureImage);
|
|
69
|
-
|
|
70
|
-
freezeUIVisible.SetValue(true);
|
|
71
|
-
|
|
72
|
-
SetCaptureImageToUsableState();
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/// <summary>
|
|
76
|
-
///
|
|
77
|
-
/// </summary>
|
|
78
|
-
protected virtual void SetCaptureImageToUsableState()
|
|
79
|
-
{
|
|
80
|
-
Vector2 v = captureImage.rectTransform.parent.GetComponent<RectTransform>().sizeDelta;
|
|
81
|
-
|
|
82
|
-
captureImage.rectTransform.sizeDelta = v;
|
|
83
|
-
|
|
84
|
-
captureImage.color = Color.white;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
/// <inheritdoc/>
|
|
89
|
-
public virtual void ToTitleScreen()
|
|
90
|
-
{
|
|
91
|
-
captureImage.texture = null;
|
|
92
|
-
#if DOTWEEN
|
|
93
|
-
captureImage.DOKill();
|
|
94
|
-
#endif
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
/// <summary>
|
|
99
|
-
///
|
|
100
|
-
/// </summary>
|
|
101
|
-
[ContextMenu("Set Default Event")]
|
|
102
|
-
public void SetDefaultEvent() => SetDefaultEventString("CaptureMain");
|
|
103
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if DOTWEEN
|
|
3
|
+
using DG.Tweening;
|
|
4
|
+
#endif
|
|
5
|
+
using DREditor.DialogueEventHandling;
|
|
6
|
+
using DREditor.Dialogues.Events;
|
|
7
|
+
using DREditor.EventObjects;
|
|
8
|
+
using DREditor.Services;
|
|
9
|
+
using UnityEngine;
|
|
10
|
+
using UnityEngine.UI;
|
|
11
|
+
|
|
12
|
+
namespace DREditor.CustomEvents
|
|
13
|
+
{
|
|
14
|
+
/// <summary>
|
|
15
|
+
///
|
|
16
|
+
/// </summary>
|
|
17
|
+
[ClassHeader(nameof(DialogueEventHandler) + ", " + nameof(IToTitleScreen) +
|
|
18
|
+
"\n\n")]
|
|
19
|
+
public class CaptureFrameMain : DialogueEventHandler, IToTitleScreen
|
|
20
|
+
{
|
|
21
|
+
/// <summary>
|
|
22
|
+
///
|
|
23
|
+
/// </summary>
|
|
24
|
+
[Tooltip("")]
|
|
25
|
+
[SerializeField] protected RawImage captureImage = null;
|
|
26
|
+
|
|
27
|
+
/// <summary>
|
|
28
|
+
///
|
|
29
|
+
/// </summary>
|
|
30
|
+
[Tooltip("")]
|
|
31
|
+
[SerializeField] protected BoolWithEvent freezeUIVisible = null;
|
|
32
|
+
|
|
33
|
+
/// <summary>
|
|
34
|
+
///
|
|
35
|
+
/// </summary>
|
|
36
|
+
[Tooltip("")]
|
|
37
|
+
[SerializeField] protected string captureCameraEventString = "CaptureMainCamera";
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/// <summary>
|
|
41
|
+
///
|
|
42
|
+
/// </summary>
|
|
43
|
+
[Header("")]
|
|
44
|
+
[Divider]
|
|
45
|
+
[Tooltip("")]
|
|
46
|
+
[SerializeField] protected BoolWithEvent inInstant = null;
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
/// <summary>
|
|
50
|
+
///
|
|
51
|
+
/// </summary>
|
|
52
|
+
/// <param name="o"></param>
|
|
53
|
+
protected override void OnDialogueEventTriggered(object o = null)
|
|
54
|
+
{
|
|
55
|
+
bool overriding = o != null && (bool)o;
|
|
56
|
+
|
|
57
|
+
bool inInstantMode = inInstant != null && inInstant.Value;
|
|
58
|
+
|
|
59
|
+
if (!overriding && (inInstantMode || freezeUIVisible.Value))
|
|
60
|
+
{
|
|
61
|
+
UnityEngine.Debug.Log($"REPORT: {nameof(CaptureFrameMain)}: NOTICE: Ignored Trying to Capture Main");
|
|
62
|
+
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
UnityEngine.Debug.Log($"REPORT: {nameof(CaptureFrameMain)}: Captured Main, Freeze Image on.");
|
|
67
|
+
|
|
68
|
+
DialogueEventSystem.TriggerEvent(captureCameraEventString, captureImage);
|
|
69
|
+
|
|
70
|
+
freezeUIVisible.SetValue(true);
|
|
71
|
+
|
|
72
|
+
SetCaptureImageToUsableState();
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/// <summary>
|
|
76
|
+
///
|
|
77
|
+
/// </summary>
|
|
78
|
+
protected virtual void SetCaptureImageToUsableState()
|
|
79
|
+
{
|
|
80
|
+
Vector2 v = captureImage.rectTransform.parent.GetComponent<RectTransform>().sizeDelta;
|
|
81
|
+
|
|
82
|
+
captureImage.rectTransform.sizeDelta = v;
|
|
83
|
+
|
|
84
|
+
captureImage.color = Color.white;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
/// <inheritdoc/>
|
|
89
|
+
public virtual void ToTitleScreen()
|
|
90
|
+
{
|
|
91
|
+
captureImage.texture = null;
|
|
92
|
+
#if DOTWEEN
|
|
93
|
+
captureImage.DOKill();
|
|
94
|
+
#endif
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
/// <summary>
|
|
99
|
+
///
|
|
100
|
+
/// </summary>
|
|
101
|
+
[ContextMenu("Set Default Event")]
|
|
102
|
+
public void SetDefaultEvent() => SetDefaultEventString("CaptureMain");
|
|
103
|
+
}
|
|
104
104
|
}
|
package/CaptureFrameMain.cs.meta
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 53d52a087ee8f294abb49dee353c10cb
|
|
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: 53d52a087ee8f294abb49dee353c10cb
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "DREditor.CustomEvents",
|
|
3
|
-
"rootNamespace": "",
|
|
4
|
-
"references": [
|
|
5
|
-
"DREditor",
|
|
6
|
-
"DREditor.Editor",
|
|
7
|
-
"DREditor.DialogueEventHandling"
|
|
8
|
-
],
|
|
9
|
-
"includePlatforms": [],
|
|
10
|
-
"excludePlatforms": [],
|
|
11
|
-
"allowUnsafeCode": false,
|
|
12
|
-
"overrideReferences": false,
|
|
13
|
-
"precompiledReferences": [],
|
|
14
|
-
"autoReferenced": true,
|
|
15
|
-
"defineConstraints": [],
|
|
16
|
-
"versionDefines": [],
|
|
17
|
-
"noEngineReferences": false
|
|
1
|
+
{
|
|
2
|
+
"name": "DREditor.CustomEvents",
|
|
3
|
+
"rootNamespace": "",
|
|
4
|
+
"references": [
|
|
5
|
+
"DREditor",
|
|
6
|
+
"DREditor.Editor",
|
|
7
|
+
"DREditor.DialogueEventHandling"
|
|
8
|
+
],
|
|
9
|
+
"includePlatforms": [],
|
|
10
|
+
"excludePlatforms": [],
|
|
11
|
+
"allowUnsafeCode": false,
|
|
12
|
+
"overrideReferences": false,
|
|
13
|
+
"precompiledReferences": [],
|
|
14
|
+
"autoReferenced": true,
|
|
15
|
+
"defineConstraints": [],
|
|
16
|
+
"versionDefines": [],
|
|
17
|
+
"noEngineReferences": false
|
|
18
18
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 41da339414d218449888ae9594cec855
|
|
3
|
-
AssemblyDefinitionImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 41da339414d218449888ae9594cec855
|
|
3
|
+
AssemblyDefinitionImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.DialogueEventHandling;
|
|
3
|
-
using DREditor.Dialogues.Events;
|
|
4
|
-
using UnityEngine;
|
|
5
|
-
|
|
6
|
-
namespace DREditor.CustomEvents
|
|
7
|
-
{
|
|
8
|
-
/// <summary>
|
|
9
|
-
///
|
|
10
|
-
/// </summary>
|
|
11
|
-
[ClassHeader(nameof(CustomDialogueEventHandler) +
|
|
12
|
-
"\n\n")]
|
|
13
|
-
[CustomDialogueEvent("")]
|
|
14
|
-
public class DialogueEventObjectHandler : CustomDialogueEventHandler
|
|
15
|
-
{
|
|
16
|
-
/// <inheritdoc/>
|
|
17
|
-
protected override void StartListeningToEvents()
|
|
18
|
-
{
|
|
19
|
-
DialogueEventSystem.StartListening("ObjectToPosition", MoveObject);
|
|
20
|
-
|
|
21
|
-
DialogueEventSystem.StartListening("SpawnObject", SpawnObject);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/// <inheritdoc/>
|
|
25
|
-
protected override void StopListeningToEvents()
|
|
26
|
-
{
|
|
27
|
-
DialogueEventSystem.StopListening("ObjectToPosition", MoveObject);
|
|
28
|
-
|
|
29
|
-
DialogueEventSystem.StopListening("SpawnObject", SpawnObject);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/// <summary>
|
|
33
|
-
///
|
|
34
|
-
/// </summary>
|
|
35
|
-
/// <param name="o"></param>
|
|
36
|
-
protected virtual void MoveObject(object o = null)
|
|
37
|
-
{
|
|
38
|
-
ObjectToPosition tuple = (ObjectToPosition)o;
|
|
39
|
-
|
|
40
|
-
GameObject gameObject = GameObject.Find(tuple.objectName);
|
|
41
|
-
|
|
42
|
-
if (gameObject != null)
|
|
43
|
-
{
|
|
44
|
-
if (tuple.localPos)
|
|
45
|
-
gameObject.transform.localPosition = tuple.position;
|
|
46
|
-
else
|
|
47
|
-
gameObject.transform.position = tuple.position;
|
|
48
|
-
|
|
49
|
-
if (tuple.useRotation)
|
|
50
|
-
gameObject.transform.eulerAngles = tuple.rotation;
|
|
51
|
-
}
|
|
52
|
-
else
|
|
53
|
-
UnityEngine.Debug.LogWarning($"ALERT: The game object named {tuple.objectName} could not be found!");
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/// <summary>
|
|
57
|
-
///
|
|
58
|
-
/// </summary>
|
|
59
|
-
/// <param name="o"></param>
|
|
60
|
-
protected virtual void SpawnObject(object o = null)
|
|
61
|
-
{
|
|
62
|
-
if (o is GameObjectCapsulate g)
|
|
63
|
-
Instantiate(g.value);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.DialogueEventHandling;
|
|
3
|
+
using DREditor.Dialogues.Events;
|
|
4
|
+
using UnityEngine;
|
|
5
|
+
|
|
6
|
+
namespace DREditor.CustomEvents
|
|
7
|
+
{
|
|
8
|
+
/// <summary>
|
|
9
|
+
///
|
|
10
|
+
/// </summary>
|
|
11
|
+
[ClassHeader(nameof(CustomDialogueEventHandler) +
|
|
12
|
+
"\n\n")]
|
|
13
|
+
[CustomDialogueEvent("")]
|
|
14
|
+
public class DialogueEventObjectHandler : CustomDialogueEventHandler
|
|
15
|
+
{
|
|
16
|
+
/// <inheritdoc/>
|
|
17
|
+
protected override void StartListeningToEvents()
|
|
18
|
+
{
|
|
19
|
+
DialogueEventSystem.StartListening("ObjectToPosition", MoveObject);
|
|
20
|
+
|
|
21
|
+
DialogueEventSystem.StartListening("SpawnObject", SpawnObject);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/// <inheritdoc/>
|
|
25
|
+
protected override void StopListeningToEvents()
|
|
26
|
+
{
|
|
27
|
+
DialogueEventSystem.StopListening("ObjectToPosition", MoveObject);
|
|
28
|
+
|
|
29
|
+
DialogueEventSystem.StopListening("SpawnObject", SpawnObject);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/// <summary>
|
|
33
|
+
///
|
|
34
|
+
/// </summary>
|
|
35
|
+
/// <param name="o"></param>
|
|
36
|
+
protected virtual void MoveObject(object o = null)
|
|
37
|
+
{
|
|
38
|
+
ObjectToPosition tuple = (ObjectToPosition)o;
|
|
39
|
+
|
|
40
|
+
GameObject gameObject = GameObject.Find(tuple.objectName);
|
|
41
|
+
|
|
42
|
+
if (gameObject != null)
|
|
43
|
+
{
|
|
44
|
+
if (tuple.localPos)
|
|
45
|
+
gameObject.transform.localPosition = tuple.position;
|
|
46
|
+
else
|
|
47
|
+
gameObject.transform.position = tuple.position;
|
|
48
|
+
|
|
49
|
+
if (tuple.useRotation)
|
|
50
|
+
gameObject.transform.eulerAngles = tuple.rotation;
|
|
51
|
+
}
|
|
52
|
+
else
|
|
53
|
+
UnityEngine.Debug.LogWarning($"ALERT: The game object named {tuple.objectName} could not be found!");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/// <summary>
|
|
57
|
+
///
|
|
58
|
+
/// </summary>
|
|
59
|
+
/// <param name="o"></param>
|
|
60
|
+
protected virtual void SpawnObject(object o = null)
|
|
61
|
+
{
|
|
62
|
+
if (o is GameObjectCapsulate g)
|
|
63
|
+
Instantiate(g.value);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
66
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 02625d84084a3d741ab06ffdefb27f24
|
|
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: 02625d84084a3d741ab06ffdefb27f24
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.DialogueEventHandling;
|
|
3
|
-
using DREditor.Dialogues.Events;
|
|
4
|
-
using DREditor.EventObjects;
|
|
5
|
-
using UnityEngine;
|
|
6
|
-
|
|
7
|
-
namespace DREditor.CustomEvents
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
///
|
|
11
|
-
/// </summary>
|
|
12
|
-
[CustomDialogueEvent("")]
|
|
13
|
-
[ClassHeader(nameof(CustomDialogueEventHandler) +
|
|
14
|
-
"\n\n")]
|
|
15
|
-
public class ForceProtagViewCustomEvent : CustomDialogueEventHandler
|
|
16
|
-
{
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
[Tooltip("")]
|
|
21
|
-
[SerializeField] protected BoolWithEvent protagUIVisible = null;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/// <inheritdoc/>
|
|
25
|
-
protected override void StartListeningToEvents() => DialogueEventSystem.StartListening("ForceProtagView", ForceProtagView);
|
|
26
|
-
|
|
27
|
-
/// <inheritdoc/>
|
|
28
|
-
protected override void StopListeningToEvents() => DialogueEventSystem.StopListening("ForceProtagView", ForceProtagView);
|
|
29
|
-
|
|
30
|
-
/// <summary>
|
|
31
|
-
///
|
|
32
|
-
/// </summary>
|
|
33
|
-
/// <param name="o"></param>
|
|
34
|
-
protected virtual void ForceProtagView(object o = null)
|
|
35
|
-
{
|
|
36
|
-
if (o is BoolCapsulate boolData && boolData != null && boolData.value != protagUIVisible.Value)
|
|
37
|
-
protagUIVisible.SetValue(!protagUIVisible.Value);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.DialogueEventHandling;
|
|
3
|
+
using DREditor.Dialogues.Events;
|
|
4
|
+
using DREditor.EventObjects;
|
|
5
|
+
using UnityEngine;
|
|
6
|
+
|
|
7
|
+
namespace DREditor.CustomEvents
|
|
8
|
+
{
|
|
9
|
+
/// <summary>
|
|
10
|
+
///
|
|
11
|
+
/// </summary>
|
|
12
|
+
[CustomDialogueEvent("")]
|
|
13
|
+
[ClassHeader(nameof(CustomDialogueEventHandler) +
|
|
14
|
+
"\n\n")]
|
|
15
|
+
public class ForceProtagViewCustomEvent : CustomDialogueEventHandler
|
|
16
|
+
{
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
[Tooltip("")]
|
|
21
|
+
[SerializeField] protected BoolWithEvent protagUIVisible = null;
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
/// <inheritdoc/>
|
|
25
|
+
protected override void StartListeningToEvents() => DialogueEventSystem.StartListening("ForceProtagView", ForceProtagView);
|
|
26
|
+
|
|
27
|
+
/// <inheritdoc/>
|
|
28
|
+
protected override void StopListeningToEvents() => DialogueEventSystem.StopListening("ForceProtagView", ForceProtagView);
|
|
29
|
+
|
|
30
|
+
/// <summary>
|
|
31
|
+
///
|
|
32
|
+
/// </summary>
|
|
33
|
+
/// <param name="o"></param>
|
|
34
|
+
protected virtual void ForceProtagView(object o = null)
|
|
35
|
+
{
|
|
36
|
+
if (o is BoolCapsulate boolData && boolData != null && boolData.value != protagUIVisible.Value)
|
|
37
|
+
protagUIVisible.SetValue(!protagUIVisible.Value);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
40
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 91152327389f9674387d80a25d804b66
|
|
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: 91152327389f9674387d80a25d804b66
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/GameObjectCapsulate.cs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using UnityEngine;
|
|
3
|
-
using System;
|
|
4
|
-
using DREditor.Dialogues.Events;
|
|
5
|
-
|
|
6
|
-
#if UNITY_EDITOR
|
|
7
|
-
using DREditor.Editor.Utility;
|
|
8
|
-
#endif
|
|
9
|
-
|
|
10
|
-
namespace DREditor.CustomEvents
|
|
11
|
-
{
|
|
12
|
-
/// <summary>
|
|
13
|
-
///
|
|
14
|
-
/// </summary>
|
|
15
|
-
[Serializable]
|
|
16
|
-
public class GameObjectCapsulate : IDataCapsulate
|
|
17
|
-
{
|
|
18
|
-
/// <summary>
|
|
19
|
-
///
|
|
20
|
-
/// </summary>
|
|
21
|
-
public GameObject value;
|
|
22
|
-
|
|
23
|
-
#if UNITY_EDITOR
|
|
24
|
-
/// <inheritdoc/>
|
|
25
|
-
public virtual void Display(object o = null) => value = HandyFields.UnityField(value);
|
|
26
|
-
#else
|
|
27
|
-
public virtual void Display(object o = null)
|
|
28
|
-
{
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
#endif
|
|
32
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using UnityEngine;
|
|
3
|
+
using System;
|
|
4
|
+
using DREditor.Dialogues.Events;
|
|
5
|
+
|
|
6
|
+
#if UNITY_EDITOR
|
|
7
|
+
using DREditor.Editor.Utility;
|
|
8
|
+
#endif
|
|
9
|
+
|
|
10
|
+
namespace DREditor.CustomEvents
|
|
11
|
+
{
|
|
12
|
+
/// <summary>
|
|
13
|
+
///
|
|
14
|
+
/// </summary>
|
|
15
|
+
[Serializable]
|
|
16
|
+
public class GameObjectCapsulate : IDataCapsulate
|
|
17
|
+
{
|
|
18
|
+
/// <summary>
|
|
19
|
+
///
|
|
20
|
+
/// </summary>
|
|
21
|
+
public GameObject value;
|
|
22
|
+
|
|
23
|
+
#if UNITY_EDITOR
|
|
24
|
+
/// <inheritdoc/>
|
|
25
|
+
public virtual void Display(object o = null) => value = HandyFields.UnityField(value);
|
|
26
|
+
#else
|
|
27
|
+
public virtual void Display(object o = null)
|
|
28
|
+
{
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
#endif
|
|
32
|
+
}
|
|
33
33
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 1c8e56aa4ced7614dba54adb86214c72
|
|
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: 1c8e56aa4ced7614dba54adb86214c72
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
%YAML 1.1
|
|
2
|
-
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
-
--- !u!1 &5117752833290496166
|
|
4
|
-
GameObject:
|
|
5
|
-
m_ObjectHideFlags: 0
|
|
6
|
-
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
-
m_PrefabInstance: {fileID: 0}
|
|
8
|
-
m_PrefabAsset: {fileID: 0}
|
|
9
|
-
serializedVersion: 6
|
|
10
|
-
m_Component:
|
|
11
|
-
- component: {fileID: 5117752833290496161}
|
|
12
|
-
- component: {fileID: 5117752833290496160}
|
|
13
|
-
m_Layer: 0
|
|
14
|
-
m_Name: Dialogue_Event_Object_Handler
|
|
15
|
-
m_TagString: Untagged
|
|
16
|
-
m_Icon: {fileID: 0}
|
|
17
|
-
m_NavMeshLayer: 0
|
|
18
|
-
m_StaticEditorFlags: 0
|
|
19
|
-
m_IsActive: 1
|
|
20
|
-
--- !u!4 &5117752833290496161
|
|
21
|
-
Transform:
|
|
22
|
-
m_ObjectHideFlags: 0
|
|
23
|
-
m_CorrespondingSourceObject: {fileID: 0}
|
|
24
|
-
m_PrefabInstance: {fileID: 0}
|
|
25
|
-
m_PrefabAsset: {fileID: 0}
|
|
26
|
-
m_GameObject: {fileID: 5117752833290496166}
|
|
27
|
-
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
28
|
-
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
29
|
-
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
30
|
-
m_ConstrainProportionsScale: 0
|
|
31
|
-
m_Children: []
|
|
32
|
-
m_Father: {fileID: 0}
|
|
33
|
-
m_RootOrder: 0
|
|
34
|
-
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
-
--- !u!114 &5117752833290496160
|
|
36
|
-
MonoBehaviour:
|
|
37
|
-
m_ObjectHideFlags: 0
|
|
38
|
-
m_CorrespondingSourceObject: {fileID: 0}
|
|
39
|
-
m_PrefabInstance: {fileID: 0}
|
|
40
|
-
m_PrefabAsset: {fileID: 0}
|
|
41
|
-
m_GameObject: {fileID: 5117752833290496166}
|
|
42
|
-
m_Enabled: 1
|
|
43
|
-
m_EditorHideFlags: 0
|
|
44
|
-
m_Script: {fileID: 11500000, guid: 02625d84084a3d741ab06ffdefb27f24, type: 3}
|
|
45
|
-
m_Name:
|
|
46
|
-
m_EditorClassIdentifier:
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!1 &5117752833290496166
|
|
4
|
+
GameObject:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
serializedVersion: 6
|
|
10
|
+
m_Component:
|
|
11
|
+
- component: {fileID: 5117752833290496161}
|
|
12
|
+
- component: {fileID: 5117752833290496160}
|
|
13
|
+
m_Layer: 0
|
|
14
|
+
m_Name: Dialogue_Event_Object_Handler
|
|
15
|
+
m_TagString: Untagged
|
|
16
|
+
m_Icon: {fileID: 0}
|
|
17
|
+
m_NavMeshLayer: 0
|
|
18
|
+
m_StaticEditorFlags: 0
|
|
19
|
+
m_IsActive: 1
|
|
20
|
+
--- !u!4 &5117752833290496161
|
|
21
|
+
Transform:
|
|
22
|
+
m_ObjectHideFlags: 0
|
|
23
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
24
|
+
m_PrefabInstance: {fileID: 0}
|
|
25
|
+
m_PrefabAsset: {fileID: 0}
|
|
26
|
+
m_GameObject: {fileID: 5117752833290496166}
|
|
27
|
+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
28
|
+
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
29
|
+
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
30
|
+
m_ConstrainProportionsScale: 0
|
|
31
|
+
m_Children: []
|
|
32
|
+
m_Father: {fileID: 0}
|
|
33
|
+
m_RootOrder: 0
|
|
34
|
+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
+
--- !u!114 &5117752833290496160
|
|
36
|
+
MonoBehaviour:
|
|
37
|
+
m_ObjectHideFlags: 0
|
|
38
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
39
|
+
m_PrefabInstance: {fileID: 0}
|
|
40
|
+
m_PrefabAsset: {fileID: 0}
|
|
41
|
+
m_GameObject: {fileID: 5117752833290496166}
|
|
42
|
+
m_Enabled: 1
|
|
43
|
+
m_EditorHideFlags: 0
|
|
44
|
+
m_Script: {fileID: 11500000, guid: 02625d84084a3d741ab06ffdefb27f24, type: 3}
|
|
45
|
+
m_Name:
|
|
46
|
+
m_EditorClassIdentifier:
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 58622c13f3d226740b947c39e927d895
|
|
3
|
-
PrefabImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 58622c13f3d226740b947c39e927d895
|
|
3
|
+
PrefabImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
%YAML 1.1
|
|
2
|
-
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
-
--- !u!1 &4802270955901840375
|
|
4
|
-
GameObject:
|
|
5
|
-
m_ObjectHideFlags: 0
|
|
6
|
-
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
-
m_PrefabInstance: {fileID: 0}
|
|
8
|
-
m_PrefabAsset: {fileID: 0}
|
|
9
|
-
serializedVersion: 6
|
|
10
|
-
m_Component:
|
|
11
|
-
- component: {fileID: 8789691050719893166}
|
|
12
|
-
- component: {fileID: 3595606289587570374}
|
|
13
|
-
m_Layer: 5
|
|
14
|
-
m_Name: Force_Protag_View_Custom_Event
|
|
15
|
-
m_TagString: Untagged
|
|
16
|
-
m_Icon: {fileID: 0}
|
|
17
|
-
m_NavMeshLayer: 0
|
|
18
|
-
m_StaticEditorFlags: 0
|
|
19
|
-
m_IsActive: 1
|
|
20
|
-
--- !u!224 &8789691050719893166
|
|
21
|
-
RectTransform:
|
|
22
|
-
m_ObjectHideFlags: 0
|
|
23
|
-
m_CorrespondingSourceObject: {fileID: 0}
|
|
24
|
-
m_PrefabInstance: {fileID: 0}
|
|
25
|
-
m_PrefabAsset: {fileID: 0}
|
|
26
|
-
m_GameObject: {fileID: 4802270955901840375}
|
|
27
|
-
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
28
|
-
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
29
|
-
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
30
|
-
m_ConstrainProportionsScale: 0
|
|
31
|
-
m_Children: []
|
|
32
|
-
m_Father: {fileID: 0}
|
|
33
|
-
m_RootOrder: 0
|
|
34
|
-
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
-
m_AnchorMin: {x: 0.5, y: 0.5}
|
|
36
|
-
m_AnchorMax: {x: 0.5, y: 0.5}
|
|
37
|
-
m_AnchoredPosition: {x: 0, y: 0}
|
|
38
|
-
m_SizeDelta: {x: 100, y: 100}
|
|
39
|
-
m_Pivot: {x: 0.5, y: 0.5}
|
|
40
|
-
--- !u!114 &3595606289587570374
|
|
41
|
-
MonoBehaviour:
|
|
42
|
-
m_ObjectHideFlags: 0
|
|
43
|
-
m_CorrespondingSourceObject: {fileID: 0}
|
|
44
|
-
m_PrefabInstance: {fileID: 0}
|
|
45
|
-
m_PrefabAsset: {fileID: 0}
|
|
46
|
-
m_GameObject: {fileID: 4802270955901840375}
|
|
47
|
-
m_Enabled: 1
|
|
48
|
-
m_EditorHideFlags: 0
|
|
49
|
-
m_Script: {fileID: 11500000, guid: 91152327389f9674387d80a25d804b66, type: 3}
|
|
50
|
-
m_Name:
|
|
51
|
-
m_EditorClassIdentifier:
|
|
52
|
-
protagUIVisible: {fileID: 11400000, guid: 1519b7260fb1e3249b13fdf1a5896b24, type: 2}
|
|
1
|
+
%YAML 1.1
|
|
2
|
+
%TAG !u! tag:unity3d.com,2011:
|
|
3
|
+
--- !u!1 &4802270955901840375
|
|
4
|
+
GameObject:
|
|
5
|
+
m_ObjectHideFlags: 0
|
|
6
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
7
|
+
m_PrefabInstance: {fileID: 0}
|
|
8
|
+
m_PrefabAsset: {fileID: 0}
|
|
9
|
+
serializedVersion: 6
|
|
10
|
+
m_Component:
|
|
11
|
+
- component: {fileID: 8789691050719893166}
|
|
12
|
+
- component: {fileID: 3595606289587570374}
|
|
13
|
+
m_Layer: 5
|
|
14
|
+
m_Name: Force_Protag_View_Custom_Event
|
|
15
|
+
m_TagString: Untagged
|
|
16
|
+
m_Icon: {fileID: 0}
|
|
17
|
+
m_NavMeshLayer: 0
|
|
18
|
+
m_StaticEditorFlags: 0
|
|
19
|
+
m_IsActive: 1
|
|
20
|
+
--- !u!224 &8789691050719893166
|
|
21
|
+
RectTransform:
|
|
22
|
+
m_ObjectHideFlags: 0
|
|
23
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
24
|
+
m_PrefabInstance: {fileID: 0}
|
|
25
|
+
m_PrefabAsset: {fileID: 0}
|
|
26
|
+
m_GameObject: {fileID: 4802270955901840375}
|
|
27
|
+
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
|
28
|
+
m_LocalPosition: {x: 0, y: 0, z: 0}
|
|
29
|
+
m_LocalScale: {x: 1, y: 1, z: 1}
|
|
30
|
+
m_ConstrainProportionsScale: 0
|
|
31
|
+
m_Children: []
|
|
32
|
+
m_Father: {fileID: 0}
|
|
33
|
+
m_RootOrder: 0
|
|
34
|
+
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
|
35
|
+
m_AnchorMin: {x: 0.5, y: 0.5}
|
|
36
|
+
m_AnchorMax: {x: 0.5, y: 0.5}
|
|
37
|
+
m_AnchoredPosition: {x: 0, y: 0}
|
|
38
|
+
m_SizeDelta: {x: 100, y: 100}
|
|
39
|
+
m_Pivot: {x: 0.5, y: 0.5}
|
|
40
|
+
--- !u!114 &3595606289587570374
|
|
41
|
+
MonoBehaviour:
|
|
42
|
+
m_ObjectHideFlags: 0
|
|
43
|
+
m_CorrespondingSourceObject: {fileID: 0}
|
|
44
|
+
m_PrefabInstance: {fileID: 0}
|
|
45
|
+
m_PrefabAsset: {fileID: 0}
|
|
46
|
+
m_GameObject: {fileID: 4802270955901840375}
|
|
47
|
+
m_Enabled: 1
|
|
48
|
+
m_EditorHideFlags: 0
|
|
49
|
+
m_Script: {fileID: 11500000, guid: 91152327389f9674387d80a25d804b66, type: 3}
|
|
50
|
+
m_Name:
|
|
51
|
+
m_EditorClassIdentifier:
|
|
52
|
+
protagUIVisible: {fileID: 11400000, guid: 1519b7260fb1e3249b13fdf1a5896b24, type: 2}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: a7e19dabdcdd2b24cb08023743b44526
|
|
3
|
-
PrefabImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: a7e19dabdcdd2b24cb08023743b44526
|
|
3
|
+
PrefabImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|
package/StringCapsulate.cs
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Dialogues.Events;
|
|
3
|
-
using System;
|
|
4
|
-
#if UNITY_EDITOR
|
|
5
|
-
using DREditor.Editor.Utility;
|
|
6
|
-
#endif
|
|
7
|
-
|
|
8
|
-
namespace DREditor.CustomEvents
|
|
9
|
-
{
|
|
10
|
-
/// <summary>
|
|
11
|
-
///
|
|
12
|
-
/// </summary>
|
|
13
|
-
[Serializable]
|
|
14
|
-
public class StringCapsulate : IDataCapsulate
|
|
15
|
-
{
|
|
16
|
-
/// <summary>
|
|
17
|
-
///
|
|
18
|
-
/// </summary>
|
|
19
|
-
public string value;
|
|
20
|
-
|
|
21
|
-
/// <summary>
|
|
22
|
-
///
|
|
23
|
-
/// </summary>
|
|
24
|
-
public string displayString;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
#if UNITY_EDITOR
|
|
28
|
-
/// <inheritdoc/>
|
|
29
|
-
public virtual void Display(object o = null)
|
|
30
|
-
{
|
|
31
|
-
if (o is string s)
|
|
32
|
-
{
|
|
33
|
-
displayString = s;
|
|
34
|
-
|
|
35
|
-
value = HandyFields.StringField(s, value);
|
|
36
|
-
}
|
|
37
|
-
else if (!string.IsNullOrEmpty(displayString))
|
|
38
|
-
value = HandyFields.StringField(displayString, value);
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
#else
|
|
42
|
-
public void Display(object o = null)
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
#endif
|
|
47
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Dialogues.Events;
|
|
3
|
+
using System;
|
|
4
|
+
#if UNITY_EDITOR
|
|
5
|
+
using DREditor.Editor.Utility;
|
|
6
|
+
#endif
|
|
7
|
+
|
|
8
|
+
namespace DREditor.CustomEvents
|
|
9
|
+
{
|
|
10
|
+
/// <summary>
|
|
11
|
+
///
|
|
12
|
+
/// </summary>
|
|
13
|
+
[Serializable]
|
|
14
|
+
public class StringCapsulate : IDataCapsulate
|
|
15
|
+
{
|
|
16
|
+
/// <summary>
|
|
17
|
+
///
|
|
18
|
+
/// </summary>
|
|
19
|
+
public string value;
|
|
20
|
+
|
|
21
|
+
/// <summary>
|
|
22
|
+
///
|
|
23
|
+
/// </summary>
|
|
24
|
+
public string displayString;
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
#if UNITY_EDITOR
|
|
28
|
+
/// <inheritdoc/>
|
|
29
|
+
public virtual void Display(object o = null)
|
|
30
|
+
{
|
|
31
|
+
if (o is string s)
|
|
32
|
+
{
|
|
33
|
+
displayString = s;
|
|
34
|
+
|
|
35
|
+
value = HandyFields.StringField(s, value);
|
|
36
|
+
}
|
|
37
|
+
else if (!string.IsNullOrEmpty(displayString))
|
|
38
|
+
value = HandyFields.StringField(displayString, value);
|
|
39
|
+
|
|
40
|
+
}
|
|
41
|
+
#else
|
|
42
|
+
public void Display(object o = null)
|
|
43
|
+
{
|
|
44
|
+
|
|
45
|
+
}
|
|
46
|
+
#endif
|
|
47
|
+
}
|
|
48
48
|
}
|
package/StringCapsulate.cs.meta
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
1
|
+
fileFormatVersion: 2
|
|
2
2
|
guid: 0f7d51b67b29e214a95ddd05a4221f17
|
package/package.json
CHANGED
|
@@ -1,35 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "net.dreditor.customevents",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"displayName": "DREditor Custom Events",
|
|
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
|
-
},
|
|
11
|
-
"publishConfig": {
|
|
12
|
-
"access": "public"
|
|
13
|
-
},
|
|
14
|
-
"author": {
|
|
15
|
-
"name": "Benjamin \"Sweden\" Jillson",
|
|
16
|
-
"email": "dreditortool@gmail.com",
|
|
17
|
-
"url": "https://dreditor.net"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [
|
|
20
|
-
"editor",
|
|
21
|
-
"tool",
|
|
22
|
-
"dreditor"
|
|
23
|
-
],
|
|
24
|
-
"samples": [
|
|
25
|
-
{
|
|
26
|
-
"displayName": "Samples",
|
|
27
|
-
"description": "",
|
|
28
|
-
"path": "Samples~"
|
|
29
|
-
}
|
|
30
|
-
],
|
|
31
|
-
"documentationUrl": "https://dreditor.net",
|
|
32
|
-
"license": "Apache-2.0",
|
|
33
|
-
"licensesUrl": "https://dreditor.net/docs/LICENSE.html",
|
|
34
|
-
"changelogUrl": "https://dreditor.net/docs/CHANGELOG.html"
|
|
35
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "net.dreditor.customevents",
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"displayName": "DREditor Custom Events",
|
|
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.8",
|
|
9
|
+
"net.dreditor.dialogueeventhandling": "0.1.8"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"access": "public"
|
|
13
|
+
},
|
|
14
|
+
"author": {
|
|
15
|
+
"name": "Benjamin \"Sweden\" Jillson",
|
|
16
|
+
"email": "dreditortool@gmail.com",
|
|
17
|
+
"url": "https://dreditor.net"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"editor",
|
|
21
|
+
"tool",
|
|
22
|
+
"dreditor"
|
|
23
|
+
],
|
|
24
|
+
"samples": [
|
|
25
|
+
{
|
|
26
|
+
"displayName": "Samples",
|
|
27
|
+
"description": "",
|
|
28
|
+
"path": "Samples~"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"documentationUrl": "https://dreditor.net",
|
|
32
|
+
"license": "Apache-2.0",
|
|
33
|
+
"licensesUrl": "https://dreditor.net/docs/LICENSE.html",
|
|
34
|
+
"changelogUrl": "https://dreditor.net/docs/CHANGELOG.html",
|
|
35
|
+
"repository": {
|
|
36
|
+
"url": "https://github.com/CertifiedSharp/DREditor",
|
|
37
|
+
"type": "git",
|
|
38
|
+
"revision": "416b18f937fb917bf3f595362a1082ed97457744"
|
|
39
|
+
}
|
|
40
|
+
}
|
package/package.json.meta
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: dd04d3d5bfbd0e34eb1f6f8eb72edaa3
|
|
3
|
-
TextScriptImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
userData:
|
|
6
|
-
assetBundleName:
|
|
7
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: dd04d3d5bfbd0e34eb1f6f8eb72edaa3
|
|
3
|
+
TextScriptImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
userData:
|
|
6
|
+
assetBundleName:
|
|
7
|
+
assetBundleVariant:
|