Timeline's Note And Sth Submodule

This commit is contained in:
2025-03-16 00:42:27 +08:00
parent 7395319dfe
commit 41d944c9e1
15 changed files with 1000 additions and 94 deletions

View File

@@ -31,10 +31,14 @@ namespace Ichni.Editor
tabList.Add(tab);
return tab;
}
public void FindTab(GameElement targetElement, bool findparent = false)
{
if (targetElement.connectedTab != null)
if (findparent && targetElement.connectedTab != null)
{
targetElement.connectedTab.expandButton.onClick.Invoke();
}
else if (targetElement.connectedTab != null)
{
targetElement.connectedTab.tabButton.onClick.Invoke();
}
@@ -43,10 +47,7 @@ namespace Ichni.Editor
FindTab(targetElement.parentElement, true);
}
if (findparent && targetElement.connectedTab != null)
{
targetElement.connectedTab.expandButton.onClick.Invoke();
}
}
}
}