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.
- package/.attestation.p7m +0 -0
- package/BlackenedManager.cs +427 -427
- package/BlackenedManager.cs.meta +11 -11
- package/BlackenedManagerBase.cs +162 -162
- package/BlackenedManagerBase.cs.meta +11 -11
- package/BlackenedNameScroller.cs +89 -89
- package/BlackenedNameScroller.cs.meta +11 -11
- package/BlackenedSelectBuilder.cs +30 -30
- package/BlackenedSelectBuilder.cs.meta +11 -11
- package/BlackenedSelectBuilderEditor.cs +264 -264
- package/BlackenedSelectBuilderEditor.cs.meta +11 -11
- package/BlackenedSelectData.cs +52 -52
- package/BlackenedSelectData.cs.meta +11 -11
- package/ColoredNameScoller.cs +151 -151
- package/ColoredNameScoller.cs.meta +11 -11
- package/DREditor.Minigames.BS.asmdef +21 -21
- package/DREditor.Minigames.BS.asmdef.meta +7 -7
- package/{Samples → Samples~}/BS_Main_UI_Group_Shell.prefab +57 -57
- package/{Samples → Samples~}/BS_Main_UI_Group_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/BS_Main_UI_Group_Template.prefab +488 -488
- package/{Samples → Samples~}/BS_Main_UI_Group_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/BS_Manager_Shell.prefab +119 -119
- package/{Samples → Samples~}/BS_Manager_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/BS_Manager_Template.prefab +367 -367
- package/{Samples → Samples~}/BS_Manager_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Blackened_Select_Canvas_Shell.prefab +144 -144
- package/{Samples → Samples~}/Blackened_Select_Canvas_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Blackened_Select_Canvas_Template.prefab +495 -495
- package/{Samples → Samples~}/Blackened_Select_Canvas_Template.prefab.meta +7 -7
- package/package.json +43 -38
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
|
@@ -1,265 +1,265 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if UNITY_EDITOR
|
|
3
|
-
using DREditor.Characters;
|
|
4
|
-
using DREditor.Dialogues;
|
|
5
|
-
using DREditor.Editor.Utility;
|
|
6
|
-
using System.Collections.Generic;
|
|
7
|
-
using UnityEditor;
|
|
8
|
-
using UnityEngine;
|
|
9
|
-
using Horizontal = UnityEditor.EditorGUILayout.HorizontalScope;
|
|
10
|
-
|
|
11
|
-
namespace DREditor.Minigames.BS
|
|
12
|
-
{
|
|
13
|
-
/// <summary>
|
|
14
|
-
///
|
|
15
|
-
/// </summary>
|
|
16
|
-
[CustomEditor(typeof(BlackenedSelectBuilder))]
|
|
17
|
-
public class BlackenedSelectBuilderEditor : TimedMinigameEditor<BlackenedSelectBuilder>
|
|
18
|
-
{
|
|
19
|
-
/// <summary>
|
|
20
|
-
///
|
|
21
|
-
/// </summary>
|
|
22
|
-
protected CharacterDatabase characterDatabase = null;
|
|
23
|
-
|
|
24
|
-
/// <summary>
|
|
25
|
-
///
|
|
26
|
-
/// </summary>
|
|
27
|
-
protected TrialDialogue globalFuckUpDialogue = null;
|
|
28
|
-
|
|
29
|
-
/// <summary>
|
|
30
|
-
///
|
|
31
|
-
/// </summary>
|
|
32
|
-
protected int[] characterIndexes;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
/// <inheritdoc/>
|
|
36
|
-
public override void OnInspectorGUI()
|
|
37
|
-
{
|
|
38
|
-
serializedObject.Update();
|
|
39
|
-
|
|
40
|
-
CreateForm();
|
|
41
|
-
|
|
42
|
-
EditorUtility.SetDirty(builder);
|
|
43
|
-
|
|
44
|
-
serializedObject.ApplyModifiedProperties();
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/// <summary>
|
|
48
|
-
///
|
|
49
|
-
/// </summary>
|
|
50
|
-
protected virtual void CreateForm()
|
|
51
|
-
{
|
|
52
|
-
if (!Initialized())
|
|
53
|
-
return;
|
|
54
|
-
|
|
55
|
-
DisplayUtilityButtons();
|
|
56
|
-
|
|
57
|
-
DisplayTimerSettings();
|
|
58
|
-
|
|
59
|
-
DisplayQuestionText();
|
|
60
|
-
|
|
61
|
-
DisplayGlobalFuckUpDialogue();
|
|
62
|
-
|
|
63
|
-
DisplayBlackenedDatas();
|
|
64
|
-
|
|
65
|
-
DisplayAddCharacterButton();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/// <summary>
|
|
69
|
-
///
|
|
70
|
-
/// </summary>
|
|
71
|
-
/// <returns></returns>
|
|
72
|
-
protected virtual bool Initialized()
|
|
73
|
-
{
|
|
74
|
-
if (!DatabaseUtility.InitializeDatabase(characterDatabase, out characterDatabase))
|
|
75
|
-
return false;
|
|
76
|
-
|
|
77
|
-
characterIndexes ??= characterDatabase.GetInts().ToArray();
|
|
78
|
-
|
|
79
|
-
return true;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/// <summary>
|
|
83
|
-
///
|
|
84
|
-
/// </summary>
|
|
85
|
-
protected virtual void DisplayUtilityButtons()
|
|
86
|
-
{
|
|
87
|
-
if (GUILayout.Button("Generate Base Characters", GUILayout.Width(200)) &&
|
|
88
|
-
EditorUtility.DisplayDialog("Generate Base",
|
|
89
|
-
"Are you sure you want to generate data? This will clear the current data!",
|
|
90
|
-
"Yes", "No"))
|
|
91
|
-
GenerateBuilderBase();
|
|
92
|
-
|
|
93
|
-
if (GUILayout.Button("Clear Data", GUILayout.Width(200)) &&
|
|
94
|
-
EditorUtility.DisplayDialog("Clear Data",
|
|
95
|
-
"Are you sure you want to clear the current data?",
|
|
96
|
-
"Yes", "No"))
|
|
97
|
-
builder.selectDatas.Clear();
|
|
98
|
-
|
|
99
|
-
GUILayout.Space(20);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/// <summary>
|
|
103
|
-
///
|
|
104
|
-
/// </summary>
|
|
105
|
-
protected virtual void GenerateBuilderBase()
|
|
106
|
-
{
|
|
107
|
-
List<Character> characters = characterDatabase.GetFTECharacterList();
|
|
108
|
-
|
|
109
|
-
builder.selectDatas.Clear();
|
|
110
|
-
|
|
111
|
-
foreach (Character character in characters)
|
|
112
|
-
builder.selectDatas.Add(new BlackenedSelectData(character.FirstName));
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/// <summary>
|
|
116
|
-
///
|
|
117
|
-
/// </summary>
|
|
118
|
-
protected virtual void DisplayTimerSettings()
|
|
119
|
-
{
|
|
120
|
-
builder.SetDifficultyTimes(TimerDifficultyEditor.DisplaySettings(builder.times));
|
|
121
|
-
|
|
122
|
-
GUILayout.Space(10);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/// <summary>
|
|
126
|
-
///
|
|
127
|
-
/// </summary>
|
|
128
|
-
protected virtual void DisplayQuestionText()
|
|
129
|
-
{
|
|
130
|
-
builder.SetQuestionText(HandyFields.StringArea("Question: ", builder.questionText));
|
|
131
|
-
|
|
132
|
-
GUILayout.Space(20);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
/// <summary>
|
|
136
|
-
///
|
|
137
|
-
/// </summary>
|
|
138
|
-
protected virtual void DisplayGlobalFuckUpDialogue()
|
|
139
|
-
{
|
|
140
|
-
using (new Horizontal())
|
|
141
|
-
{
|
|
142
|
-
EditorGUILayout.LabelField("Apply Mistake Dialogue: ", GUILayout.Width(150));
|
|
143
|
-
|
|
144
|
-
if (GUILayout.Button("Apply") &&
|
|
145
|
-
EditorUtility.DisplayDialog("Apply Mistakes",
|
|
146
|
-
"Are you sure you want to apply this dialogue to all mistake fields?", "Yes", "No"))
|
|
147
|
-
foreach (var data in builder.selectDatas)
|
|
148
|
-
data.SetFuckUpDialogue(globalFuckUpDialogue);
|
|
149
|
-
|
|
150
|
-
globalFuckUpDialogue = HandyFields.UnityField(globalFuckUpDialogue, 150, 20);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
GUILayout.Space(40);
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
/// <summary>
|
|
157
|
-
///
|
|
158
|
-
/// </summary>
|
|
159
|
-
protected virtual void DisplayBlackenedDatas()
|
|
160
|
-
{
|
|
161
|
-
for (int i = 0; i < builder.selectDatas.Count; i++)
|
|
162
|
-
if (!DisplayBlackenedData(i))
|
|
163
|
-
continue;
|
|
164
|
-
|
|
165
|
-
GUILayout.Space(10);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/// <summary>
|
|
169
|
-
///
|
|
170
|
-
/// </summary>
|
|
171
|
-
/// <param name="i"></param>
|
|
172
|
-
/// <returns></returns>
|
|
173
|
-
protected virtual bool DisplayBlackenedData(int i)
|
|
174
|
-
{
|
|
175
|
-
using (new EditorGUILayout.VerticalScope("box"))
|
|
176
|
-
{
|
|
177
|
-
using (new Horizontal())
|
|
178
|
-
{
|
|
179
|
-
DisplayCharacterPopUp(i);
|
|
180
|
-
|
|
181
|
-
if (GUILayout.Button("X", GUILayout.Width(20)))
|
|
182
|
-
{
|
|
183
|
-
builder.selectDatas.RemoveAt(i);
|
|
184
|
-
|
|
185
|
-
return false;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
DisplayAnswerField(i);
|
|
190
|
-
|
|
191
|
-
DisplayFuckUpDialogue(i);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
return true;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/// <summary>
|
|
198
|
-
///
|
|
199
|
-
/// </summary>
|
|
200
|
-
/// <param name="i"></param>
|
|
201
|
-
protected virtual void DisplayCharacterPopUp(int i)
|
|
202
|
-
{
|
|
203
|
-
BlackenedSelectData data = builder.selectDatas[i];
|
|
204
|
-
|
|
205
|
-
int index = 0;
|
|
206
|
-
|
|
207
|
-
if (characterDatabase.GetCharacter(data.characterName) is var character && character != null)
|
|
208
|
-
index = characterDatabase.Characters.IndexOf(character);
|
|
209
|
-
|
|
210
|
-
index = EditorGUILayout.IntPopup(index, characterDatabase.GetNames().ToArray(),
|
|
211
|
-
characterIndexes, GUILayout.Width(110));
|
|
212
|
-
|
|
213
|
-
data.SetCharacterName(characterDatabase.Characters[index].FirstName);
|
|
214
|
-
|
|
215
|
-
GUILayout.Space(50);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/// <summary>
|
|
219
|
-
///
|
|
220
|
-
/// </summary>
|
|
221
|
-
/// <param name="i"></param>
|
|
222
|
-
protected virtual void DisplayAnswerField(int i)
|
|
223
|
-
{
|
|
224
|
-
BlackenedSelectData data = builder.selectDatas[i];
|
|
225
|
-
|
|
226
|
-
using (new Horizontal())
|
|
227
|
-
{
|
|
228
|
-
data.SetIsAnswer(HandyFields.Option(data.isAnswer, "Is Answer: "));
|
|
229
|
-
|
|
230
|
-
GUILayout.Space(10);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/// <summary>
|
|
235
|
-
///
|
|
236
|
-
/// </summary>
|
|
237
|
-
/// <param name="i"></param>
|
|
238
|
-
protected virtual void DisplayFuckUpDialogue(int i)
|
|
239
|
-
{
|
|
240
|
-
BlackenedSelectData data = builder.selectDatas[i];
|
|
241
|
-
|
|
242
|
-
using (new Horizontal())
|
|
243
|
-
{
|
|
244
|
-
if (!data.isAnswer)
|
|
245
|
-
{
|
|
246
|
-
EditorGUILayout.LabelField("Fuck Up Dialogue: ", GUILayout.Width(110));
|
|
247
|
-
|
|
248
|
-
data.SetFuckUpDialogue(HandyFields.UnityField(data.fuckUpDialogue, 150, 20));
|
|
249
|
-
}
|
|
250
|
-
else
|
|
251
|
-
data.SetFuckUpDialogue(null);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
/// <summary>
|
|
256
|
-
///
|
|
257
|
-
/// </summary>
|
|
258
|
-
protected virtual void DisplayAddCharacterButton()
|
|
259
|
-
{
|
|
260
|
-
if (GUILayout.Button("Add Character", GUILayout.Width(100)))
|
|
261
|
-
builder.selectDatas.Add(new BlackenedSelectData());
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if UNITY_EDITOR
|
|
3
|
+
using DREditor.Characters;
|
|
4
|
+
using DREditor.Dialogues;
|
|
5
|
+
using DREditor.Editor.Utility;
|
|
6
|
+
using System.Collections.Generic;
|
|
7
|
+
using UnityEditor;
|
|
8
|
+
using UnityEngine;
|
|
9
|
+
using Horizontal = UnityEditor.EditorGUILayout.HorizontalScope;
|
|
10
|
+
|
|
11
|
+
namespace DREditor.Minigames.BS
|
|
12
|
+
{
|
|
13
|
+
/// <summary>
|
|
14
|
+
///
|
|
15
|
+
/// </summary>
|
|
16
|
+
[CustomEditor(typeof(BlackenedSelectBuilder))]
|
|
17
|
+
public class BlackenedSelectBuilderEditor : TimedMinigameEditor<BlackenedSelectBuilder>
|
|
18
|
+
{
|
|
19
|
+
/// <summary>
|
|
20
|
+
///
|
|
21
|
+
/// </summary>
|
|
22
|
+
protected CharacterDatabase characterDatabase = null;
|
|
23
|
+
|
|
24
|
+
/// <summary>
|
|
25
|
+
///
|
|
26
|
+
/// </summary>
|
|
27
|
+
protected TrialDialogue globalFuckUpDialogue = null;
|
|
28
|
+
|
|
29
|
+
/// <summary>
|
|
30
|
+
///
|
|
31
|
+
/// </summary>
|
|
32
|
+
protected int[] characterIndexes;
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
/// <inheritdoc/>
|
|
36
|
+
public override void OnInspectorGUI()
|
|
37
|
+
{
|
|
38
|
+
serializedObject.Update();
|
|
39
|
+
|
|
40
|
+
CreateForm();
|
|
41
|
+
|
|
42
|
+
EditorUtility.SetDirty(builder);
|
|
43
|
+
|
|
44
|
+
serializedObject.ApplyModifiedProperties();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/// <summary>
|
|
48
|
+
///
|
|
49
|
+
/// </summary>
|
|
50
|
+
protected virtual void CreateForm()
|
|
51
|
+
{
|
|
52
|
+
if (!Initialized())
|
|
53
|
+
return;
|
|
54
|
+
|
|
55
|
+
DisplayUtilityButtons();
|
|
56
|
+
|
|
57
|
+
DisplayTimerSettings();
|
|
58
|
+
|
|
59
|
+
DisplayQuestionText();
|
|
60
|
+
|
|
61
|
+
DisplayGlobalFuckUpDialogue();
|
|
62
|
+
|
|
63
|
+
DisplayBlackenedDatas();
|
|
64
|
+
|
|
65
|
+
DisplayAddCharacterButton();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/// <summary>
|
|
69
|
+
///
|
|
70
|
+
/// </summary>
|
|
71
|
+
/// <returns></returns>
|
|
72
|
+
protected virtual bool Initialized()
|
|
73
|
+
{
|
|
74
|
+
if (!DatabaseUtility.InitializeDatabase(characterDatabase, out characterDatabase))
|
|
75
|
+
return false;
|
|
76
|
+
|
|
77
|
+
characterIndexes ??= characterDatabase.GetInts().ToArray();
|
|
78
|
+
|
|
79
|
+
return true;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/// <summary>
|
|
83
|
+
///
|
|
84
|
+
/// </summary>
|
|
85
|
+
protected virtual void DisplayUtilityButtons()
|
|
86
|
+
{
|
|
87
|
+
if (GUILayout.Button("Generate Base Characters", GUILayout.Width(200)) &&
|
|
88
|
+
EditorUtility.DisplayDialog("Generate Base",
|
|
89
|
+
"Are you sure you want to generate data? This will clear the current data!",
|
|
90
|
+
"Yes", "No"))
|
|
91
|
+
GenerateBuilderBase();
|
|
92
|
+
|
|
93
|
+
if (GUILayout.Button("Clear Data", GUILayout.Width(200)) &&
|
|
94
|
+
EditorUtility.DisplayDialog("Clear Data",
|
|
95
|
+
"Are you sure you want to clear the current data?",
|
|
96
|
+
"Yes", "No"))
|
|
97
|
+
builder.selectDatas.Clear();
|
|
98
|
+
|
|
99
|
+
GUILayout.Space(20);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/// <summary>
|
|
103
|
+
///
|
|
104
|
+
/// </summary>
|
|
105
|
+
protected virtual void GenerateBuilderBase()
|
|
106
|
+
{
|
|
107
|
+
List<Character> characters = characterDatabase.GetFTECharacterList();
|
|
108
|
+
|
|
109
|
+
builder.selectDatas.Clear();
|
|
110
|
+
|
|
111
|
+
foreach (Character character in characters)
|
|
112
|
+
builder.selectDatas.Add(new BlackenedSelectData(character.FirstName));
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/// <summary>
|
|
116
|
+
///
|
|
117
|
+
/// </summary>
|
|
118
|
+
protected virtual void DisplayTimerSettings()
|
|
119
|
+
{
|
|
120
|
+
builder.SetDifficultyTimes(TimerDifficultyEditor.DisplaySettings(builder.times));
|
|
121
|
+
|
|
122
|
+
GUILayout.Space(10);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/// <summary>
|
|
126
|
+
///
|
|
127
|
+
/// </summary>
|
|
128
|
+
protected virtual void DisplayQuestionText()
|
|
129
|
+
{
|
|
130
|
+
builder.SetQuestionText(HandyFields.StringArea("Question: ", builder.questionText));
|
|
131
|
+
|
|
132
|
+
GUILayout.Space(20);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/// <summary>
|
|
136
|
+
///
|
|
137
|
+
/// </summary>
|
|
138
|
+
protected virtual void DisplayGlobalFuckUpDialogue()
|
|
139
|
+
{
|
|
140
|
+
using (new Horizontal())
|
|
141
|
+
{
|
|
142
|
+
EditorGUILayout.LabelField("Apply Mistake Dialogue: ", GUILayout.Width(150));
|
|
143
|
+
|
|
144
|
+
if (GUILayout.Button("Apply") &&
|
|
145
|
+
EditorUtility.DisplayDialog("Apply Mistakes",
|
|
146
|
+
"Are you sure you want to apply this dialogue to all mistake fields?", "Yes", "No"))
|
|
147
|
+
foreach (var data in builder.selectDatas)
|
|
148
|
+
data.SetFuckUpDialogue(globalFuckUpDialogue);
|
|
149
|
+
|
|
150
|
+
globalFuckUpDialogue = HandyFields.UnityField(globalFuckUpDialogue, 150, 20);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
GUILayout.Space(40);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/// <summary>
|
|
157
|
+
///
|
|
158
|
+
/// </summary>
|
|
159
|
+
protected virtual void DisplayBlackenedDatas()
|
|
160
|
+
{
|
|
161
|
+
for (int i = 0; i < builder.selectDatas.Count; i++)
|
|
162
|
+
if (!DisplayBlackenedData(i))
|
|
163
|
+
continue;
|
|
164
|
+
|
|
165
|
+
GUILayout.Space(10);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/// <summary>
|
|
169
|
+
///
|
|
170
|
+
/// </summary>
|
|
171
|
+
/// <param name="i"></param>
|
|
172
|
+
/// <returns></returns>
|
|
173
|
+
protected virtual bool DisplayBlackenedData(int i)
|
|
174
|
+
{
|
|
175
|
+
using (new EditorGUILayout.VerticalScope("box"))
|
|
176
|
+
{
|
|
177
|
+
using (new Horizontal())
|
|
178
|
+
{
|
|
179
|
+
DisplayCharacterPopUp(i);
|
|
180
|
+
|
|
181
|
+
if (GUILayout.Button("X", GUILayout.Width(20)))
|
|
182
|
+
{
|
|
183
|
+
builder.selectDatas.RemoveAt(i);
|
|
184
|
+
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
DisplayAnswerField(i);
|
|
190
|
+
|
|
191
|
+
DisplayFuckUpDialogue(i);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return true;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/// <summary>
|
|
198
|
+
///
|
|
199
|
+
/// </summary>
|
|
200
|
+
/// <param name="i"></param>
|
|
201
|
+
protected virtual void DisplayCharacterPopUp(int i)
|
|
202
|
+
{
|
|
203
|
+
BlackenedSelectData data = builder.selectDatas[i];
|
|
204
|
+
|
|
205
|
+
int index = 0;
|
|
206
|
+
|
|
207
|
+
if (characterDatabase.GetCharacter(data.characterName) is var character && character != null)
|
|
208
|
+
index = characterDatabase.Characters.IndexOf(character);
|
|
209
|
+
|
|
210
|
+
index = EditorGUILayout.IntPopup(index, characterDatabase.GetNames().ToArray(),
|
|
211
|
+
characterIndexes, GUILayout.Width(110));
|
|
212
|
+
|
|
213
|
+
data.SetCharacterName(characterDatabase.Characters[index].FirstName);
|
|
214
|
+
|
|
215
|
+
GUILayout.Space(50);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/// <summary>
|
|
219
|
+
///
|
|
220
|
+
/// </summary>
|
|
221
|
+
/// <param name="i"></param>
|
|
222
|
+
protected virtual void DisplayAnswerField(int i)
|
|
223
|
+
{
|
|
224
|
+
BlackenedSelectData data = builder.selectDatas[i];
|
|
225
|
+
|
|
226
|
+
using (new Horizontal())
|
|
227
|
+
{
|
|
228
|
+
data.SetIsAnswer(HandyFields.Option(data.isAnswer, "Is Answer: "));
|
|
229
|
+
|
|
230
|
+
GUILayout.Space(10);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/// <summary>
|
|
235
|
+
///
|
|
236
|
+
/// </summary>
|
|
237
|
+
/// <param name="i"></param>
|
|
238
|
+
protected virtual void DisplayFuckUpDialogue(int i)
|
|
239
|
+
{
|
|
240
|
+
BlackenedSelectData data = builder.selectDatas[i];
|
|
241
|
+
|
|
242
|
+
using (new Horizontal())
|
|
243
|
+
{
|
|
244
|
+
if (!data.isAnswer)
|
|
245
|
+
{
|
|
246
|
+
EditorGUILayout.LabelField("Fuck Up Dialogue: ", GUILayout.Width(110));
|
|
247
|
+
|
|
248
|
+
data.SetFuckUpDialogue(HandyFields.UnityField(data.fuckUpDialogue, 150, 20));
|
|
249
|
+
}
|
|
250
|
+
else
|
|
251
|
+
data.SetFuckUpDialogue(null);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/// <summary>
|
|
256
|
+
///
|
|
257
|
+
/// </summary>
|
|
258
|
+
protected virtual void DisplayAddCharacterButton()
|
|
259
|
+
{
|
|
260
|
+
if (GUILayout.Button("Add Character", GUILayout.Width(100)))
|
|
261
|
+
builder.selectDatas.Add(new BlackenedSelectData());
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
265
|
#endif
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 9c458f80eb8fc2040825144f075f5d02
|
|
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: 9c458f80eb8fc2040825144f075f5d02
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/BlackenedSelectData.cs
CHANGED
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
using DREditor.Dialogues;
|
|
3
|
-
|
|
4
|
-
namespace DREditor.Minigames.BS
|
|
5
|
-
{
|
|
6
|
-
/// <summary>
|
|
7
|
-
///
|
|
8
|
-
/// </summary>
|
|
9
|
-
[System.Serializable]
|
|
10
|
-
public class BlackenedSelectData
|
|
11
|
-
{
|
|
12
|
-
/// <summary>
|
|
13
|
-
///
|
|
14
|
-
/// </summary>
|
|
15
|
-
public string characterName;
|
|
16
|
-
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
public bool isAnswer = false;
|
|
21
|
-
|
|
22
|
-
/// <summary>
|
|
23
|
-
///
|
|
24
|
-
/// </summary>
|
|
25
|
-
public TrialDialogue fuckUpDialogue = null;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
public BlackenedSelectData() { }
|
|
29
|
-
|
|
30
|
-
public BlackenedSelectData(string characterName) => this.characterName = characterName;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/// <summary>
|
|
34
|
-
///
|
|
35
|
-
/// </summary>
|
|
36
|
-
/// <param name="characterName"></param>
|
|
37
|
-
public virtual void SetCharacterName(string characterName) => this.characterName = characterName;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/// <summary>
|
|
41
|
-
///
|
|
42
|
-
/// </summary>
|
|
43
|
-
/// <param name="isAnswer"></param>
|
|
44
|
-
public virtual void SetIsAnswer(bool isAnswer) => this.isAnswer = isAnswer;
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
/// <summary>
|
|
48
|
-
///
|
|
49
|
-
/// </summary>
|
|
50
|
-
/// <param name="fuckUpDialogue"></param>
|
|
51
|
-
public virtual void SetFuckUpDialogue(TrialDialogue fuckUpDialogue) => this.fuckUpDialogue = fuckUpDialogue;
|
|
52
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
using DREditor.Dialogues;
|
|
3
|
+
|
|
4
|
+
namespace DREditor.Minigames.BS
|
|
5
|
+
{
|
|
6
|
+
/// <summary>
|
|
7
|
+
///
|
|
8
|
+
/// </summary>
|
|
9
|
+
[System.Serializable]
|
|
10
|
+
public class BlackenedSelectData
|
|
11
|
+
{
|
|
12
|
+
/// <summary>
|
|
13
|
+
///
|
|
14
|
+
/// </summary>
|
|
15
|
+
public string characterName;
|
|
16
|
+
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
public bool isAnswer = false;
|
|
21
|
+
|
|
22
|
+
/// <summary>
|
|
23
|
+
///
|
|
24
|
+
/// </summary>
|
|
25
|
+
public TrialDialogue fuckUpDialogue = null;
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
public BlackenedSelectData() { }
|
|
29
|
+
|
|
30
|
+
public BlackenedSelectData(string characterName) => this.characterName = characterName;
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
/// <summary>
|
|
34
|
+
///
|
|
35
|
+
/// </summary>
|
|
36
|
+
/// <param name="characterName"></param>
|
|
37
|
+
public virtual void SetCharacterName(string characterName) => this.characterName = characterName;
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
/// <summary>
|
|
41
|
+
///
|
|
42
|
+
/// </summary>
|
|
43
|
+
/// <param name="isAnswer"></param>
|
|
44
|
+
public virtual void SetIsAnswer(bool isAnswer) => this.isAnswer = isAnswer;
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
/// <summary>
|
|
48
|
+
///
|
|
49
|
+
/// </summary>
|
|
50
|
+
/// <param name="fuckUpDialogue"></param>
|
|
51
|
+
public virtual void SetFuckUpDialogue(TrialDialogue fuckUpDialogue) => this.fuckUpDialogue = fuckUpDialogue;
|
|
52
|
+
}
|
|
53
53
|
}
|