Inspector内容开始填充完善

This commit is contained in:
SoulliesOfficial
2025-02-17 14:46:14 -05:00
parent d77e1a0f70
commit 8d4772532f
84 changed files with 4340 additions and 208 deletions

View File

@@ -10,13 +10,14 @@ using UnityEngine;
namespace Ichni
{
public class EditorManager : SerializedMonoBehaviour
public class EditorManager : GameElement
{
public static EditorManager instance;
public ProjectManager projectManager;
public EditorUIManager uiManager;
public EditorSettings editorSettings;
public BackgroundController backgroundController;
public ProjectInformation projectInformation;
public SongInformation songInformation;
@@ -43,7 +44,10 @@ namespace Ichni
private void Start()
{
//CreateNew();
this.elementName = "EditorManager";
this.elementGuid = Guid.Empty;
uiManager.hierarchy.GenerateTab(this, null);
projectManager.loadManager.Load("TestProject");
uiManager.timeline.musicPlayer.audioSource.clip = songInformation.song;
@@ -57,9 +61,20 @@ namespace Ichni
gameElement.AfterInitialize();
gameElement.Refresh();
});
// projectManager.saveManager.Save();
// projectManager.exportManager.Export();
}
public override void SetUpInspector()
{
var container = inspector.GenerateContainer("Editor Manager");
var judgeTypeDropdown = inspector.GenerateDropdown(this, container, "Judge Type",
typeof(NoteBase.NoteJudgeType), nameof(currentJudgeType));
var generateBackgroundSetterButton =
inspector.GenerateButton(this, container, "Generate Background Setter",
() => BackgroundSetter.GenerateElement("Background Setter", Guid.NewGuid(),
new List<string>(), true, null, false,
"basic", "Skybox", "Background"));
projectInformation.SetUpInspector();
songInformation.SetUpInspector();
}
private void CreateNew()