Example #1
0
        private void DrawEnumerate()
        {
            enumerate = EzRR_Style.ToggleLeftBold("Enumerate", enumerate);
            EditorGUI.BeginDisabledGroup(enumerate == false);
            EditorGUI.indentLevel = 3;
            enumerateOptions      = (EnumerateOptions)EditorGUILayout.EnumPopup("Number Goes", enumerateOptions);
            enumerateInitNumber   = EditorGUILayout.IntField("Initial Number", enumerateInitNumber);
            enumerateIncrement    = EditorGUILayout.IntField("Increment", enumerateIncrement);
            enumerateFormatIndex  = EditorGUILayout.Popup("Format", enumerateFormatIndex, enumerateFormats);
            if (enumerateIncrement <= 0)
            {
                enumerateIncrement = 1;
            }
            enumerateDelimiterTypes = (DelimiterTypes)EditorGUILayout.EnumPopup("Delimiter", enumerateDelimiterTypes);

            if (enumerateDelimiterTypes == DelimiterTypes.custom)
            {
                enumerateCustomSeparator = EditorGUILayout.TextField("Custom Delimiter", enumerateCustomSeparator);
            }
            else
            {
                enumerateCustomSeparator = "";
            }
            EditorGUI.indentLevel = 1;
            EditorGUILayout.Space();
            EditorGUI.EndDisabledGroup();
        }
Example #2
0
 private void OnGUI()
 {
     scrollPos = EditorGUILayout.BeginScrollView(scrollPos);
     EditorGUILayout.Space();
     rename.Draw();
     replace.Draw();
     insert.Draw();
     remove.Draw();
     caseChange.Draw();
     sort.Draw();
     EzRR_Style.DrawUILine(EzRR_Style.uiLineColor);
     EditorGUILayout.EndScrollView();
 }
Example #3
0
 private void DrawButtons()
 {
     EzRR_Style.DrawHeader("Do Rename On:");
     EditorGUILayout.BeginHorizontal();
     if (GUILayout.Button("Hierarchy", "ButtonLeft", GUILayout.Height(EzRR_Style.mediumBtnHeight), GUILayout.MinWidth(100)))
     {
         DoRenameHierarchy();
     }
     if (GUILayout.Button("Project Folder", "ButtonRight", GUILayout.Height(EzRR_Style.mediumBtnHeight), GUILayout.MinWidth(100)))
     {
         DoRenameProjectFolder();
     }
     EditorGUILayout.EndHorizontal();
 }
Example #4
0
        private void DrawPreview()
        {
            ConfigNamePreview();
            EzRR_Style.DrawHeader("Preview:");
            EditorGUILayout.BeginHorizontal();
            GUILayout.Space(20);
            bool _disabled = false;

            EditorGUI.BeginDisabledGroup(_disabled == false);
            GUILayout.TextArea(previewName);
            EditorGUI.EndDisabledGroup();
            GUILayout.Space(20);
            GUILayout.EndHorizontal();
        }
 public void Draw()
 {
     EditorGUILayout.BeginHorizontal();
     showOption = EzRR_Style.DrawFoldoutHeader("Case Change", showOption);
     EzRR_Style.DrawHelpButton("https://solomidgames.com/guides/ezRename/CaseChange.html");
     EditorGUILayout.EndHorizontal();
     if (showOption)
     {
         EditorGUI.indentLevel = 1;
         DrawCaseChange();
         EditorGUILayout.Space();
         DrawButtons();
         EditorGUI.indentLevel = 0;
     }
 }
Example #6
0
 public void Draw()
 {
     EzRR_Style.DrawUILine(EzRR_Style.uiLineColor);
     EditorGUILayout.BeginHorizontal();
     showOption = EzRR_Style.DrawFoldoutHeader("Insert", showOption);
     EzRR_Style.DrawHelpButton("https://solomidgames.com/guides/ez-rename/insert.html");
     EditorGUILayout.EndHorizontal();
     if (showOption)
     {
         EditorGUI.indentLevel = 1;
         DrawInsert();
         EditorGUILayout.Space();
         EditorGUI.indentLevel = 0;
         DrawButtons();
     }
 }
