net.dreditor.minigames.bs 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 (32) hide show
  1. package/.attestation.p7m +0 -0
  2. package/BlackenedManager.cs +427 -427
  3. package/BlackenedManager.cs.meta +11 -11
  4. package/BlackenedManagerBase.cs +162 -162
  5. package/BlackenedManagerBase.cs.meta +11 -11
  6. package/BlackenedNameScroller.cs +89 -89
  7. package/BlackenedNameScroller.cs.meta +11 -11
  8. package/BlackenedSelectBuilder.cs +30 -30
  9. package/BlackenedSelectBuilder.cs.meta +11 -11
  10. package/BlackenedSelectBuilderEditor.cs +264 -264
  11. package/BlackenedSelectBuilderEditor.cs.meta +11 -11
  12. package/BlackenedSelectData.cs +52 -52
  13. package/BlackenedSelectData.cs.meta +11 -11
  14. package/ColoredNameScoller.cs +151 -151
  15. package/ColoredNameScoller.cs.meta +11 -11
  16. package/DREditor.Minigames.BS.asmdef +21 -21
  17. package/DREditor.Minigames.BS.asmdef.meta +7 -7
  18. package/{Samples → Samples~}/BS_Main_UI_Group_Shell.prefab +57 -57
  19. package/{Samples → Samples~}/BS_Main_UI_Group_Shell.prefab.meta +7 -7
  20. package/{Samples → Samples~}/BS_Main_UI_Group_Template.prefab +488 -488
  21. package/{Samples → Samples~}/BS_Main_UI_Group_Template.prefab.meta +7 -7
  22. package/{Samples → Samples~}/BS_Manager_Shell.prefab +119 -119
  23. package/{Samples → Samples~}/BS_Manager_Shell.prefab.meta +7 -7
  24. package/{Samples → Samples~}/BS_Manager_Template.prefab +367 -367
  25. package/{Samples → Samples~}/BS_Manager_Template.prefab.meta +7 -7
  26. package/{Samples → Samples~}/Blackened_Select_Canvas_Shell.prefab +144 -144
  27. package/{Samples → Samples~}/Blackened_Select_Canvas_Shell.prefab.meta +7 -7
  28. package/{Samples → Samples~}/Blackened_Select_Canvas_Template.prefab +495 -495
  29. package/{Samples → Samples~}/Blackened_Select_Canvas_Template.prefab.meta +7 -7
  30. package/package.json +43 -38
  31. package/package.json.meta +7 -7
  32. package/Samples.meta +0 -8
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: faec79e4bae7a9b4ea1f38eaf4d971cc
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: faec79e4bae7a9b4ea1f38eaf4d971cc
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,152 +1,152 @@
1
- //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
- #if DOTWEEN
3
- using DG.Tweening;
4
- #endif
5
- using System.Collections;
6
- using System.Collections.Generic;
7
- using UnityEngine;
8
- using UnityEngine.UI;
9
-
10
- namespace DREditor.Minigames.BS
11
- {
12
- /// <summary>
13
- ///
14
- /// </summary>
15
- /// <remarks>
16
- ///
17
- /// </remarks>
18
- [ClassHeader(nameof(BlackenedNameScroller) +
19
- "\n\n")]
20
- public class ColoredNameScoller : BlackenedNameScroller
21
- {
22
- /// <summary>
23
- ///
24
- /// </summary>
25
- [Header("")]
26
- [Divider]
27
- [Tooltip("")]
28
- [SerializeField] protected bool useDefaultProcess = false;
29
-
30
- /// <summary>
31
- ///
32
- /// </summary>
33
- [Tooltip("")]
34
- [SerializeField] protected Image fillImage = null;
35
-
36
- /// <summary>
37
- ///
38
- /// </summary>
39
- [Tooltip("")]
40
- [SerializeField] protected float xOffset = 50;
41
-
42
- /// <summary>
43
- ///
44
- /// </summary>
45
- [Tooltip("")]
46
- [SerializeField] protected float xMoveDuration = 0.5f;
47
-
48
- /// <summary>
49
- ///
50
- /// </summary>
51
- [Tooltip("")]
52
- [SerializeField] protected float fillImageDuration = 0.5f;
53
-
54
- /// <summary>
55
- ///
56
- /// </summary>
57
- [Tooltip("")]
58
- [SerializeField] protected float textFadeDuration = 0.25f;
59
-
60
- /// <summary>
61
- ///
62
- /// </summary>
63
- [Tooltip("")]
64
- [SerializeField] protected List<Color> colors = new();
65
-
66
-
67
- /// <inheritdoc/>
68
- public override void Animate()
69
- {
70
- if (useDefaultProcess)
71
- base.Animate();
72
- else
73
- StartCoroutine(AnimateTextRoutine());
74
- }
75
-
76
- /// <summary>
77
- ///
78
- /// </summary>
79
- /// <returns></returns>
80
- protected virtual IEnumerator AnimateTextRoutine()
81
- {
82
- yield return HideTextRoutine();
83
-
84
- DisplayCharacterName();
85
-
86
- yield return ShowTextRoutine();
87
- }
88
-
89
- /// <summary>
90
- ///
91
- /// </summary>
92
- /// <returns></returns>
93
- protected virtual IEnumerator HideTextRoutine()
94
- {
95
- #if DOTWEEN
96
- if (fillImage != null)
97
- fillImage.DOFillAmount(0, fillImageDuration);
98
-
99
- nameText.rectTransform.DOMoveX(defaultPosition.x - xOffset, xMoveDuration);
100
-
101
- nameText.DOFade(0, textFadeDuration);
102
-
103
- yield return new WaitForSeconds(textFadeDuration);
104
-
105
- nameText.rectTransform.DOMoveX(defaultPosition.x + xOffset, 0);
106
- #endif
107
- yield return new WaitForEndOfFrame();
108
- }
109
-
110
- /// <summary>
111
- ///
112
- /// </summary>
113
- /// <returns></returns>
114
- protected virtual IEnumerator ShowTextRoutine()
115
- {
116
- #if DOTWEEN
117
- nameText.rectTransform.DOMoveX(defaultPosition.x, xMoveDuration);
118
-
119
- if (fillImage != null)
120
- fillImage.DOFillAmount(1, fillImageDuration);
121
-
122
- nameText.DOFade(1, textFadeDuration);
123
- #endif
124
- yield break;
125
- }
126
-
127
-
128
- /// <inheritdoc/>
129
- protected override void DisplayCharacterName()
130
- {
131
- base.DisplayCharacterName();
132
-
133
- if (seatPosition < colors.Count)
134
- SetColorOfFirstCharacter(colors[seatPosition]);
135
- }
136
-
137
- /// <summary>
138
- ///
139
- /// </summary>
140
- /// <param name="color"></param>
141
- protected virtual void SetColorOfFirstCharacter(Color color)
142
- {
143
- string hexString = ColorUtility.ToHtmlStringRGB(color);
144
-
145
- char firstLetter = nameText.text[0];
146
-
147
- string coloredLetter = "<color=#" + hexString + ">" + firstLetter.ToString() + "</color>";
148
-
149
- nameText.text = coloredLetter + nameText.text[1..];
150
- }
151
- }
1
+ //Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
2
+ #if DOTWEEN
3
+ using DG.Tweening;
4
+ #endif
5
+ using System.Collections;
6
+ using System.Collections.Generic;
7
+ using UnityEngine;
8
+ using UnityEngine.UI;
9
+
10
+ namespace DREditor.Minigames.BS
11
+ {
12
+ /// <summary>
13
+ ///
14
+ /// </summary>
15
+ /// <remarks>
16
+ ///
17
+ /// </remarks>
18
+ [ClassHeader(nameof(BlackenedNameScroller) +
19
+ "\n\n")]
20
+ public class ColoredNameScoller : BlackenedNameScroller
21
+ {
22
+ /// <summary>
23
+ ///
24
+ /// </summary>
25
+ [Header("")]
26
+ [Divider]
27
+ [Tooltip("")]
28
+ [SerializeField] protected bool useDefaultProcess = false;
29
+
30
+ /// <summary>
31
+ ///
32
+ /// </summary>
33
+ [Tooltip("")]
34
+ [SerializeField] protected Image fillImage = null;
35
+
36
+ /// <summary>
37
+ ///
38
+ /// </summary>
39
+ [Tooltip("")]
40
+ [SerializeField] protected float xOffset = 50;
41
+
42
+ /// <summary>
43
+ ///
44
+ /// </summary>
45
+ [Tooltip("")]
46
+ [SerializeField] protected float xMoveDuration = 0.5f;
47
+
48
+ /// <summary>
49
+ ///
50
+ /// </summary>
51
+ [Tooltip("")]
52
+ [SerializeField] protected float fillImageDuration = 0.5f;
53
+
54
+ /// <summary>
55
+ ///
56
+ /// </summary>
57
+ [Tooltip("")]
58
+ [SerializeField] protected float textFadeDuration = 0.25f;
59
+
60
+ /// <summary>
61
+ ///
62
+ /// </summary>
63
+ [Tooltip("")]
64
+ [SerializeField] protected List<Color> colors = new();
65
+
66
+
67
+ /// <inheritdoc/>
68
+ public override void Animate()
69
+ {
70
+ if (useDefaultProcess)
71
+ base.Animate();
72
+ else
73
+ StartCoroutine(AnimateTextRoutine());
74
+ }
75
+
76
+ /// <summary>
77
+ ///
78
+ /// </summary>
79
+ /// <returns></returns>
80
+ protected virtual IEnumerator AnimateTextRoutine()
81
+ {
82
+ yield return HideTextRoutine();
83
+
84
+ DisplayCharacterName();
85
+
86
+ yield return ShowTextRoutine();
87
+ }
88
+
89
+ /// <summary>
90
+ ///
91
+ /// </summary>
92
+ /// <returns></returns>
93
+ protected virtual IEnumerator HideTextRoutine()
94
+ {
95
+ #if DOTWEEN
96
+ if (fillImage != null)
97
+ fillImage.DOFillAmount(0, fillImageDuration);
98
+
99
+ nameText.rectTransform.DOMoveX(defaultPosition.x - xOffset, xMoveDuration);
100
+
101
+ nameText.DOFade(0, textFadeDuration);
102
+
103
+ yield return new WaitForSeconds(textFadeDuration);
104
+
105
+ nameText.rectTransform.DOMoveX(defaultPosition.x + xOffset, 0);
106
+ #endif
107
+ yield return new WaitForEndOfFrame();
108
+ }
109
+
110
+ /// <summary>
111
+ ///
112
+ /// </summary>
113
+ /// <returns></returns>
114
+ protected virtual IEnumerator ShowTextRoutine()
115
+ {
116
+ #if DOTWEEN
117
+ nameText.rectTransform.DOMoveX(defaultPosition.x, xMoveDuration);
118
+
119
+ if (fillImage != null)
120
+ fillImage.DOFillAmount(1, fillImageDuration);
121
+
122
+ nameText.DOFade(1, textFadeDuration);
123
+ #endif
124
+ yield break;
125
+ }
126
+
127
+
128
+ /// <inheritdoc/>
129
+ protected override void DisplayCharacterName()
130
+ {
131
+ base.DisplayCharacterName();
132
+
133
+ if (seatPosition < colors.Count)
134
+ SetColorOfFirstCharacter(colors[seatPosition]);
135
+ }
136
+
137
+ /// <summary>
138
+ ///
139
+ /// </summary>
140
+ /// <param name="color"></param>
141
+ protected virtual void SetColorOfFirstCharacter(Color color)
142
+ {
143
+ string hexString = ColorUtility.ToHtmlStringRGB(color);
144
+
145
+ char firstLetter = nameText.text[0];
146
+
147
+ string coloredLetter = "<color=#" + hexString + ">" + firstLetter.ToString() + "</color>";
148
+
149
+ nameText.text = coloredLetter + nameText.text[1..];
150
+ }
151
+ }
152
152
  }
@@ -1,11 +1,11 @@
1
- fileFormatVersion: 2
2
- guid: 45cfe48a86dd0ea478c8287cd094bb22
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: 45cfe48a86dd0ea478c8287cd094bb22
3
+ MonoImporter:
4
+ externalObjects: {}
5
+ serializedVersion: 2
6
+ defaultReferences: []
7
+ executionOrder: 0
8
+ icon: {instanceID: 0}
9
+ userData:
10
+ assetBundleName:
11
+ assetBundleVariant:
@@ -1,22 +1,22 @@
1
- {
2
- "name": "DREditor.Minigames.BS",
3
- "rootNamespace": "",
4
- "references": [
5
- "Unity.InputSystem",
6
- "Unity.TextMeshPro",
7
- "DG.Tweening",
8
- "DREditor",
9
- "DREditor.Editor",
10
- "DREditor.UIHandling",
11
- "DREditor.Minigames"
12
- ],
13
- "includePlatforms": [],
14
- "excludePlatforms": [],
15
- "allowUnsafeCode": false,
16
- "overrideReferences": false,
17
- "precompiledReferences": [],
18
- "autoReferenced": true,
19
- "defineConstraints": [],
20
- "versionDefines": [],
21
- "noEngineReferences": false
1
+ {
2
+ "name": "DREditor.Minigames.BS",
3
+ "rootNamespace": "",
4
+ "references": [
5
+ "Unity.InputSystem",
6
+ "Unity.TextMeshPro",
7
+ "DG.Tweening",
8
+ "DREditor",
9
+ "DREditor.Editor",
10
+ "DREditor.UIHandling",
11
+ "DREditor.Minigames"
12
+ ],
13
+ "includePlatforms": [],
14
+ "excludePlatforms": [],
15
+ "allowUnsafeCode": false,
16
+ "overrideReferences": false,
17
+ "precompiledReferences": [],
18
+ "autoReferenced": true,
19
+ "defineConstraints": [],
20
+ "versionDefines": [],
21
+ "noEngineReferences": false
22
22
  }
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: 40ca7ec104f2f87488b52b77ad58eeed
3
- AssemblyDefinitionImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: 40ca7ec104f2f87488b52b77ad58eeed
3
+ AssemblyDefinitionImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant:
@@ -1,57 +1,57 @@
1
- %YAML 1.1
2
- %TAG !u! tag:unity3d.com,2011:
3
- --- !u!1 &5668346711814862858
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: 6629023225337462445}
12
- - component: {fileID: 4945918633044341884}
13
- m_Layer: 5
14
- m_Name: BS_Main_UI_Group_Shell
15
- m_TagString: Untagged
16
- m_Icon: {fileID: 0}
17
- m_NavMeshLayer: 0
18
- m_StaticEditorFlags: 0
19
- m_IsActive: 1
20
- --- !u!224 &6629023225337462445
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: 5668346711814862858}
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 &4945918633044341884
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: 5668346711814862858}
47
- m_Enabled: 1
48
- m_EditorHideFlags: 0
49
- m_Script: {fileID: 11500000, guid: f5a06d60636d0eb4e9fafb7f44e70613, type: 3}
50
- m_Name:
51
- m_EditorClassIdentifier:
52
- animator: {fileID: 0}
53
- showStateName: BS_Select
54
- hideStateName: BS_Select
55
- animatorLayer: 0
56
- rebindOnTitleScreen: 0
57
- hideOnTitleScreen: 0
1
+ %YAML 1.1
2
+ %TAG !u! tag:unity3d.com,2011:
3
+ --- !u!1 &5668346711814862858
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: 6629023225337462445}
12
+ - component: {fileID: 4945918633044341884}
13
+ m_Layer: 5
14
+ m_Name: BS_Main_UI_Group_Shell
15
+ m_TagString: Untagged
16
+ m_Icon: {fileID: 0}
17
+ m_NavMeshLayer: 0
18
+ m_StaticEditorFlags: 0
19
+ m_IsActive: 1
20
+ --- !u!224 &6629023225337462445
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: 5668346711814862858}
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 &4945918633044341884
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: 5668346711814862858}
47
+ m_Enabled: 1
48
+ m_EditorHideFlags: 0
49
+ m_Script: {fileID: 11500000, guid: f5a06d60636d0eb4e9fafb7f44e70613, type: 3}
50
+ m_Name:
51
+ m_EditorClassIdentifier:
52
+ animator: {fileID: 0}
53
+ showStateName: BS_Select
54
+ hideStateName: BS_Select
55
+ animatorLayer: 0
56
+ rebindOnTitleScreen: 0
57
+ hideOnTitleScreen: 0
@@ -1,7 +1,7 @@
1
- fileFormatVersion: 2
2
- guid: e9fab0f6d6f4ae04e8310cf064479392
3
- PrefabImporter:
4
- externalObjects: {}
5
- userData:
6
- assetBundleName:
7
- assetBundleVariant:
1
+ fileFormatVersion: 2
2
+ guid: e9fab0f6d6f4ae04e8310cf064479392
3
+ PrefabImporter:
4
+ externalObjects: {}
5
+ userData:
6
+ assetBundleName:
7
+ assetBundleVariant: