net.dreditor.textdisplaying 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.
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,107 +1,107 @@
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.Services;
5
- using TMPro;
6
- using UnityEngine;
7
-
8
- namespace DREditor.TextDisplaying
9
- {
10
- /// <summary>
11
- ///
12
- /// </summary>
13
- public abstract class TextDisplayerBase : MonoBehaviour, IToTitleScreen, ILineRoutine
14
- {
15
- /// <summary>
16
- ///
17
- /// </summary>
18
- protected TMP_Text box = null;
19
-
20
- /// <summary>
21
- ///
22
- /// </summary>
23
- protected bool isWaitingForClick = false;
24
-
25
- /// <summary>
26
- ///
27
- /// </summary>
28
- protected float textDisplaySpeed = 3.5f;
29
-
30
-
31
- /// <summary>
32
- ///
33
- /// </summary>
34
- /// <param name="textBox"></param>
35
- /// <param name="line"></param>
36
- public abstract void DisplayText(TMP_Text textBox, Line line);
37
-
38
- /// <summary>
39
- ///
40
- /// </summary>
41
- /// <param name="speed"></param>
42
- public virtual void SetTextDisplaySpeed(float speed) => textDisplaySpeed = speed;
43
-
44
- /// <summary>
45
- ///
46
- /// </summary>
47
- /// <param name="waitingForClick"></param>
48
- public virtual void SetWaitingForClick(bool waitingForClick) => isWaitingForClick = waitingForClick;
49
-
50
- /// <summary>
51
- ///
52
- /// </summary>
53
- /// <returns></returns>
54
- public virtual bool IsWaitingForClick() => isWaitingForClick;
55
-
56
-
57
- /// <summary>
58
- ///
59
- /// </summary>
60
- /// <param name="preparedText"></param>
61
- public virtual void ResolveDisplayingText(string preparedText)
62
- {
63
- if (box != null)
64
- PasteFinalDisplayText(preparedText);
65
-
66
- SetWaitingForClick(false);
67
- }
68
-
69
- /// <summary>
70
- ///
71
- /// </summary>
72
- /// <param name="text"></param>
73
- protected virtual void PasteFinalDisplayText(string text)
74
- {
75
- box.text = text;
76
-
77
- box.maxVisibleCharacters = int.MaxValue;
78
- }
79
-
80
- /// <summary>
81
- ///
82
- /// </summary>
83
- /// <returns></returns>
84
- public virtual string GetText() => box != null ? box.text : "";
85
-
86
-
87
- /// <inheritdoc/>
88
- public abstract bool ShouldProcess(Line currentLine);
89
-
90
-
91
- /// <inheritdoc/>
92
- public virtual void ToTitleScreen() => ClearText();
93
-
94
- /// <summary>
95
- ///
96
- /// </summary>
97
- public virtual void ClearText()
98
- {
99
- if (box != null)
100
- {
101
- box.maxVisibleCharacters = 0;
102
-
103
- box.text = "";
104
- }
105
- }
106
- }
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.Services;
5
+ using TMPro;
6
+ using UnityEngine;
7
+
8
+ namespace DREditor.TextDisplaying
9
+ {
10
+ /// <summary>
11
+ ///
12
+ /// </summary>
13
+ public abstract class TextDisplayerBase : MonoBehaviour, IToTitleScreen, ILineRoutine
14
+ {
15
+ /// <summary>
16
+ ///
17
+ /// </summary>
18
+ protected TMP_Text box = null;
19
+
20
+ /// <summary>
21
+ ///
22
+ /// </summary>
23
+ protected bool isWaitingForClick = false;
24
+
25
+ /// <summary>
26
+ ///
27
+ /// </summary>
28
+ protected float textDisplaySpeed = 3.5f;
29
+
30
+
31
+ /// <summary>
32
+ ///
33
+ /// </summary>
34
+ /// <param name="textBox"></param>
35
+ /// <param name="line"></param>
36
+ public abstract void DisplayText(TMP_Text textBox, Line line);
37
+
38
+ /// <summary>
39
+ ///
40
+ /// </summary>
41
+ /// <param name="speed"></param>
42
+ public virtual void SetTextDisplaySpeed(float speed) => textDisplaySpeed = speed;
43
+
44
+ /// <summary>
45
+ ///
46
+ /// </summary>
47
+ /// <param name="waitingForClick"></param>
48
+ public virtual void SetWaitingForClick(bool waitingForClick) => isWaitingForClick = waitingForClick;
49
+
50
+ /// <summary>
51
+ ///
52
+ /// </summary>
53
+ /// <returns></returns>
54
+ public virtual bool IsWaitingForClick() => isWaitingForClick;
55
+
56
+
57
+ /// <summary>
58
+ ///
59
+ /// </summary>
60
+ /// <param name="preparedText"></param>
61
+ public virtual void ResolveDisplayingText(string preparedText)
62
+ {
63
+ if (box != null)
64
+ PasteFinalDisplayText(preparedText);
65
+
66
+ SetWaitingForClick(false);
67
+ }
68
+
69
+ /// <summary>
70
+ ///
71
+ /// </summary>
72
+ /// <param name="text"></param>
73
+ protected virtual void PasteFinalDisplayText(string text)
74
+ {
75
+ box.text = text;
76
+
77
+ box.maxVisibleCharacters = int.MaxValue;
78
+ }
79
+
80
+ /// <summary>
81
+ ///
82
+ /// </summary>
83
+ /// <returns></returns>
84
+ public virtual string GetText() => box != null ? box.text : "";
85
+
86
+
87
+ /// <inheritdoc/>
88
+ public abstract bool ShouldProcess(Line currentLine);
89
+
90
+
91
+ /// <inheritdoc/>
92
+ public virtual void ToTitleScreen() => ClearText();
93
+
94
+ /// <summary>
95
+ ///
96
+ /// </summary>
97
+ public virtual void ClearText()
98
+ {
99
+ if (box != null)
100
+ {
101
+ box.maxVisibleCharacters = 0;
102
+
103
+ box.text = "";
104
+ }
105
+ }
106
+ }
107
107
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 4f37c1aefb8d3e2478ad8af57a248552
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: 4f37c1aefb8d3e2478ad8af57a248552
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.textdisplaying",
3
- "version": "0.1.6",
4
- "displayName": "DREditor Text Displaying",
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
- "com.unity.inputsystem": "1.19.0",
9
- "com.unity.ugui": "2.0.0",
10
- "net.dreditor.core": "0.1.6",
11
- "net.dreditor.input": "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.textdisplaying",
3
+ "version": "0.1.8",
4
+ "displayName": "DREditor Text Displaying",
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
+ "com.unity.inputsystem": "1.19.0",
9
+ "com.unity.ugui": "2.0.0",
10
+ "net.dreditor.core": "0.1.8",
11
+ "net.dreditor.input": "0.1.8"
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": "416b18f937fb917bf3f595362a1082ed97457744"
41
+ }
42
+ }
package/package.json.meta CHANGED
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 4a7aa825c8c21c1428c156343b6635ee
3
- TextScriptImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 4a7aa825c8c21c1428c156343b6635ee
3
+ TextScriptImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
package/Samples.meta DELETED
@@ -1,8 +0,0 @@
1
- fileFormatVersion: 2
2
- guid: 2816db62fd2982d45b6ad1b806f20ac6
3
- folderAsset: yes
4
- DefaultImporter:
5
- externalObjects: {}
6
- userData:
7
- assetBundleName:
8
- assetBundleVariant: