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

@@ -65,7 +65,10 @@ namespace Ichni.RhythmGame
/// <summary>
/// 设置次级模块
/// </summary>
protected abstract void SetDefaultSubmodules();
protected virtual void SetDefaultSubmodules()
{
}
/// <summary>
/// 在所有物体生成完毕后,执行的初始化方法
@@ -111,7 +114,7 @@ namespace Ichni.RhythmGame
/// </summary>
public virtual void OnDelete()
{
throw new NotImplementedException();
}
@@ -135,6 +138,7 @@ namespace Ichni.RhythmGame
#endif
EditorManager.instance.beatmapContainer.gameElementList.Remove(this); //从保存列表中剔除
this.parentElement.childElementList.Remove(this);
Destroy(connectedTab.gameObject);
Destroy(gameObject); //销毁
}
}
@@ -145,7 +149,7 @@ namespace Ichni.RhythmGame
{
var container = inspector.GenerateContainer("Element Info");
var nameInputField = inspector.GenerateInputField(this, container, GetType().Name + "'s Name", nameof(elementName));
var guidText = inspector.GenerateText(this, container, "Element GUID", nameof(elementGuid), true);
var guidText = inspector.GenerateText(this, container, "Element GUID", nameof(elementGuid));
var tagsListButton = inspector.GenerateButton(this, container, "Tags List", () =>
{
inspector.GenerateCompositeParameterWindow(this, "Tags List", nameof(tags)).SetAsStringList();