Esempio n. 1
0
        public static bool AllDataMissing(InCommonDataManager manager)
        {
            EditorGUILayout.HelpBox("No InAudio project found. Create InAudio project?", MessageType.Info);
            if (GUILayout.Button("Create InAudio data"))
            {
                MissingDataHelper.StartFromScratch(manager);
            }

            return(true);
        }
Esempio n. 2
0
 private void DrawStartFromScratch()
 {
     Repeater.Repeat(8, () =>
     {
         EditorGUILayout.Separator();
     });
     EditorGUILayout.HelpBox("Warning, this button will delete the entire InAudio project and create a new. This process cannot be undone.", MessageType.Error);
     if (GUILayout.Button("Start over from scratch", GUILayout.Height(30)))
     {
         if (ErrorDrawer.IsAllDataMissing(Manager) ||
             EditorUtility.DisplayDialog("Create new project?", "This will delete ALL data!",
                                         "Start over from scratch", "Do nothing"))
         {
             MissingDataHelper.StartFromScratch(Manager);
         }
     }
 }
Esempio n. 3
0
        private void DrawStartFromScratch()
        {
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            EditorGUILayout.Space();
            EditorGUILayout.Space();

            if (GUILayout.Button("Start over from scratch", GUILayout.Height(30)))
            {
                if (AreAllMissing() ||
                    EditorUtility.DisplayDialog("Create new project?", "This will delete ALL data!",
                                                "Start over from scratch", "Do nothing"))
                {
                    MissingDataHelper.StartFromScratch(Manager);
                }
            }
        }