暂时存档

Timeline
WindowAnim不止window能用
This commit is contained in:
2025-02-21 15:30:14 +08:00
parent cd9ef00d13
commit 6781de4d53
14 changed files with 642 additions and 85 deletions

View File

@@ -50,7 +50,7 @@ namespace Ichni.Editor
parentElement.connectedTab.childTabList.Add(this);
this.tabLayer = this.parentTab.tabLayer + 1;
this.transform.SetSiblingIndex(this.parentTab.transform.GetSiblingIndex() + GetAllChildrenCount(this.parentTab));
if (!this.parentTab.isExpanded)
{
this.isExpanded = false;
@@ -91,6 +91,7 @@ namespace Ichni.Editor
{
EditorManager.instance.operationManager.SelectElement(connectedGameElement);
EditorManager.instance.uiManager.inspector.SetInspector(connectedGameElement);
EditorManager.instance.timeline.SetTimeLine(connectedGameElement);
}
private void ExpandOrFold()
@@ -101,7 +102,7 @@ namespace Ichni.Editor
if (isExpanded)
{
expandButton.transform.Rotate(new Vector3(0, 0, 180));
for (var index = 0; index < connectedGameElement.childElementList.Count; index++)
{
var childElement = connectedGameElement.childElementList[index];
@@ -123,9 +124,9 @@ namespace Ichni.Editor
{
if (!expand && isExpanded)
{
for(int i=childTabList.Count;i>0;i--)
for (int i = childTabList.Count; i > 0; i--)
{
childTabList[i-1].SetExpansion(expand); //false
childTabList[i - 1].SetExpansion(expand); //false
}
}