StartMenu!

This commit is contained in:
SoulliesOfficial
2025-03-08 14:21:10 -05:00
parent 28e0a6e4b0
commit e0ae43c25c
193 changed files with 43412 additions and 7940 deletions

View File

@@ -59,7 +59,17 @@ namespace Ichni
this.elementName = "EditorManager";
this.elementGuid = Guid.Empty;
uiManager.hierarchy.GenerateTab(this, null);
StartCoroutine(DelayLoading());
if (InformationTransistor.instance.isLoadedProject)
{
LoadProject("TestProject");
}
else
{
projectManager.GenerateEmptyProject(InformationTransistor.instance.projectInfo_BM, InformationTransistor.instance.songInfo_BM);
projectManager.saveManager.Save();
}
isLoaded = true;
}
private void Update()
@@ -67,19 +77,17 @@ namespace Ichni
if(isLoaded) projectManager.autoSaveManager.UpdateAutoSave();
}
public IEnumerator DelayLoading()
public void LoadProject(string projectName)
{
StartCoroutine(projectManager.loadManager.Load("TestProject"));
projectManager.loadManager.Load(projectName);
musicPlayer.audioSource.clip = songInformation.song;
yield return new WaitForSeconds(1);//什么时候能加个loading界面
beatmapContainer.gameElementList.ForEach(gameElement =>
{
gameElement.AfterInitialize();
gameElement.Refresh();
});
isLoaded = true;
}
public override void SetUpInspector()
{
IHaveInspection inspector = uiManager.inspector;