Inspector内容开始填充完善
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user