net.dreditor.textdisplaying 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 (92) hide show
  1. package/.attestation.p7m +0 -0
  2. package/CGLineTextDisplayer.cs +12 -12
  3. package/CGLineTextDisplayer.cs.meta +11 -11
  4. package/ClearTextOnLineEnd.cs +17 -17
  5. package/ClearTextOnLineEnd.cs.meta +11 -11
  6. package/ColorByCharacterTextModifier.cs +45 -45
  7. package/ColorByCharacterTextModifier.cs.meta +11 -11
  8. package/DREditor.TextDisplaying.asmdef +19 -19
  9. package/DREditor.TextDisplaying.asmdef.meta +7 -7
  10. package/DialogueLineTextDisplayer.cs +187 -187
  11. package/DialogueLineTextDisplayer.cs.meta +11 -11
  12. package/DisplayFormattedString.cs +68 -68
  13. package/DisplayFormattedString.cs.meta +1 -1
  14. package/DisplayOwnedIntCurrency.cs +56 -56
  15. package/DisplayOwnedIntCurrency.cs.meta +1 -1
  16. package/HighlightTextModifier.cs +70 -70
  17. package/HighlightTextModifier.cs.meta +11 -11
  18. package/ITextDisplayerHandler.cs +22 -22
  19. package/ITextDisplayerHandler.cs.meta +11 -11
  20. package/OptionsTextMessage.cs +53 -53
  21. package/OptionsTextMessage.cs.meta +11 -11
  22. package/OptionsTextSpeedMessage.cs +82 -82
  23. package/OptionsTextSpeedMessage.cs.meta +11 -11
  24. package/RegexEscapeModifier.cs +43 -43
  25. package/RegexEscapeModifier.cs.meta +11 -11
  26. package/ReplaceGroup.cs +33 -33
  27. package/ReplaceGroup.cs.meta +11 -11
  28. package/ReplaceTextModifier.cs +53 -53
  29. package/ReplaceTextModifier.cs.meta +11 -11
  30. package/ReplaceTextModifierBase.cs +18 -18
  31. package/ReplaceTextModifierBase.cs.meta +11 -11
  32. package/{Samples → Samples~}/CGDialogueUIVisible.asset +21 -21
  33. package/{Samples → Samples~}/CGDialogueUIVisible.asset.meta +8 -8
  34. package/{Samples → Samples~}/CGTextBox.asset +21 -21
  35. package/{Samples → Samples~}/CGTextBox.asset.meta +8 -8
  36. package/{Samples → Samples~}/CG_Line_Text_Displayer.prefab +147 -147
  37. package/{Samples → Samples~}/CG_Line_Text_Displayer.prefab.meta +7 -7
  38. package/{Samples → Samples~}/Clear_Text_On_Line_End.prefab +46 -46
  39. package/{Samples → Samples~}/Clear_Text_On_Line_End.prefab.meta +7 -7
  40. package/{Samples → Samples~}/Color_By_Character_Text_Modifier.prefab +51 -51
  41. package/{Samples → Samples~}/Color_By_Character_Text_Modifier.prefab.meta +7 -7
  42. package/{Samples → Samples~}/DRE_TextDebugging.unity +492 -492
  43. package/{Samples → Samples~}/DRE_TextDebugging.unity.meta +7 -7
  44. package/{Samples → Samples~}/DialogueTextBox.asset +21 -21
  45. package/{Samples → Samples~}/DialogueTextBox.asset.meta +8 -8
  46. package/{Samples → Samples~}/Dialogue_Line_Text_Displayer.prefab +142 -142
  47. package/{Samples → Samples~}/Dialogue_Line_Text_Displayer.prefab.meta +7 -7
  48. package/{Samples → Samples~}/Highlight_Text_Modifier.prefab +49 -49
  49. package/{Samples → Samples~}/Highlight_Text_Modifier.prefab.meta +7 -7
  50. package/{Samples → Samples~}/Option_Message_UI_ETemplate.prefab +335 -335
  51. package/{Samples → Samples~}/Option_Message_UI_ETemplate.prefab.meta +7 -7
  52. package/{Samples → Samples~}/OptionsUITextSpeedMessage.asset +21 -21
  53. package/{Samples → Samples~}/OptionsUITextSpeedMessage.asset.meta +8 -8
  54. package/{Samples → Samples~}/Regex_Escape_Modifier.prefab +47 -47
  55. package/{Samples → Samples~}/Regex_Escape_Modifier.prefab.meta +7 -7
  56. package/{Samples → Samples~}/Replace_Text_Modifier.prefab +49 -49
  57. package/{Samples → Samples~}/Replace_Text_Modifier.prefab.meta +7 -7
  58. package/{Samples → Samples~}/Symbol_Color_Text_Modifier.prefab +50 -50
  59. package/{Samples → Samples~}/Symbol_Color_Text_Modifier.prefab.meta +7 -7
  60. package/{Samples → Samples~}/Symbol_Protag_UI_Modifier.prefab +48 -48
  61. package/{Samples → Samples~}/Symbol_Protag_UI_Modifier.prefab.meta +7 -7
  62. package/{Samples → Samples~}/Text_Display_Debugger.prefab +467 -467
  63. package/{Samples → Samples~}/Text_Display_Debugger.prefab.meta +7 -7
  64. package/{Samples → Samples~}/Text_Displayer.prefab +624 -624
  65. package/{Samples → Samples~}/Text_Displayer.prefab.meta +7 -7
  66. package/{Samples → Samples~}/TrialDialogueTextBox.asset +21 -21
  67. package/{Samples → Samples~}/TrialDialogueTextBox.asset.meta +8 -8
  68. package/{Samples → Samples~}/Trial_Dialogue_Line_Text_Displayer.prefab +82 -82
  69. package/{Samples → Samples~}/Trial_Dialogue_Line_Text_Displayer.prefab.meta +7 -7
  70. package/SetTextDisplaySpeed.cs +59 -59
  71. package/SetTextDisplaySpeed.cs.meta +11 -11
  72. package/SymbolColorTextModifier.cs +24 -24
  73. package/SymbolColorTextModifier.cs.meta +11 -11
  74. package/SymbolProtagUIModifier.cs +41 -41
  75. package/SymbolProtagUIModifier.cs.meta +11 -11
  76. package/SymbolTextModifier.cs +47 -47
  77. package/SymbolTextModifier.cs.meta +11 -11
  78. package/TMPMarquee.cs +177 -177
  79. package/TMPMarquee.cs.meta +11 -11
  80. package/TMPMarqueeBase.cs +103 -103
  81. package/TMPMarqueeBase.cs.meta +1 -1
  82. package/TextDisplayDebugger.cs +86 -86
  83. package/TextDisplayDebugger.cs.meta +11 -11
  84. package/TextDisplayModifier.cs +28 -28
  85. package/TextDisplayModifier.cs.meta +11 -11
  86. package/TextDisplayer.cs +254 -254
  87. package/TextDisplayer.cs.meta +11 -11
  88. package/TextDisplayerBase.cs +106 -106
  89. package/TextDisplayerBase.cs.meta +11 -11
  90. package/package.json +42 -37
  91. package/package.json.meta +7 -7
  92. package/Samples.meta +0 -8
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 0a6509d0cfe73694a9f2f8a408656e56
3
- PrefabImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 0a6509d0cfe73694a9f2f8a408656e56
3
+ PrefabImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -1,21 +1,21 @@
1
- %YAML 1.1
2
- %TAG !u! tag:unity3d.com,2011:
3
- --- !u!114 &11400000
4
- MonoBehaviour:
5
- m_ObjectHideFlags: 0
6
- m_CorrespondingSourceObject: {fileID: 0}
7
- m_PrefabInstance: {fileID: 0}
8
- m_PrefabAsset: {fileID: 0}
9
- m_GameObject: {fileID: 0}
10
- m_Enabled: 1
11
- m_EditorHideFlags: 0
12
- m_Script: {fileID: 11500000, guid: 68508d28dbcc35a42b9fea6931e177d3, type: 3}
13
- m_Name: TrialDialogueTextBox
14
- m_EditorClassIdentifier:
15
- debug: 0
16
- alwaysInvokeOnSetValue: 0
17
- OnChange:
18
- m_PersistentCalls:
19
- m_Calls: []
20
- InitialValue: {fileID: 0}
21
- _value: {fileID: 0}
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!114 &11400000
4
+ MonoBehaviour:
5
+ m_ObjectHideFlags: 0
6
+ m_CorrespondingSourceObject: {fileID: 0}
7
+ m_PrefabInstance: {fileID: 0}
8
+ m_PrefabAsset: {fileID: 0}
9
+ m_GameObject: {fileID: 0}
10
+ m_Enabled: 1
11
+ m_EditorHideFlags: 0
12
+ m_Script: {fileID: 11500000, guid: 68508d28dbcc35a42b9fea6931e177d3, type: 3}
13
+ m_Name: TrialDialogueTextBox
14
+ m_EditorClassIdentifier:
15
+ debug: 0
16
+ alwaysInvokeOnSetValue: 0
17
+ OnChange:
18
+ m_PersistentCalls:
19
+ m_Calls: []
20
+ InitialValue: {fileID: 0}
21
+ _value: {fileID: 0}
@@ -1,8 +1,8 @@
1
- fileFormatVersion: 2
2
- guid: b30fd4470aa2c744984f96e64c9ab1a4
3
- NativeFormatImporter:
4
- externalObjects: {}
5
- mainObjectFileID: 11400000
6
- userData:
7
- assetBundleName:
8
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: b30fd4470aa2c744984f96e64c9ab1a4
3
+ NativeFormatImporter:
4
+ externalObjects: {}
5
+ mainObjectFileID: 11400000
6
+ userData:
7
+ assetBundleName:
8
+ assetBundleVariant:
@@ -1,82 +1,82 @@
1
- %YAML 1.1
2
- %TAG !u! tag:unity3d.com,2011:
3
- --- !u!1001 &6242507975043742467
4
- PrefabInstance:
5
- m_ObjectHideFlags: 0
6
- serializedVersion: 2
7
- m_Modification:
8
- m_TransformParent: {fileID: 0}
9
- m_Modifications:
10
- - target: {fileID: 2594651368626609964, guid: a7519ae02f4a947429b862654a93ce4c,
11
- type: 3}
12
- propertyPath: globalBox
13
- value:
14
- objectReference: {fileID: 11400000, guid: b30fd4470aa2c744984f96e64c9ab1a4,
15
- type: 2}
16
- - target: {fileID: 2594651368626609965, guid: a7519ae02f4a947429b862654a93ce4c,
17
- type: 3}
18
- propertyPath: m_Name
19
- value: Trial_Dialogue_Line_Text_Displayer
20
- objectReference: {fileID: 0}
21
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
22
- type: 3}
23
- propertyPath: m_RootOrder
24
- value: 0
25
- objectReference: {fileID: 0}
26
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
27
- type: 3}
28
- propertyPath: m_LocalPosition.x
29
- value: 0
30
- objectReference: {fileID: 0}
31
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
32
- type: 3}
33
- propertyPath: m_LocalPosition.y
34
- value: 0
35
- objectReference: {fileID: 0}
36
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
37
- type: 3}
38
- propertyPath: m_LocalPosition.z
39
- value: 0
40
- objectReference: {fileID: 0}
41
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
42
- type: 3}
43
- propertyPath: m_LocalRotation.w
44
- value: 1
45
- objectReference: {fileID: 0}
46
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
47
- type: 3}
48
- propertyPath: m_LocalRotation.x
49
- value: -0
50
- objectReference: {fileID: 0}
51
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
52
- type: 3}
53
- propertyPath: m_LocalRotation.y
54
- value: -0
55
- objectReference: {fileID: 0}
56
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
57
- type: 3}
58
- propertyPath: m_LocalRotation.z
59
- value: -0
60
- objectReference: {fileID: 0}
61
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
62
- type: 3}
63
- propertyPath: m_LocalEulerAnglesHint.x
64
- value: 0
65
- objectReference: {fileID: 0}
66
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
67
- type: 3}
68
- propertyPath: m_LocalEulerAnglesHint.y
69
- value: 0
70
- objectReference: {fileID: 0}
71
- - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
72
- type: 3}
73
- propertyPath: m_LocalEulerAnglesHint.z
74
- value: 0
75
- objectReference: {fileID: 0}
76
- - target: {fileID: 6965695758473656304, guid: a7519ae02f4a947429b862654a93ce4c,
77
- type: 3}
78
- propertyPath: Box
79
- value:
80
- objectReference: {fileID: 0}
81
- m_RemovedComponents: []
82
- m_SourcePrefab: {fileID: 100100000, guid: a7519ae02f4a947429b862654a93ce4c, type: 3}
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!1001 &6242507975043742467
4
+ PrefabInstance:
5
+ m_ObjectHideFlags: 0
6
+ serializedVersion: 2
7
+ m_Modification:
8
+ m_TransformParent: {fileID: 0}
9
+ m_Modifications:
10
+ - target: {fileID: 2594651368626609964, guid: a7519ae02f4a947429b862654a93ce4c,
11
+ type: 3}
12
+ propertyPath: globalBox
13
+ value:
14
+ objectReference: {fileID: 11400000, guid: b30fd4470aa2c744984f96e64c9ab1a4,
15
+ type: 2}
16
+ - target: {fileID: 2594651368626609965, guid: a7519ae02f4a947429b862654a93ce4c,
17
+ type: 3}
18
+ propertyPath: m_Name
19
+ value: Trial_Dialogue_Line_Text_Displayer
20
+ objectReference: {fileID: 0}
21
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
22
+ type: 3}
23
+ propertyPath: m_RootOrder
24
+ value: 0
25
+ objectReference: {fileID: 0}
26
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
27
+ type: 3}
28
+ propertyPath: m_LocalPosition.x
29
+ value: 0
30
+ objectReference: {fileID: 0}
31
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
32
+ type: 3}
33
+ propertyPath: m_LocalPosition.y
34
+ value: 0
35
+ objectReference: {fileID: 0}
36
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
37
+ type: 3}
38
+ propertyPath: m_LocalPosition.z
39
+ value: 0
40
+ objectReference: {fileID: 0}
41
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
42
+ type: 3}
43
+ propertyPath: m_LocalRotation.w
44
+ value: 1
45
+ objectReference: {fileID: 0}
46
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
47
+ type: 3}
48
+ propertyPath: m_LocalRotation.x
49
+ value: -0
50
+ objectReference: {fileID: 0}
51
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
52
+ type: 3}
53
+ propertyPath: m_LocalRotation.y
54
+ value: -0
55
+ objectReference: {fileID: 0}
56
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
57
+ type: 3}
58
+ propertyPath: m_LocalRotation.z
59
+ value: -0
60
+ objectReference: {fileID: 0}
61
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
62
+ type: 3}
63
+ propertyPath: m_LocalEulerAnglesHint.x
64
+ value: 0
65
+ objectReference: {fileID: 0}
66
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
67
+ type: 3}
68
+ propertyPath: m_LocalEulerAnglesHint.y
69
+ value: 0
70
+ objectReference: {fileID: 0}
71
+ - target: {fileID: 2594651368626609967, guid: a7519ae02f4a947429b862654a93ce4c,
72
+ type: 3}
73
+ propertyPath: m_LocalEulerAnglesHint.z
74
+ value: 0
75
+ objectReference: {fileID: 0}
76
+ - target: {fileID: 6965695758473656304, guid: a7519ae02f4a947429b862654a93ce4c,
77
+ type: 3}
78
+ propertyPath: Box
79
+ value:
80
+ objectReference: {fileID: 0}
81
+ m_RemovedComponents: []
82
+ m_SourcePrefab: {fileID: 100100000, guid: a7519ae02f4a947429b862654a93ce4c, type: 3}
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 3f079951a19c7f741b67ba65b74903a8
3
- PrefabImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 3f079951a19c7f741b67ba65b74903a8
3
+ PrefabImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -1,60 +1,60 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.EventObjects;
3
- using UnityEngine;
4
-
5
- namespace DREditor.TextDisplaying
6
- {
7
- /// <summary>
8
- ///
9
- /// </summary>
10
- public class SetTextDisplaySpeed : MonoBehaviour
11
- {
12
- /// <summary>
13
- ///
14
- /// </summary>
15
- [Tooltip("")]
16
- [SerializeField] protected TextDisplayerBase textDisplayer = null;
17
-
18
- /// <summary>
19
- ///
20
- /// </summary>
21
- [Tooltip("")]
22
- [SerializeField] protected ValueWithEvent<float, FloatEvent> textSpeedSetting = null;
23
-
24
-
25
- /// <summary>
26
- ///
27
- /// </summary>
28
- protected virtual void Start() => OnTextDisplaySpeedUpdated(textSpeedSetting.Value);
29
-
30
- /// <summary>
31
- ///
32
- /// </summary>
33
- protected virtual void OnEnable() => SubscribeToSettingChange();
34
-
35
- /// <summary>
36
- ///
37
- /// </summary>
38
- protected virtual void SubscribeToSettingChange() => textSpeedSetting.AddListener(OnTextDisplaySpeedUpdated);
39
-
40
- /// <summary>
41
- ///
42
- /// </summary>
43
- protected virtual void OnDisable() => UnsubscribeToSettingChange();
44
-
45
- /// <summary>
46
- ///
47
- /// </summary>
48
- protected virtual void UnsubscribeToSettingChange() => textSpeedSetting.RemoveListener(OnTextDisplaySpeedUpdated);
49
-
50
- /// <summary>
51
- ///
52
- /// </summary>
53
- /// <param name="newSpeed"></param>
54
- protected virtual void OnTextDisplaySpeedUpdated(float newSpeed)
55
- {
56
- if (textDisplayer != null)
57
- textDisplayer.SetTextDisplaySpeed(newSpeed);
58
- }
59
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.EventObjects;
3
+ using UnityEngine;
4
+
5
+ namespace DREditor.TextDisplaying
6
+ {
7
+ /// <summary>
8
+ ///
9
+ /// </summary>
10
+ public class SetTextDisplaySpeed : MonoBehaviour
11
+ {
12
+ /// <summary>
13
+ ///
14
+ /// </summary>
15
+ [Tooltip("")]
16
+ [SerializeField] protected TextDisplayerBase textDisplayer = null;
17
+
18
+ /// <summary>
19
+ ///
20
+ /// </summary>
21
+ [Tooltip("")]
22
+ [SerializeField] protected ValueWithEvent<float, FloatEvent> textSpeedSetting = null;
23
+
24
+
25
+ /// <summary>
26
+ ///
27
+ /// </summary>
28
+ protected virtual void Start() => OnTextDisplaySpeedUpdated(textSpeedSetting.Value);
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ protected virtual void OnEnable() => SubscribeToSettingChange();
34
+
35
+ /// <summary>
36
+ ///
37
+ /// </summary>
38
+ protected virtual void SubscribeToSettingChange() => textSpeedSetting.AddListener(OnTextDisplaySpeedUpdated);
39
+
40
+ /// <summary>
41
+ ///
42
+ /// </summary>
43
+ protected virtual void OnDisable() => UnsubscribeToSettingChange();
44
+
45
+ /// <summary>
46
+ ///
47
+ /// </summary>
48
+ protected virtual void UnsubscribeToSettingChange() => textSpeedSetting.RemoveListener(OnTextDisplaySpeedUpdated);
49
+
50
+ /// <summary>
51
+ ///
52
+ /// </summary>
53
+ /// <param name="newSpeed"></param>
54
+ protected virtual void OnTextDisplaySpeedUpdated(float newSpeed)
55
+ {
56
+ if (textDisplayer != null)
57
+ textDisplayer.SetTextDisplaySpeed(newSpeed);
58
+ }
59
+ }
60
60
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 8d00bac9ed0a63e4c8ecf9e8f6a0070d
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: 8d00bac9ed0a63e4c8ecf9e8f6a0070d
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
- using DREditor.Dialogues;
3
- using TMPro;
4
- using UnityEngine;
5
-
6
- namespace DREditor.TextDisplaying
7
- {
8
- /// <summary>
9
- ///
10
- /// </summary>
11
- [ClassHeader(nameof(SymbolTextModifier) +
12
- "\n\n")]
13
- public class SymbolColorTextModifier : SymbolTextModifier
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- [Tooltip("")]
19
- [SerializeField] Color32 newTextColor = new(77, 193, 250, 255);
20
-
21
-
22
- /// <inheritdoc/>
23
- protected override void OnSymbolFound(string text, Line currentLine = null, TMP_Text box = null) => box.color = newTextColor;
24
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using TMPro;
4
+ using UnityEngine;
5
+
6
+ namespace DREditor.TextDisplaying
7
+ {
8
+ /// <summary>
9
+ ///
10
+ /// </summary>
11
+ [ClassHeader(nameof(SymbolTextModifier) +
12
+ "\n\n")]
13
+ public class SymbolColorTextModifier : SymbolTextModifier
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ [Tooltip("")]
19
+ [SerializeField] Color32 newTextColor = new(77, 193, 250, 255);
20
+
21
+
22
+ /// <inheritdoc/>
23
+ protected override void OnSymbolFound(string text, Line currentLine = null, TMP_Text box = null) => box.color = newTextColor;
24
+ }
25
25
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: fa446a4645cb52644b84a5da97134c73
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: fa446a4645cb52644b84a5da97134c73
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,42 +1,42 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- using DREditor.Dialogues;
3
- using DREditor.Dialogues.LineReading;
4
- using DREditor.EventObjects;
5
- using TMPro;
6
- using UnityEngine;
7
-
8
- namespace DREditor.TextDisplaying
9
- {
10
- /// <summary>
11
- ///
12
- /// </summary>
13
- [ClassHeader(nameof(SymbolTextModifier) + ", " + nameof(ILineRoutine) +
14
- "\n\n")]
15
- public class SymbolProtagUIModifier : SymbolTextModifier, ILineRoutine
16
- {
17
- /// <summary>
18
- ///
19
- /// </summary>
20
- [Tooltip("")]
21
- [SerializeField] protected SceneEvent toggleProtagUI = null;
22
-
23
-
24
- /// <inheritdoc/>
25
- protected override void OnSymbolFound(string text, Line currentLine = null, TMP_Text box = null) => toggleProtagUI.Raise();
26
-
27
-
28
- /// <inheritdoc/>
29
- public virtual bool ShouldProcess(Line currentLine) => currentLine.Text.Contains(startingSymbol);
30
-
31
- /// <inheritdoc/>
32
- public override bool SkipLine(Line currentLine)
33
- {
34
- bool onlySymbol = string.IsNullOrEmpty(currentLine.Text.Replace(startingSymbol.ToString(), ""));
35
-
36
- if (onlySymbol)
37
- OnSymbolFound(currentLine.Text, currentLine, null);
38
-
39
- return onlySymbol || base.SkipLine(currentLine);
40
- }
41
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ using DREditor.Dialogues;
3
+ using DREditor.Dialogues.LineReading;
4
+ using DREditor.EventObjects;
5
+ using TMPro;
6
+ using UnityEngine;
7
+
8
+ namespace DREditor.TextDisplaying
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ [ClassHeader(nameof(SymbolTextModifier) + ", " + nameof(ILineRoutine) +
14
+ "\n\n")]
15
+ public class SymbolProtagUIModifier : SymbolTextModifier, ILineRoutine
16
+ {
17
+ /// <summary>
18
+ ///
19
+ /// </summary>
20
+ [Tooltip("")]
21
+ [SerializeField] protected SceneEvent toggleProtagUI = null;
22
+
23
+
24
+ /// <inheritdoc/>
25
+ protected override void OnSymbolFound(string text, Line currentLine = null, TMP_Text box = null) => toggleProtagUI.Raise();
26
+
27
+
28
+ /// <inheritdoc/>
29
+ public virtual bool ShouldProcess(Line currentLine) => currentLine.Text.Contains(startingSymbol);
30
+
31
+ /// <inheritdoc/>
32
+ public override bool SkipLine(Line currentLine)
33
+ {
34
+ bool onlySymbol = string.IsNullOrEmpty(currentLine.Text.Replace(startingSymbol.ToString(), ""));
35
+
36
+ if (onlySymbol)
37
+ OnSymbolFound(currentLine.Text, currentLine, null);
38
+
39
+ return onlySymbol || base.SkipLine(currentLine);
40
+ }
41
+ }
42
42
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 2d57bda12c1d4df409e5b7384d59f731
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: 2d57bda12c1d4df409e5b7384d59f731
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant: