//Load private void InitializeProjectWizard(string ProjectFilePath) { ChartPath.text = null; isCreateProject = false; string ProjectFileString = File.ReadAllText(ProjectFilePath); CurrentProject = JsonConvert.DeserializeObject <LanotaliumProject>(ProjectFileString); ProjectWizard.SetActive(true); if (CurrentProject == null) { DialogUtils.MessageBox.ShowMessage(LimLanguageManager.TextDict["Project_InvalidProjectFile"]); InitializeProjectWizard(); return; } Name.text = CurrentProject.Name; Designer.text = CurrentProject.Designer; MusicPath.text = CurrentProject.MusicPath; ChartPath.text = CurrentProject.ChartPath; if (CurrentProject.BGACount() == 0) { DialogUtils.MessageBox.ShowMessage(LimLanguageManager.TextDict["Project_InvalidProjectFile"]); InitializeProjectWizard(); return; } StartCoroutine(InitializeProjectWizardCoroutinePart()); }
//Wizard public void AddBGA() { if (CurrentProject.BGACount() >= 3) { return; } string Path = WindowsDialogUtility.OpenFileDialog("", "", CurrentProject.ProjectFolder); StartCoroutine(AddBGACoroutine(Path)); }