改了什么呢,我不知道啊
This commit is contained in:
@@ -2,6 +2,7 @@ using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Ichni.RhythmGame;
|
||||
using Michsky.MUIP;
|
||||
using Sirenix.Utilities;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
@@ -68,6 +69,7 @@ namespace Ichni.Editor
|
||||
d.GetComponent<RectTransform>().anchoredPosition = new Vector2(lineX, 0);
|
||||
StartCoroutine(WindowAnim.ShowPanelOnScale(d.gameObject));
|
||||
}
|
||||
parentTab.SetStatus();
|
||||
}
|
||||
|
||||
|
||||
@@ -76,6 +78,12 @@ namespace Ichni.Editor
|
||||
tabButton.onClick.AddListener(SelectGameElement);
|
||||
expandButton.onClick.AddListener(ExpandOrFold);
|
||||
deleteButton.onConfirm = () => EditorManager.instance.operationManager.CopyPasteDeleteModule.DeleteElement(connectedGameElement);
|
||||
|
||||
SetStatus();
|
||||
}
|
||||
public void SetStatus()
|
||||
{
|
||||
expandButton.interactable = !connectedGameElement.childElementList.IsNullOrEmpty();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,7 +119,7 @@ namespace Ichni.Editor
|
||||
EditorManager.instance.operationManager.ClearSelectedElements();
|
||||
EditorManager.instance.operationManager.AddSelectElement(connectedGameElement);
|
||||
}
|
||||
|
||||
|
||||
EditorManager.instance.uiManager.inspector.SetInspector(connectedGameElement);
|
||||
EditorManager.instance.timeline.SetTimeLine(connectedGameElement); // TODO: Error
|
||||
}
|
||||
@@ -124,7 +132,7 @@ namespace Ichni.Editor
|
||||
if (isExpanded)
|
||||
{
|
||||
connectedGameElement.childElementList.Sort();//TODO: 后续可以让玩家手动快速排序
|
||||
|
||||
|
||||
for (var index = 0; index < connectedGameElement.childElementList.Count; index++)
|
||||
{
|
||||
var childElement = connectedGameElement.childElementList[index];
|
||||
|
||||
Reference in New Issue
Block a user