public void OpenProjectFolderDialog() { string Path = WindowsDialogUtility.OpenFolderDialog(""); if (Path == null) { return; } ProjectFolderPath.text = Path; if (isCreateProject) { ChartPath.text = LimLanguageManager.TextDict["Project_ChartWillGenerate"]; string EmptyChartPath = Path + "/EmptyChart.txt"; if (File.Exists(EmptyChartPath)) { EmptyChartPath = Path + "/EmptyChart_" + (new System.Random().Next(1000, 9999)).ToString() + ".txt"; } File.WriteAllText(Path + "/EmptyChart.txt", "{\"events\":null,\"eos\":0,\"bpm\":null,\"scroll\":null}"); CurrentProject.ChartPath = Path + "/EmptyChart.txt"; Name.text = new DirectoryInfo(Path).Name; CurrentProject.Name = Name.text; LapPath = Path + "/" + Name.text + ".lap"; } LimTutorialManager.ShowTutorial("FirstProject4"); }
public void CreateProject() { CurrentProject = new LanotaliumProject(); ProjectWizard.SetActive(true); InitializeProjectWizard(); LimTutorialManager.ShowTutorial("FirstProject3"); }
private void Start() { LimTutorialManager.ShowTutorial("FirstProject1"); if (LimSystem.ChartContainer == null) { return; } TopText.text = $"Lanotalium - <{LimProjectManager.CurrentProject.Name}>"; }
public void OpenMusicDialog() { string Path = WindowsDialogUtility.OpenFileDialog("", "", CurrentProject.ProjectFolder); if (Path == null) { return; } MusicPath.text = Path; CurrentProject.MusicPath = Path; LimTutorialManager.ShowTutorial("FirstProject5"); }
public void OpenFileMenu() { if (FilePanel.activeInHierarchy) { FilePanel.SetActive(false); } else { FilePanel.SetActive(true); } LimTutorialManager.ShowTutorial("FirstProject2"); }