Oh yessss Movable Track Sampler

This commit is contained in:
2025-05-02 22:34:42 +08:00
parent 99f839dc47
commit 39c1b4e16a
12 changed files with 8646 additions and 202 deletions

View File

@@ -27,7 +27,7 @@ namespace Ichni
public CameraManager cameraManager;
public PostProcessingManager postProcessingManager;
public Canvas judgeHintCanvas;
public Canvas inspectorCanvas;
public Timeline timeline;
public ProjectInformation projectInformation;
@@ -38,7 +38,7 @@ namespace Ichni
public NoteBase.NoteJudgeType currentJudgeType;
public bool useNotePrefab;
public BasePrefabsCollection basePrefabs;
[Title("Runtime Global Elements")]
public VariablesContainer variablesContainer;
public BackgroundSetter backgroundSetter;
@@ -66,7 +66,7 @@ namespace Ichni
this.elementName = "EditorManager";
this.elementGuid = Guid.Empty;
uiManager.hierarchy.GenerateTab(this, null);
if (InformationTransistor.instance.isLoadedProject)
{
LoadProject(InformationTransistor.instance.loadedProjectName);
@@ -76,13 +76,13 @@ namespace Ichni
projectManager.GenerateEmptyProject(InformationTransistor.instance.projectInfo_BM, InformationTransistor.instance.songInfo_BM);
projectManager.saveManager.Save();
}
isLoaded = true;
}
private void Update()
{
if(isLoaded) projectManager.autoSaveManager.UpdateAutoSave();
if (isLoaded) projectManager.autoSaveManager.UpdateAutoSave();
}
public void LoadProject(string projectName)
@@ -92,7 +92,7 @@ namespace Ichni
beatmapContainer.gameElementList.ForEach(gameElement =>
{
gameElement.AfterInitialize();
gameElement.Refresh();
});
}
@@ -102,7 +102,7 @@ namespace Ichni
IHaveInspection inspector = uiManager.inspector;
var container = inspector.GenerateContainer("Editor Manager");
var inGameSettings = container.GenerateSubcontainer(3);
var judgeTypeDropdown = inspector.GenerateDropdown(this, inGameSettings, "Judge Type",
typeof(NoteBase.NoteJudgeType), nameof(currentJudgeType)).AddListenerFunction(() =>
@@ -115,7 +115,7 @@ namespace Ichni
}
}
});
var useNotePrefabToggle =
var useNotePrefabToggle =
inspector.GenerateToggle(this, inGameSettings, "Use Note Prefab", nameof(useNotePrefab));
var generation = container.GenerateSubcontainer(3);
@@ -132,7 +132,7 @@ namespace Ichni
inspector.GenerateButton(this, generation, "Generate Variables Container",
() => VariablesContainer.GenerateElement("Variables Container", Guid.NewGuid(),
new List<string>(), true, null, new Dictionary<string, int>()));
projectInformation.SetUpInspector();
songInformation.SetUpInspector();
cameraManager.SetUpInspector();