Skip to content

Commit 3b2bcd0

Browse files
committed
Added Tooltips to Builder
1 parent 932dc5c commit 3b2bcd0

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

DemoProject/Assets/Hash's_Things/EditDistributor/Editor/EditDistributorBuilder.cs

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void OnGUI()
9090
{
9191
using (new GUILayout.HorizontalScope(EditorStyles.helpBox))
9292
{
93-
OGAvatarPrefab = (GameObject)EditorGUILayout.ObjectField("Prefab original model ->", OGAvatarPrefab, typeof(GameObject), true);
93+
OGAvatarPrefab = (GameObject)EditorGUILayout.ObjectField(new GUIContent("Prefab original model ->", "A slot to drag and drop a prefab of the original moddel into (requires the moddel to have an avatar component for now)"), OGAvatarPrefab, typeof(GameObject), true);
9494

9595
if (OGAvatarPrefab != null)
9696
{
@@ -116,7 +116,7 @@ void OnGUI()
116116
EditorGUILayout.Space(10);
117117
using (new GUILayout.HorizontalScope(EditorStyles.helpBox))
118118
{
119-
CustomAvatarPrefab = (GameObject)EditorGUILayout.ObjectField("Prefab modified model ->", CustomAvatarPrefab, typeof(GameObject), true);
119+
CustomAvatarPrefab = (GameObject)EditorGUILayout.ObjectField(new GUIContent("Prefab modified model ->", "A slot to drag and drop a prefab of your modified moddel into (requires the moddel to have an avatar component for now)"), CustomAvatarPrefab, typeof(GameObject), true);
120120

121121
if (CustomAvatarPrefab != null)
122122
{
@@ -148,11 +148,11 @@ void OnGUI()
148148

149149
EditorGUILayout.BeginHorizontal();
150150
GUILayout.FlexibleSpace();
151-
EditorGUILayout.LabelField("Change distribution name?");
151+
EditorGUILayout.LabelField(new GUIContent("Change distribution name?", "Do you want to change the name of the script and menu bar?"));
152152
NameOverwriteTickBox = EditorGUILayout.Toggle("", NameOverwriteTickBox);
153153
GUILayout.FlexibleSpace();
154154
EditorGUILayout.EndHorizontal();
155-
if (NameOverwriteTickBox) DistributionNameOverwriteText = EditorGUILayout.TextField("OverwriteName ", DistributionNameOverwriteText);
155+
if (NameOverwriteTickBox) DistributionNameOverwriteText = EditorGUILayout.TextField( new GUIContent("OverwriteName ", "Name that will be used for the patcher script and hotbar menu"), DistributionNameOverwriteText);
156156

157157
}
158158

@@ -163,7 +163,7 @@ void OnGUI()
163163
using (new GUILayout.VerticalScope(EditorStyles.helpBox))
164164
{
165165

166-
UserEditorWindowName = EditorGUILayout.TextField("Your Name: ", UserEditorWindowName);
166+
UserEditorWindowName = EditorGUILayout.TextField(new GUIContent("Your Name: ", "Will be used to organize your patchers in the menu bar"), UserEditorWindowName);
167167
if (NameOverwriteTickBox)
168168
{
169169
if (! string.IsNullOrEmpty(DistributionNameOverwriteText)) EditorWindowPath = "Tools/" + UserEditorWindowName + "/" + DistributionNameOverwriteText + "_Patcher";
@@ -181,15 +181,15 @@ void OnGUI()
181181

182182
}
183183

184-
PackageName = EditorGUILayout.TextField("Original package name", PackageName);
184+
PackageName = EditorGUILayout.TextField(new GUIContent("Original package name", "package that the user is expected to have in their project"), PackageName);
185185
}
186186

187187
EditorGUILayout.Space(10);
188188
using (new GUILayout.VerticalScope(EditorStyles.helpBox))
189189
{
190190
EditorGUILayout.BeginHorizontal();
191191
GUILayout.FlexibleSpace();
192-
EditorGUILayout.LabelField("Generate descriptions?");
192+
EditorGUILayout.LabelField(new GUIContent("Generate descriptions?", "Do you want to generate descriptions for your store pages?"));
193193
StoreTextTog = EditorGUILayout.Toggle("", StoreTextTog);
194194
GUILayout.FlexibleSpace();
195195
EditorGUILayout.EndHorizontal();
@@ -199,11 +199,11 @@ void OnGUI()
199199
if (StoreTextTog)
200200
{
201201

202-
CommunFonctions.AddCenteredLabel("Will copy the selected folder and remplace");
202+
CommunFonctions.AddCenteredLabel("Will copy contents of folder and remplace");
203203

204204
EditorGUILayout.BeginHorizontal();
205205
GUILayout.FlexibleSpace();
206-
if (GUILayout.Button("More info here", EditorStyles.linkLabel))
206+
if (GUILayout.Button(new GUIContent("More info here", "A link to the GutHub repo"), EditorStyles.linkLabel))
207207
{
208208
Application.OpenURL("https://github.com/HashEdits/Face-Tracking-Patcher?tab=readme-ov-file#exemple-");
209209
}
@@ -212,20 +212,23 @@ void OnGUI()
212212

213213

214214
EditorGUILayout.Space(20);
215-
if (GUILayout.Button("Select custom folder"))
215+
if (GUILayout.Button(new GUIContent("Select folder with formated descriptions", "folder that will be copied and have all of it's .txt files searched for the specific terms and remplaced")))
216216
{
217217
DescriptionDir = EditorUtility.OpenFolderPanel("Select Folder", "", "");
218218
}
219-
if (GUILayout.Button("Select destination"))
219+
if (GUILayout.Button(new GUIContent("Select destination folder", "folder where the remplaced files will be placed")))
220220
{
221221
DestinationDir = EditorUtility.OpenFolderPanel("Select Folder", "", "");
222222
}
223-
EditorGUILayout.LabelField("custom desc source: ", DescriptionDir);
224-
EditorGUILayout.LabelField("custom desc dest: ", DestinationDir);
225223

226-
CreatorName = EditorGUILayout.TextField("CreatorName ", CreatorName);
224+
//if (!string.IsNullOrEmpty(DescriptionDir)) EditorGUILayout.LabelField(new GUIContent("custom desc source: ", DescriptionDir), DescriptionDir);
225+
/*else*/ EditorGUILayout.LabelField("custom desc source: ", DescriptionDir);
226+
//if (!string.IsNullOrEmpty(DestinationDir)) EditorGUILayout.LabelField(new GUIContent("custom desc dest: ", DestinationDir), DestinationDir);
227+
/*else*/ EditorGUILayout.LabelField("custom desc dest: ", DestinationDir);
227228

228-
StorePage = EditorGUILayout.TextField("StorePage ", StorePage);
229+
CreatorName = EditorGUILayout.TextField(new GUIContent("CreatorName ", @"All /*AVATAR AUTHOR*/ tags will be remplaced by what you put in there"), CreatorName);
230+
231+
StorePage = EditorGUILayout.TextField(new GUIContent("StorePage ", @"All /*StoreLink*/ tags will be remplaced by what you put in there"), StorePage);
229232

230233
//preparing the paterns to feed in the search and remplace algo
231234
searchPatterns = new string[] { @"/*AVATAR AUTHOR*/", @"/*StoreLink*/", @"/*AVATAR NAME*/", @"/*PACKAGE NAME*/", @"/*DIR PREFAB*/", @"/*DIR PATCHER*/" };

0 commit comments

Comments
 (0)