Example #7
0
 public void Draw()
 {
     EditorGUILayout.BeginHorizontal();
     showOption = EzRR_Style.DrawFoldoutHeader("Rename", showOption);
     EzRR_Style.DrawHelpButton("https://solomidgames.com/guides/ez-rename/rename.html");
     EditorGUILayout.EndHorizontal();
     if (showOption)
     {
         EditorGUI.indentLevel = 1;
         DrawNewName();
         DrawPrefixAndSufix();
         DrawEnumerate();
         EditorGUILayout.Space();
         DrawPreview();
         EditorGUILayout.Space();
         EditorGUI.indentLevel = 0;
         DrawButtons();
     }
 }
        private void DrawFooter()
        {
            EzRR_Style.DrawUILine(EzRR_Style.uiLineColor);
            EditorGUILayout.BeginHorizontal();
            EzRR_Style.DrawHeader("Solomid Games - Ez Rename");
            EzRR_Style.DrawHelpButton("https://solomidgames.com/guides/ez-rename/quick-overview.html");
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("More Assets", "ButtonLeft"))
            {
                Application.OpenURL("https://www.assetstore.unity3d.com/en/#!/search/page=1/sortby=popularity/query=publisher:11524");
            }

            if (GUILayout.Button("Website", "ButtonRight"))
            {
                Application.OpenURL("https://solomidgames.com");
            }
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Help"))
            {
                Application.OpenURL("mailto:[email protected]");
            }
            EditorGUILayout.EndHorizontal();

            EditorGUILayout.BeginHorizontal();
            if (GUILayout.Button("Forum Thread", "ButtonLeft"))
            {
                Application.OpenURL("https://forum.unity.com/threads/released-ez-files-renamer.300182/");
            }
            if (GUILayout.Button("Follow us on Twitter", "ButtonRight"))
            {
                Application.OpenURL("https://twitter.com/solomidgames");
            }
            EditorGUILayout.EndHorizontal();
            GUILayout.Space(10);
        }
Example #9
0
 private void DrawPrefixAndSufix()
 {
     // Prefix
     usePrefix = EzRR_Style.ToggleLeftBold("Prefix", usePrefix);
     EditorGUI.BeginDisabledGroup(usePrefix == false);
     EditorGUI.indentLevel = 3;
     filePrefix            = EditorGUILayout.TextField("Prefix", filePrefix);
     prefixDelimiterTypes  = (DelimiterTypes)EditorGUILayout.EnumPopup("Delimiter", prefixDelimiterTypes);
     if (prefixDelimiterTypes == DelimiterTypes.custom)
     {
         prefixCustomSeparator = EditorGUILayout.TextField("Custom Delimiter", prefixCustomSeparator);
     }
     else
     {
         prefixCustomSeparator = "";
     }
     EditorGUI.indentLevel = 1;
     EditorGUILayout.Space();
     EditorGUI.EndDisabledGroup();
     // Suffix
     addSuffix = EzRR_Style.ToggleLeftBold("Suffix", addSuffix);
     EditorGUI.BeginDisabledGroup(addSuffix == false);
     EditorGUI.indentLevel = 3;
     fileSuffix            = EditorGUILayout.TextField("Suffix", fileSuffix);
     suffixDelimiterTypes  = (DelimiterTypes)EditorGUILayout.EnumPopup("Delimiter", suffixDelimiterTypes);
     if (suffixDelimiterTypes == DelimiterTypes.custom)
     {
         suffixCustomSeparator = EditorGUILayout.TextField("Custom Delimiter", suffixCustomSeparator);
     }
     else
     {
         suffixCustomSeparator = "";
     }
     EditorGUI.indentLevel = 1;
     EditorGUILayout.Space();
     EditorGUI.EndDisabledGroup();
 }
Example #10
0
 private void DrawButtons()
 {
     EzRR_Style.DrawHeader("Do Case Change On:");
     EzRR_Style.DrawButton("Hierarchy", DoCaseChangeHierarchy);
     EzRR_Style.DrawButton("Project Folder", DoCaseChangeProjectFolder);
 }
Example #11
0
 private void DrawButtons()
 {
     EzRR_Style.DrawHeader("Do Sort On:");
     EzRR_Style.DrawButton("Selection", SortSelection);
     EzRR_Style.DrawButton("Children", SortChildren);
 }
Example #12
0
 private void DrawButtons()
 {
     EzRR_Style.DrawHeader("Do Replace On:");
     EzRR_Style.DrawButton("Hierarchy", DoReplaceHierarchy);
     EzRR_Style.DrawButton("Project Folder", DoReplaceProjectFolder);
 }
Example #13
0
 private void DrawButtons()
 {
     EzRR_Style.DrawHeader("Do Insert On:");
     EzRR_Style.DrawButton("Hierarchy", DoInsertHierarchy);
     EzRR_Style.DrawButton("Project Folder", DoInserProjectFolder);
 }